diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-22 16:57:13 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-10-22 16:57:13 -0400 |
commit | 825600475a66a127e1b59b39e6521c340029c660 (patch) | |
tree | 717b832e95092bcafd45ece540359f62fe2475f5 | |
parent | 98f29d4f4427591ac186c5f24aaf301057b37c27 (diff) | |
download | python-setuptools-bitbucket-825600475a66a127e1b59b39e6521c340029c660.tar.gz |
Dropping support for Python 3.2 and earlier Python 3 versions. Currently only log a warning, but future versions will fail.
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | CHANGES.txt | 8 | ||||
-rw-r--r-- | pkg_resources/__init__.py | 7 | ||||
-rwxr-xr-x | setup.py | 2 |
4 files changed, 15 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 45cace4b..0097ab89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ language: python python: - 2.6 - 2.7 - - 3.2 - 3.3 - 3.4 - pypy diff --git a/CHANGES.txt b/CHANGES.txt index d2007753..6c7239d1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,14 @@ CHANGES ======= ---- +18.5 +---- + +* In preparation for dropping support for Python 3.2, a warning is + now logged when pkg_resources is imported on Python 3.2 or earlier + Python 3 versions. + +---- 18.4 ---- diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index ce8f2e98..ae363755 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -95,6 +95,13 @@ except ImportError: import packaging.specifiers +if (3, 0) < sys.version_info < (3, 3): + msg = ( + "Support for Python 3.0-3.2 has been dropped. Future versions " + "will fail here." + ) + warnings.warn(msg) + # declare some globals that will be defined later to # satisfy the linters. require = None @@ -140,8 +140,6 @@ setup_params = dict( Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.1 - Programming Language :: Python :: 3.2 Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 |