Skip to content

Commit

Permalink
Updating Minimum Python
Browse files Browse the repository at this point in the history
Fixes #182
  • Loading branch information
Anselmoo authored Jun 18, 2023
1 parent ca84c49 commit eee38dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# 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:
sys_version = sys.version_info
if sys_version < min_version:
error = """
edrixs does not support Python {0}.{1}.
Python {2}.{3} and above is required. Check your Python version like so:
Expand All @@ -23,7 +24,7 @@
pip install --upgrade pip
""".format(
*sys.version_info[:2], *min_version
*sys_version[:2], *min_version
)
sys.exit(error)

Expand All @@ -32,7 +33,7 @@
with open(path.join(here, "README.rst"), encoding="utf-8") as readme_file:
readme = readme_file.read()

with open(path.join(here, "requirements.txt")) as requirements_file:
with open(path.join(here, "requirements.txt"), encoding="utf-8") as requirements_file:
# Parse requirements.txt, ignoring any commented-out lines.
requirements = [
line
Expand Down

0 comments on commit eee38dc

Please sign in to comment.