diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-10-11 18:21:56 +0300 |
---|---|---|
committer | Stub <stuart@stuartbishop.net> | 2021-10-12 08:44:41 +1100 |
commit | 2ed682a7c4079042f50975970fc4f503c8450058 (patch) | |
tree | 176ec03801922798343218b4c43bb826d8420f44 | |
parent | 82bb1b714af11f418def285b544b419775a36566 (diff) | |
download | pytz-git-2ed682a7c4079042f50975970fc4f503c8450058.tar.gz |
Add support for Python 3.10
-rw-r--r-- | .github/workflows/main.yml | 4 | ||||
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | src/setup.py | 1 |
3 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c29d09..4f25569 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy:
matrix:
- python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
+ python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
@@ -32,7 +32,7 @@ jobs: cd build/dist/pytz/tests
python test_docs.py -vv
- name: zdump Tests
- if: ${{ matrix.python-version == '3.9' }}
+ if: ${{ matrix.python-version == '3.10' }}
run: |
python gen_tests.py
python test_zdump.py -vv
@@ -16,6 +16,7 @@ PYTHON36=python3.6 PYTHON37=python3.7 PYTHON38=python3.8 PYTHON39=python3.9 +PYTHON310=python3.10 PYTHON2=/usr/bin/python2 PYTHON3=/usr/bin/python3 PYTHON=${PYTHON3} @@ -80,7 +81,8 @@ test_lazy: .stamp-tzinfo && ${PYTHON36} test_lazy.py ${TESTARGS} \ && ${PYTHON37} test_lazy.py ${TESTARGS} \ && ${PYTHON38} test_lazy.py ${TESTARGS} \ - && ${PYTHON39} test_lazy.py ${TESTARGS} + && ${PYTHON39} test_lazy.py ${TESTARGS} \ + && ${PYTHON310} test_lazy.py ${TESTARGS} test_tzinfo: .stamp-tzinfo cd build/dist/pytz/tests \ @@ -96,7 +98,8 @@ test_tzinfo: .stamp-tzinfo && ${PYTHON36} test_tzinfo.py ${TESTARGS} \ && ${PYTHON37} test_tzinfo.py ${TESTARGS} \ && ${PYTHON38} test_tzinfo.py ${TESTARGS} \ - && ${PYTHON39} test_tzinfo.py ${TESTARGS} + && ${PYTHON39} test_tzinfo.py ${TESTARGS} \ + && ${PYTHON310} test_tzinfo.py ${TESTARGS} test_docs: .stamp-tzinfo cd build/dist/pytz/tests \ @@ -107,7 +110,7 @@ test_zdump: dist ${PYTHON3} gen_tests.py ${TARGET} && \ ${PYTHON3} test_zdump.py ${TESTARGS} && \ ${PYTHON2} test_zdump.py ${TESTARGS} && \ - ${PYTHON39} test_zdump.py ${TESTARGS} + ${PYTHON310} test_zdump.py ${TESTARGS} build/dist/test_zdump.py: .stamp-zoneinfo diff --git a/src/setup.py b/src/setup.py index e31ff2b..fcf850c 100644 --- a/src/setup.py +++ b/src/setup.py @@ -62,6 +62,7 @@ setup( 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) |