Skip to content

Commit

Permalink
support python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Oct 15, 2021
1 parent 790ba5f commit 2186ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

steps:

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def check_python_version():
"""Exit when the Python version is too low."""
if sys.version < MINIMUM_PYTHON_VERSION:
if not any([f"3.{x}" in sys.version for x in range(6, 30)]):
sys.exit("Python {0}+ is required.".format(MINIMUM_PYTHON_VERSION))


Expand Down Expand Up @@ -102,6 +102,7 @@ def build_description():
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
install_requires=["typing_extensions"],
extras_require={"dev": DEV_REQUIRES},
Expand Down

0 comments on commit 2186ed1

Please sign in to comment.