Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 3/3] python-utils-r1.eclass: Remove Python 3.5
Date: Sat, 14 Dec 2019 10:51:41
Message-Id: 20191214105036.315604-3-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/3] python-any-r1.eclass: Constrain to EAPI >= 5 by David Seifert
1 * Python 3.5 will go EOL on 2020-09-13 and in order to reduce testing
2 and maintenance burden, we want to keep the number of active Py3
3 impls below four.
4
5 https://devguide.python.org/#status-of-python-branches
6
7 Signed-off-by: David Seifert <soap@g.o>
8 ---
9 eclass/python-utils-r1.eclass | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
11
12 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
13 index 779e228e4dc..aae091fade7 100644
14 --- a/eclass/python-utils-r1.eclass
15 +++ b/eclass/python-utils-r1.eclass
16 @@ -47,7 +47,7 @@ _PYTHON_ALL_IMPLS=(
17 jython2_7
18 pypy pypy3
19 python2_7
20 - python3_5 python3_6 python3_7 python3_8
21 + python3_6 python3_7 python3_8
22 )
23 readonly _PYTHON_ALL_IMPLS
24
25 @@ -83,10 +83,10 @@ _python_impl_supported() {
26 # keep in sync with _PYTHON_ALL_IMPLS!
27 # (not using that list because inline patterns shall be faster)
28 case "${impl}" in
29 - python2_7|python3_[5678]|jython2_7|pypy|pypy3)
30 + python2_7|python3_[678]|jython2_7|pypy|pypy3)
31 return 0
32 ;;
33 - pypy1_[89]|pypy2_0|python2_[56]|python3_[1234])
34 + pypy1_[89]|pypy2_0|python2_[56]|python3_[12345])
35 return 1
36 ;;
37 *)
38 --
39 2.24.1