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>
This commit is contained in:
Brian Dolbec
2020-05-18 13:43:10 -07:00
parent 3b2b21e4af
commit 73faf1f8b6

View 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