Skip to content

Commit 12eaf00

Browse files
jdufresnejpadilla
authored andcommitted
Pass python_requires argument to setuptools (jpadilla#440)
Helps pip decide what version of the library to install. This is especially useful when removing support for EOL Python versions. https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires > If your project only runs on certain Python versions, setting the > python_requires argument to the appropriate PEP 440 version specifier > string will prevent pip from installing the project on other Python > versions. https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords > python_requires > > A string corresponding to a version specifier (as defined in PEP 440) > for the Python version, used to specify the Requires-Python defined in > PEP 345.
1 parent 6834f9e commit 12eaf00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def get_version(package):
6767
'Programming Language :: Python :: 3.7',
6868
'Topic :: Utilities',
6969
],
70+
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
7071
test_suite='tests',
7172
setup_requires=pytest_runner,
7273
tests_require=tests_require,

0 commit comments

Comments
 (0)