Skip to content

Commit

Permalink
add version info
Browse files Browse the repository at this point in the history
 * remove python2 support shown in classifier
  • Loading branch information
JunAishima committed Dec 22, 2021
1 parent b0bef91 commit 55e5a40
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@

import versioneer
import os
import sys

# NOTE: This file must remain Python 2 compatible for the foreseeable future,
# to ensure that we error out properly for people with outdated setuptools
# and/or pip.
min_version = (3, 6)
if sys.version_info < min_version:
error = """
mxtools does not support Python {0}.{1}.
Python {2}.{3} and above is required. Check your Python version like so:
python3 --version
This may be due to an out-of-date pip. Make sure you have pip >= 9.0.1.
Upgrade pip like so:
pip install --upgrade pip
""".format(
*(sys.version_info[:2] + min_version)
)
sys.exit(error)

here = os.path.abspath(os.path.dirname(__file__))

Expand All @@ -32,11 +53,11 @@ def read(fname):
install_requires=requirements,
license="BSD (3-clause)",
url="https://github.com/NSLS-II/analysisstore.git",
python_requires=">={}".format(".".join(str(n) for n in min_version)),
packages=find_packages(),
classifiers=[
"License :: OSI Approved :: BSD License",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 3',
],
)

0 comments on commit 55e5a40

Please sign in to comment.