Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 83be74f

Browse files
committed
change python version checks
1 parent 90bdec9 commit 83be74f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import sys
2-
if sys.version_info < (2, 7):
3-
print(sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0]))
4-
print(sys.stderr, "Your Python is {}".format(sys.version))
5-
sys.exit(1)
6-
7-
81
from setuptools import setup, find_packages
92

103

@@ -18,6 +11,8 @@
1811
author_email="zak@madzak.com",
1912
package_dir={'': 'src'},
2013
packages=find_packages("src", exclude="tests"),
14+
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
15+
python_requires='>=2.7',
2116
test_suite="tests.tests",
2217
classifiers=[
2318
'Development Status :: 3 - Alpha',

0 commit comments

Comments
 (0)