Skip to content

Commit

Permalink
Add support for Python 3.12 (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Sep 4, 2023
1 parent fbddefc commit 0205fd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ jobs:

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

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel flake8
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ PYTHON38=python3.8
PYTHON39=python3.9
PYTHON310=python3.10
PYTHON311=python3.11
PYTHON312=python3.12
PYTHON2=/usr/bin/python2
PYTHON3=/usr/bin/python3
PYTHON=${PYTHON3}
Expand Down Expand Up @@ -84,7 +85,8 @@ test_lazy: .stamp-tzinfo
&& ${PYTHON38} test_lazy.py ${TESTARGS} \
&& ${PYTHON39} test_lazy.py ${TESTARGS} \
&& ${PYTHON310} test_lazy.py ${TESTARGS} \
&& ${PYTHON311} test_lazy.py ${TESTARGS}
&& ${PYTHON311} test_lazy.py ${TESTARGS} \
&& ${PYTHON312} test_lazy.py ${TESTARGS}

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

test_docs: .stamp-tzinfo
cd build/dist/pytz/tests \
Expand Down
1 change: 1 addition & 0 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)

0 comments on commit 0205fd6

Please # to comment.