summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-26 12:37:12 +0200
committerMichał Górny <mgorny@gentoo.org>2022-07-04 08:57:25 +0200
commit5bf27adafb999a9024c65dbececfc5b26a869836 (patch)
tree8809aedcf9ec2c7fa7148aefd12f6da83123777d /dev-python/pypiserver
parentdev-python/pypiserver: Fix test regression (diff)
downloadgentoo-5bf27adafb999a9024c65dbececfc5b26a869836.tar.gz
gentoo-5bf27adafb999a9024c65dbececfc5b26a869836.tar.bz2
gentoo-5bf27adafb999a9024c65dbececfc5b26a869836.zip
dev-python/pypiserver: Make twine dep optional
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypiserver')
-rw-r--r--dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild b/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild
index 922e88060cc0..f62175c1fedc 100644
--- a/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild
+++ b/dev-python/pypiserver/pypiserver-1.5.0-r2.ebuild
@@ -33,7 +33,6 @@ BDEPEND="
test? (
>=dev-python/passlib-1.6[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/twine[${PYTHON_USEDEP}]
dev-python/webtest[${PYTHON_USEDEP}]
)
"
@@ -66,5 +65,12 @@ python_test() {
tests/test_main.py::test_auto_servers
)
+ if ! has_version dev-python/twine; then
+ EPYTEST_DESELECT+=(
+ tests/test_server.py::test_twine_upload
+ tests/test_server.py::test_twine_register
+ )
+ fi
+
epytest tests
}