From ae6c73f07680da77345f5ccfac4facde30ad4d7e Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 22 Oct 2015 16:57:13 -0400 Subject: Dropping support for Python 3.2 and earlier Python 3 versions. Currently only log a warning, but future versions will fail. --- pkg_resources/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg_resources') 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 -- cgit v1.2.3