diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2020-05-18 13:43:10 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2020-05-18 13:46:10 -0700 |
commit | 73faf1f8b6d8abe39b59677d1528a19346eea97c (patch) | |
tree | 3835aa518b4466edf43b6c130f34f4a8d11b09fe /dev-python/cbor2 | |
parent | net-wireless/kismet: minor bugfix from upstream (diff) | |
download | gentoo-73faf1f8b6d8abe39b59677d1528a19346eea97c.tar.gz gentoo-73faf1f8b6d8abe39b59677d1528a19346eea97c.tar.bz2 gentoo-73faf1f8b6d8abe39b59677d1528a19346eea97c.zip |
dev-python/cbor2: sed out pytest-cov dep
Move pytest dep to BDEPEND
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
Diffstat (limited to 'dev-python/cbor2')
-rw-r--r-- | dev-python/cbor2/cbor2-5.1.0.ebuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/dev-python/cbor2/cbor2-5.1.0.ebuild b/dev-python/cbor2/cbor2-5.1.0.ebuild index b1d49e53fa90..0ab2f141e004 100644 --- a/dev-python/cbor2/cbor2-5.1.0.ebuild +++ b/dev-python/cbor2/cbor2-5.1.0.ebuild @@ -19,12 +19,23 @@ KEYWORDS="~amd64 ~arm ~arm64 ~x86" DEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] +" +BDEPEND=" test? ( dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-cov[${PYTHON_USEDEP}] ) " RDEPEND="${DEPEND}" +python_prepare_all() { + + # remove pytest-cov dep + sed -e "s/pytest-cov//" \ + -e "s/--cov //" \ + -i setup.cfg || die + + distutils-r1_python_prepare_all +} + distutils_enable_tests pytest |