Skip to content

Commit a46a6bf

Browse files
committed
Require Python 3.5 or later, dropping support for Python 2.
This change does not yet remove any of the compatibility for Python 2, but only aims to declare the dropped support.
1 parent 7e97def commit a46a6bf

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@ language: python
44
jobs:
55
fast_finish: true
66
include:
7-
- &latest_py2
8-
python: 2.7
9-
- <<: *latest_py2
10-
env: LANG=C
11-
- python: pypy
12-
env: DISABLE_COVERAGE=1 # Don't run coverage on pypy (too slow).
137
- python: pypy3
14-
env: DISABLE_COVERAGE=1
8+
env: DISABLE_COVERAGE=1 # Don't run coverage on pypy (too slow).
159
- python: 3.5
1610
- python: 3.6
1711
- python: 3.7

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ environment:
99
matrix:
1010
- APPVEYOR_JOB_NAME: "python36-x64"
1111
PYTHON: "C:\\Python36-x64"
12-
- APPVEYOR_JOB_NAME: "python27-x64"
13-
PYTHON: "C:\\Python27-x64"
12+
- APPVEYOR_JOB_NAME: "python37-x64"
13+
PYTHON: "C:\\Python37-x64"
1414

1515
install:
1616
# symlink python from a directory with a space

changelog.d/1458.breaking.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop support for Python 2. Setuptools now requires Python 3.5 or later. Install setuptools using pip >=9 or pin to Setuptools <45 to maintain 2.7 support.

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ classifiers =
3535
Intended Audience :: Developers
3636
License :: OSI Approved :: MIT License
3737
Operating System :: OS Independent
38-
Programming Language :: Python :: 2
39-
Programming Language :: Python :: 2.7
4038
Programming Language :: Python :: 3
4139
Programming Language :: Python :: 3.5
4240
Programming Language :: Python :: 3.6
@@ -49,7 +47,7 @@ classifiers =
4947

5048
[options]
5149
zip_safe = True
52-
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
50+
python_requires = >=3.5
5351
py_modules = easy_install
5452
packages = find:
5553

0 commit comments

Comments
 (0)