summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-07-25 08:26:16 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-25 09:36:22 +0200
commit6ace20c8924c0385c18825e25be505dca1f0e637 (patch)
treefe3b8bacd2e95cf7fb4cadeef6d0577e9be8fdde /dev-python/graphviz
parentdev-python/xarray: Bump to 0.16.0 (diff)
downloadgentoo-6ace20c8924c0385c18825e25be505dca1f0e637.tar.gz
gentoo-6ace20c8924c0385c18825e25be505dca1f0e637.tar.bz2
gentoo-6ace20c8924c0385c18825e25be505dca1f0e637.zip
dev-python/graphviz: Port to py3.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/graphviz')
-rw-r--r--dev-python/graphviz/graphviz-0.13.ebuild17
1 files changed, 8 insertions, 9 deletions
diff --git a/dev-python/graphviz/graphviz-0.13.ebuild b/dev-python/graphviz/graphviz-0.13.ebuild
index fb28c85097c4..92f9f2c7bf0c 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
}