dev-python/python-glanceclient: Remove Python 2 support
authorMichał Górny <mgorny@gentoo.org>
Sun, 12 Jan 2020 10:37:48 +0000 (11:37 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 13 Jan 2020 09:41:57 +0000 (10:41 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/python-glanceclient/python-glanceclient-2.13.1.ebuild
dev-python/python-glanceclient/python-glanceclient-2.16.0.ebuild

index 4e68a3f1c2554214a72808c9d78f2c2c4cb428e3..e23ed64f762c26782f16e56a59865b1137ffdea8 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-PYTHON_COMPAT=( python2_7 python3_6 )
+PYTHON_COMPAT=( python3_6 )
 
 inherit distutils-r1
 
@@ -68,7 +68,7 @@ python_compile_all() {
 
 python_test() {
        testr init
-       testr run || die "testsuite failed under python2.7"
+       testr run || die "testsuite failed under ${EPYTHON}"
        flake8 tests && einfo "run flake8 over tests folder passed" || die
 }
 
index ef647a836996f7fb1fe16e6b32d701adb37e4e95..885408a4fbdc1173dba17b7cfdb06cdac207f6de 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7} )
 
 inherit distutils-r1
 
@@ -57,6 +57,6 @@ python_prepare_all() {
 
 python_test() {
        testr init
-       testr run || die "testsuite failed under python2.7"
+       testr run || die "testsuite failed under ${EPYTHON}"
        flake8 tests && einfo "run flake8 over tests folder passed" || die
 }