diff options
Diffstat (limited to 'dev-python/virtualenv')
| -rw-r--r-- | dev-python/virtualenv/virtualenv-16.7.10.ebuild | 23 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-20.0.27.ebuild | 11 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-20.0.28.ebuild | 11 |
3 files changed, 29 insertions, 16 deletions
diff --git a/dev-python/virtualenv/virtualenv-16.7.10.ebuild b/dev-python/virtualenv/virtualenv-16.7.10.ebuild index 72a47a8cc4c8..5e1ef3e7e91f 100644 --- a/dev-python/virtualenv/virtualenv-16.7.10.ebuild +++ b/dev-python/virtualenv/virtualenv-16.7.10.ebuild @@ -26,14 +26,16 @@ RESTRICT="!test? ( test )" RDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}]" BDEPEND="${RDEPEND} test? ( - >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pypiserver[${PYTHON_USEDEP}] - dev-python/pytest-localserver[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pypiserver[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + ' -3) )" DOCS=( docs/index.rst docs/changes.rst ) @@ -53,6 +55,11 @@ distutils_enable_sphinx docs \ dev-python/towncrier python_test() { + if ! python_is_python3; then + ewarn "Tests are skipped on py2, please test externally" + return + fi + cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \ die "Could not copy LICENSE.txt with ${EPYTHON}" diff --git a/dev-python/virtualenv/virtualenv-20.0.27.ebuild b/dev-python/virtualenv/virtualenv-20.0.27.ebuild index 28a014086ee3..533f9bb74121 100644 --- a/dev-python/virtualenv/virtualenv-20.0.27.ebuild +++ b/dev-python/virtualenv/virtualenv-20.0.27.ebuild @@ -79,10 +79,13 @@ src_configure() { } python_test() { - # TODO: fix/skip with more granularity tests on pypy3 - if has "${EPYTHON}" pypy3 python2.7; then - einfo "Skipping broken tests on pypy3" - continue + if ! python_is_python3; then + ewarn "Tests are skipped on py2, please test externally" + return + elif [[ ${EPYTHON} == pypy3 ]]; then + # TODO: skip with better granularity + ewarn "Skipping broken tests on pypy3" + return fi distutils_install_for_testing diff --git a/dev-python/virtualenv/virtualenv-20.0.28.ebuild b/dev-python/virtualenv/virtualenv-20.0.28.ebuild index 28a014086ee3..533f9bb74121 100644 --- a/dev-python/virtualenv/virtualenv-20.0.28.ebuild +++ b/dev-python/virtualenv/virtualenv-20.0.28.ebuild @@ -79,10 +79,13 @@ src_configure() { } python_test() { - # TODO: fix/skip with more granularity tests on pypy3 - if has "${EPYTHON}" pypy3 python2.7; then - einfo "Skipping broken tests on pypy3" - continue + if ! python_is_python3; then + ewarn "Tests are skipped on py2, please test externally" + return + elif [[ ${EPYTHON} == pypy3 ]]; then + # TODO: skip with better granularity + ewarn "Skipping broken tests on pypy3" + return fi distutils_install_for_testing |
