Skip to content

Commit

Permalink
Add support for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and stub42 committed Oct 30, 2022
1 parent 1ab3481 commit 7ff7f35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,7 +32,7 @@ jobs:
cd build/dist/pytz/tests
python test_docs.py -vv
- name: zdump Tests
if: ${{ matrix.python-version == '3.10' }}
if: ${{ matrix.python-version == '3.11' }}
run: |
python gen_tests.py
python test_zdump.py -vv
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ PYTHON37=python3.7
PYTHON38=python3.8
PYTHON39=python3.9
PYTHON310=python3.10
PYTHON311=python3.11
PYTHON2=/usr/bin/python2
PYTHON3=/usr/bin/python3
PYTHON=${PYTHON3}
Expand Down Expand Up @@ -82,7 +83,8 @@ test_lazy: .stamp-tzinfo
&& ${PYTHON37} test_lazy.py ${TESTARGS} \
&& ${PYTHON38} test_lazy.py ${TESTARGS} \
&& ${PYTHON39} test_lazy.py ${TESTARGS} \
&& ${PYTHON310} test_lazy.py ${TESTARGS}
&& ${PYTHON310} test_lazy.py ${TESTARGS} \
&& ${PYTHON311} test_lazy.py ${TESTARGS}

test_tzinfo: .stamp-tzinfo
cd build/dist/pytz/tests \
Expand All @@ -99,7 +101,8 @@ test_tzinfo: .stamp-tzinfo
&& ${PYTHON37} test_tzinfo.py ${TESTARGS} \
&& ${PYTHON38} test_tzinfo.py ${TESTARGS} \
&& ${PYTHON39} test_tzinfo.py ${TESTARGS} \
&& ${PYTHON310} test_tzinfo.py ${TESTARGS}
&& ${PYTHON310} test_tzinfo.py ${TESTARGS} \
&& ${PYTHON311} test_tzinfo.py ${TESTARGS}

test_docs: .stamp-tzinfo
cd build/dist/pytz/tests \
Expand All @@ -110,7 +113,7 @@ test_zdump: dist
${PYTHON3} gen_tests.py ${TARGET} && \
${PYTHON3} test_zdump.py ${TESTARGS} && \
${PYTHON2} test_zdump.py ${TESTARGS} && \
${PYTHON310} test_zdump.py ${TESTARGS}
${PYTHON311} test_zdump.py ${TESTARGS}

build/dist/test_zdump.py: .stamp-zoneinfo

Expand Down
1 change: 1 addition & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)

0 comments on commit 7ff7f35

Please sign in to comment.