commit: 6ace20c8924c0385c18825e25be505dca1f0e637 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jul 25 06:26:16 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jul 25 07:36:22 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ace20c8
dev-python/graphviz: Port to py3.9 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/graphviz/graphviz-0.13.ebuild | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/dev-python/graphviz/graphviz-0.13.ebuild b/dev-python/graphviz/graphviz-0.13.ebuild index fb28c85097c..92f9f2c7bf0 100644 --- a/dev-python/graphviz/graphviz-0.13.ebuild +++ b/dev-python/graphviz/graphviz-0.13.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 @@ -14,21 +14,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" LICENSE="MIT" KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND="media-gfx/graphviz" -DEPEND=" +BDEPEND=" app-arch/unzip test? ( ${RDEPEND} >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] - >=dev-python/pytest-3.4[${PYTHON_USEDEP}] >=dev-python/pytest-mock-1.8[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] ) " -BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -python_test() { - py.test -v || die +distutils_enable_tests pytest + +src_prepare() { + sed -e 's:--cov --cov-report=term --cov-report=html::' \ + -i setup.cfg || die + distutils-r1_src_prepare }