Skip to content

Commit 0205fd6

Browse files
authored
Add support for Python 3.12 (#112)
1 parent fbddefc commit 0205fd6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
46+
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.12"]
4747

4848
steps:
4949
- uses: actions/checkout@v3
5050
- name: Set up Python ${{ matrix.python-version }}
5151
uses: actions/setup-python@v4
5252
with:
5353
python-version: ${{ matrix.python-version }}
54+
allow-prereleases: true
5455
- name: Install dependencies
5556
run: |
5657
python -m pip install --upgrade pip wheel flake8

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ PYTHON38=python3.8
1818
PYTHON39=python3.9
1919
PYTHON310=python3.10
2020
PYTHON311=python3.11
21+
PYTHON312=python3.12
2122
PYTHON2=/usr/bin/python2
2223
PYTHON3=/usr/bin/python3
2324
PYTHON=${PYTHON3}
@@ -84,7 +85,8 @@ test_lazy: .stamp-tzinfo
8485
&& ${PYTHON38} test_lazy.py ${TESTARGS} \
8586
&& ${PYTHON39} test_lazy.py ${TESTARGS} \
8687
&& ${PYTHON310} test_lazy.py ${TESTARGS} \
87-
&& ${PYTHON311} test_lazy.py ${TESTARGS}
88+
&& ${PYTHON311} test_lazy.py ${TESTARGS} \
89+
&& ${PYTHON312} test_lazy.py ${TESTARGS}
8890

8991
test_tzinfo: .stamp-tzinfo
9092
cd build/dist/pytz/tests \
@@ -102,7 +104,8 @@ test_tzinfo: .stamp-tzinfo
102104
&& ${PYTHON38} test_tzinfo.py ${TESTARGS} \
103105
&& ${PYTHON39} test_tzinfo.py ${TESTARGS} \
104106
&& ${PYTHON310} test_tzinfo.py ${TESTARGS} \
105-
&& ${PYTHON311} test_tzinfo.py ${TESTARGS}
107+
&& ${PYTHON311} test_tzinfo.py ${TESTARGS} \
108+
&& ${PYTHON312} test_tzinfo.py ${TESTARGS}
106109

107110
test_docs: .stamp-tzinfo
108111
cd build/dist/pytz/tests \

src/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
'Programming Language :: Python :: 3.9',
6565
'Programming Language :: Python :: 3.10',
6666
'Programming Language :: Python :: 3.11',
67+
'Programming Language :: Python :: 3.12',
6768
'Topic :: Software Development :: Libraries :: Python Modules',
6869
],
6970
)

0 commit comments

Comments
 (0)