Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] officially drop support for python 2.6, 3.1, and 3.2
Date: Sat, 30 May 2015 14:58:10
Message-Id: 1432997883-13531-1-git-send-email-vapier@gentoo.org
1 We no longer support these in the ebuild and don't want to waste time
2 implementing compatibility shims for them.
3 ---
4 .travis.yml | 2 --
5 DEVELOPING | 8 ++++----
6 README | 2 +-
7 runtests.sh | 4 ++--
8 4 files changed, 7 insertions(+), 9 deletions(-)
9
10 diff --git a/.travis.yml b/.travis.yml
11 index 69e1659..8a86aa6 100644
12 --- a/.travis.yml
13 +++ b/.travis.yml
14 @@ -1,8 +1,6 @@
15 language: python
16 python:
17 - - 2.6
18 - 2.7
19 - - 3.2
20 - 3.3
21 - 3.4
22 - pypy
23 diff --git a/DEVELOPING b/DEVELOPING
24 index 55470d8..0b0bb60 100644
25 --- a/DEVELOPING
26 +++ b/DEVELOPING
27 @@ -8,10 +8,10 @@ bad habits that exist in the current codebase.
28 Python Version
29 --------------
30
31 -Python 2.6 is the minimum supported version, since it is the first
32 -version to support Python 3 syntax. All exception handling should use
33 -Python 3 'except' syntax, and the print function should be used instead
34 -of Python 2's print statement (from __future__ import print_function).
35 +Python 2.7 is the minimum supported version as it eases 3.x compatibility.
36 +All exception handling should use Python 3 'except' syntax, and the print
37 +function should be used instead of Python 2's print statement (use "from
38 +__future__ import print_function" everywhere).
39
40 Dependencies
41 ------------
42 diff --git a/README b/README
43 index 5558dde..415a962 100644
44 --- a/README
45 +++ b/README
46 @@ -10,7 +10,7 @@ package managers.
47 Dependencies
48 ============
49
50 -Python and Bash should be the only hard dependencies. Python 2.6 is the
51 +Python and Bash should be the only hard dependencies. Python 2.7 is the
52 minimum supported version.
53
54
55 diff --git a/runtests.sh b/runtests.sh
56 index 651928f..a7ca101 100755
57 --- a/runtests.sh
58 +++ b/runtests.sh
59 @@ -3,8 +3,8 @@
60 # Distributed under the terms of the GNU General Public License v2
61
62 # These are the versions we care about. The rest are just "nice to have".
63 -PYTHON_SUPPORTED_VERSIONS="2.6 2.7 3.2 3.3 3.4"
64 -PYTHON_VERSIONS="2.6 2.7 pypy 3.1 3.2 3.3 3.4 3.5"
65 +PYTHON_SUPPORTED_VERSIONS="2.7 3.3 3.4"
66 +PYTHON_VERSIONS="2.7 pypy 3.3 3.4 3.5"
67
68 # has to be run from portage root dir
69 cd "${0%/*}" || exit 1
70 --
71 2.4.1

Replies