summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-26 17:49:20 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-26 17:50:16 +0200
commit56789ee5714ba14445931844bcea98a7610696c0 (patch)
treed80d13a5347291cbc3d49678a255825a4a079513
parentdev-python/six: Remove py2.7 (diff)
downloadgentoo-56789ee5714ba14445931844bcea98a7610696c0.tar.gz
gentoo-56789ee5714ba14445931844bcea98a7610696c0.tar.bz2
gentoo-56789ee5714ba14445931844bcea98a7610696c0.zip
dev-python/six: Revert "Skip tests on py2"
The hack is no longer necessary now that the package is py3-only. Reverts: d9d71cc374adb1a2954bb5efddca2c096e746353 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/six/six-1.15.0-r1.ebuild17
1 files changed, 2 insertions, 15 deletions
diff --git a/dev-python/six/six-1.15.0-r1.ebuild b/dev-python/six/six-1.15.0-r1.ebuild
index 338790636d72..208c502b78a2 100644
--- a/dev-python/six/six-1.15.0-r1.ebuild
+++ b/dev-python/six/six-1.15.0-r1.ebuild
@@ -14,20 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- test? (
- $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]' -3)
- )"
+IUSE="doc"
distutils_enable_sphinx documentation --no-autodoc
-
-python_test() {
- if ! python_is_python3; then
- einfo "Tests are skipped on Python 2 to unblock deps"
- return
- fi
- pytest -vv || die "Tests failed with ${EPYTHON}"
-}
+distutils_enable_tests pytest