summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-07-02 08:29:07 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-02 10:29:14 +0200
commit16c2e7ec5b7b6da9dd8f23d3fe86bbe8b32be3f8 (patch)
tree58fbe62bb6e24a455031d8e3ca54a66c3c2e5da2 /eclass/tests
parentdev-python/threadpoolctl: Bump to 2.1.0 (diff)
downloadgentoo-16c2e7ec5b7b6da9dd8f23d3fe86bbe8b32be3f8.tar.gz
gentoo-16c2e7ec5b7b6da9dd8f23d3fe86bbe8b32be3f8.tar.bz2
gentoo-16c2e7ec5b7b6da9dd8f23d3fe86bbe8b32be3f8.zip
eclass/tests/distutils-r1.sh: update for EAPI=7 / py3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/distutils-r1.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/tests/distutils-r1.sh b/eclass/tests/distutils-r1.sh
index 4c8e37b26170..b511e19d9e72 100755
--- a/eclass/tests/distutils-r1.sh
+++ b/eclass/tests/distutils-r1.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
+EAPI=7
+PYTHON_COMPAT=( python3_8 )
source tests-common.sh
test-phase_name_free() {
@@ -21,18 +21,18 @@ test-distutils_enable_tests() {
local runner=${1}
local exp_IUSE=${2}
local exp_RESTRICT=${3}
- local exp_DEPEND=${4}
+ local exp_BDEPEND=${4}
local IUSE=${IUSE}
local RESTRICT=${RESTRICT}
- local DEPEND=${DEPEND}
+ local BDEPEND=${BDEPEND}
tbegin "${runner}"
distutils_enable_tests "${runner}"
local ret var
- for var in IUSE RESTRICT DEPEND; do
+ for var in IUSE RESTRICT BDEPEND; do
local exp_var=exp_${var}
if [[ ${!var} != "${!exp_var}" ]]; then
eindent
@@ -62,8 +62,8 @@ tend
einfo distutils_enable_tests
eindent
-BASE_IUSE="python_targets_python2_7"
-BASE_DEPS="python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)]"
+BASE_IUSE="python_targets_python3_8"
+BASE_DEPS="python_targets_python3_8? ( dev-lang/python:3.8 ) >=dev-lang/python-exec-2:=[python_targets_python3_8(-)?,-python_single_target_python3_8(-)]"
TEST_RESTRICT=" !test? ( test )"
einfo "empty RDEPEND"