dev-python/cbor2: sed out pytest-cov dep
authorBrian Dolbec <dolsen@gentoo.org>
Mon, 18 May 2020 20:43:10 +0000 (13:43 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Mon, 18 May 2020 20:46:10 +0000 (13:46 -0700)
Move pytest dep to BDEPEND

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
dev-python/cbor2/cbor2-5.1.0.ebuild

index b1d49e53fa90866863fcb553a29c316b0aa19ae3..0ab2f141e0044644bc0c8213baadebaeea8c1d6c 100644 (file)
@@ -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