Skip to content

Commit ae6c73f

Browse files
committed
Dropping support for Python 3.2 and earlier Python 3 versions. Currently only log a warning, but future versions will fail.
1 parent 513c0d0 commit ae6c73f

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: python
22
python:
33
- 2.6
44
- 2.7
5-
- 3.2
65
- 3.3
76
- 3.4
87
- pypy

CHANGES.txt

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
CHANGES
33
=======
44

5+
----
6+
18.5
7+
----
8+
9+
* In preparation for dropping support for Python 3.2, a warning is
10+
now logged when pkg_resources is imported on Python 3.2 or earlier
11+
Python 3 versions.
12+
513
----
614
18.4
715
----

pkg_resources/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
import packaging.specifiers
9696

9797

98+
if (3, 0) < sys.version_info < (3, 3):
99+
msg = (
100+
"Support for Python 3.0-3.2 has been dropped. Future versions "
101+
"will fail here."
102+
)
103+
warnings.warn(msg)
104+
98105
# declare some globals that will be defined later to
99106
# satisfy the linters.
100107
require = None

setup.py

-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ def _gen_console_scripts():
140140
Programming Language :: Python :: 2.6
141141
Programming Language :: Python :: 2.7
142142
Programming Language :: Python :: 3
143-
Programming Language :: Python :: 3.1
144-
Programming Language :: Python :: 3.2
145143
Programming Language :: Python :: 3.3
146144
Programming Language :: Python :: 3.4
147145
Programming Language :: Python :: 3.5

0 commit comments

Comments
 (0)