From 2ed682a7c4079042f50975970fc4f503c8450058 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 11 Oct 2021 18:21:56 +0300 Subject: Add support for Python 3.10 --- .github/workflows/main.yml | 4 ++-- Makefile | 9 ++++++--- 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 diff --git a/Makefile b/Makefile index 4acd0b5..ac6f43c 100644 --- a/Makefile +++ b/Makefile @@ -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', ], ) -- cgit v1.2.1