From 17cb926d568aa5df88ddfbb88c203a6923f84eb1 Mon Sep 17 00:00:00 2001 From: likeon Date: Mon, 8 Apr 2019 13:59:04 +0200 Subject: [PATCH] Removed CPython 2.6 from a list of currently tested versions in README Added "Python-Requires" metadata to setup.py to prevent package installation on python versions below 2.7 --- README.rst | 1 - setup.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 43dae7b..7fe170f 100644 --- a/README.rst +++ b/README.rst @@ -39,7 +39,6 @@ You can test against multiple versions of Python with Versions currently tested in both tox and Travis CI are: -* CPython 2.6 * CPython 2.7 * CPython 3.4 * CPython 3.5 diff --git a/setup.py b/setup.py index 7c7976d..28f403b 100755 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ except ImportError: setup( name='contextlib2', version=open('VERSION.txt').read().strip(), + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', py_modules=['contextlib2'], license='PSF License', description='Backports and enhancements for the contextlib module',