mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
dev-python/virtualenv: Skip tests on py2 in 16*
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user