Skip to content

Commit

Permalink
Merge pull request #3120 from davidbrochart/python_requires
Browse files Browse the repository at this point in the history
Use python_requires >=3.5
  • Loading branch information
willingc authored Feb 15, 2021
2 parents cb8eefe + fadc89b commit f6c160d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,11 @@
IntSlider()
"""

#-----------------------------------------------------------------------------
# Minimal Python version sanity check
#-----------------------------------------------------------------------------

import sys

v = sys.version_info
if v[:2] < (3, 5):
error = "ERROR: %s requires Python version 3.5 or above." % name
print(error, file=sys.stderr)
sys.exit(1)

#-----------------------------------------------------------------------------
# get on with it
#-----------------------------------------------------------------------------

import sys
import os
from distutils.core import setup
from distutils.command.build_py import build_py
Expand Down Expand Up @@ -99,6 +88,7 @@
'build_py': build_py,
'sdist': sdist,
},
python_requires = '>=3.5',
)

if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
Expand Down

0 comments on commit f6c160d

Please sign in to comment.