summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-06-04 18:56:07 -0400
committerTim Harder <radhermit@gentoo.org>2018-06-04 19:33:29 -0400
commit33a4586b03f3db7e4b5a45174887f9b9727bc676 (patch)
treeccb54440176db1b9ca0fa995ef2cdd2135de325d /dev-python/snakeoil/snakeoil-9999.ebuild
parentdev-python/aiohttp: version bump to 3.3.0 (diff)
downloadgentoo-33a4586b03f3db7e4b5a45174887f9b9727bc676.tar.gz
gentoo-33a4586b03f3db7e4b5a45174887f9b9727bc676.tar.bz2
gentoo-33a4586b03f3db7e4b5a45174887f9b9727bc676.zip
dev-python/snakeoil: dropping py2 support in live ebuild
And update test deps.
Diffstat (limited to 'dev-python/snakeoil/snakeoil-9999.ebuild')
-rw-r--r--dev-python/snakeoil/snakeoil-9999.ebuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/dev-python/snakeoil/snakeoil-9999.ebuild b/dev-python/snakeoil/snakeoil-9999.ebuild
index 38a023db443b..431ad815edf4 100644
--- a/dev-python/snakeoil/snakeoil-9999.ebuild
+++ b/dev-python/snakeoil/snakeoil-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1
@@ -22,13 +22,11 @@ SLOT="0"
IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( dev-python/mock[${PYTHON_USEDEP}] )"
-[[ ${PV} == 9999 ]] && DEPEND+=" $(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]' 'python3*')"
-
-python_configure_all() {
- # disable snakeoil 2to3 caching
- unset PY2TO3_CACHEDIR
-}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )"
+[[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]"
python_test() {
esetup.py test