diff options
author | 2020-03-28 14:27:45 +0100 | |
---|---|---|
committer | 2020-03-28 14:33:56 +0100 | |
commit | de457e9a786c65db2f9a1a1845640d48b5aca36d (patch) | |
tree | 0f7516485e05ef50a9147a2c0495f9fe3cd7f9f5 /dev-python/pbr/pbr-4.2.0-r1.ebuild | |
parent | dev-python/pbr: Un-PYTHON_USEDEP dev-python/stestr (diff) | |
download | gentoo-de457e9a786c65db2f9a1a1845640d48b5aca36d.tar.gz gentoo-de457e9a786c65db2f9a1a1845640d48b5aca36d.tar.bz2 gentoo-de457e9a786c65db2f9a1a1845640d48b5aca36d.zip |
dev-python/pbr: Disable tests on py2 to unblock deps
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pbr/pbr-4.2.0-r1.ebuild')
-rw-r--r-- | dev-python/pbr/pbr-4.2.0-r1.ebuild | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/dev-python/pbr/pbr-4.2.0-r1.ebuild b/dev-python/pbr/pbr-4.2.0-r1.ebuild index d63fe1d35c98..79874ed5d679 100644 --- a/dev-python/pbr/pbr-4.2.0-r1.ebuild +++ b/dev-python/pbr/pbr-4.2.0-r1.ebuild @@ -26,20 +26,22 @@ RESTRICT="!test? ( test )" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( - >=dev-python/coverage-4.0[${PYTHON_USEDEP}] - !~dev-python/coverage-4.4[${PYTHON_USEDEP}] - >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] - >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] - >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] - >=dev-python/six-1.10.0[${PYTHON_USEDEP}] - >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] - >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] - >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] - >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] - >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - >=dev-python/stestr-2.1.0 - dev-vcs/git + $(python_gen_cond_dep ' + >=dev-python/coverage-4.0[${PYTHON_USEDEP}] + !~dev-python/coverage-4.4[${PYTHON_USEDEP}] + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] + >=dev-python/virtualenv-14.0.6[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + >=dev-python/stestr-2.1.0 + dev-vcs/git + ' -3) )" PDEPEND="" @@ -65,6 +67,12 @@ python_prepare_all() { } python_test() { + if ! python_is_python3; then + ewarn "Skipping tests on ${EPYTHON} to unblock circular deps." + ewarn "Please run tests manually." + return + fi + distutils_install_for_testing rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |