diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-01-11 12:34:18 -0800 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2018-01-11 21:34:18 +0100 |
| commit | f7171c45d7cfc1ce68baa7cd0afdaa94e28305a5 (patch) | |
| tree | 26156a007dba60d1428e739e1716b710a974d7ce /setup.py | |
| parent | a86c6f65c123442802c44d27e45b5e014a62fe3b (diff) | |
| download | psutil-f7171c45d7cfc1ce68baa7cd0afdaa94e28305a5.tar.gz | |
Pass python_requires argument to setuptools (#1208)
Helps pip decide what version of the library to install.
https://packaging.python.org/tutorials/distributing-packages/#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.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -338,6 +338,7 @@ def main(): ) if setuptools is not None: kwargs.update( + python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", test_suite="psutil.tests.get_suite", tests_require=tests_require, extras_require=extras_require, |
