41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From a1dab8487f8fdfdab4429dbe8ff1683907f08c48 Mon Sep 17 00:00:00 2001
|
|
From: Jon Dufresne <jon.dufresne@gmail.com>
|
|
Date: Thu, 12 Apr 2018 04:15:49 -0700
|
|
Subject: [PATCH] Pass python_requires argument to setuptools
|
|
|
|
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.
|
|
---
|
|
setup.py | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index bf3f7c3..06f2946 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -21,6 +21,7 @@ This is a pure Python library.
|
|
license="MIT",
|
|
py_modules=['imagesize'],
|
|
test_suite='test',
|
|
+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Developers',
|
|
--
|
|
2.39.0.windows.2
|
|
|