summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-10-22 16:57:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-10-22 16:57:13 -0400
commit825600475a66a127e1b59b39e6521c340029c660 (patch)
tree717b832e95092bcafd45ece540359f62fe2475f5 /pkg_resources
parent98f29d4f4427591ac186c5f24aaf301057b37c27 (diff)
downloadpython-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.
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py7
1 files changed, 7 insertions, 0 deletions
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