Skip to content

Commit b84aa78

Browse files
committed
Add support for Python 3.12
1 parent 63f6566 commit b84aa78

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python: ['3.8', '3.9', '3.10', '3.11']
19+
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
2020
django: ['3.2', '4.1', '4.2']
2121
exclude:
22-
- python: '3.11'
22+
- python: '3.12'
2323
django: '3.2'
2424

2525
services:
@@ -35,8 +35,8 @@ jobs:
3535
name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }})
3636

3737
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions/setup-python@v2
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python }}
4242

@@ -54,7 +54,7 @@ jobs:
5454
PGHOST: localhost
5555

5656
- name: Publish coverage report
57-
uses: codecov/codecov-action@v1
57+
uses: codecov/codecov-action@v4
5858

5959
publish:
6060
name: Publish package to PyPI
@@ -64,18 +64,18 @@ jobs:
6464
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6565

6666
steps:
67-
- uses: actions/checkout@v2
68-
- uses: actions/setup-python@v2
67+
- uses: actions/checkout@v4
68+
- uses: actions/setup-python@v5
6969
with:
70-
python-version: '3.8'
70+
python-version: '3.10'
7171

7272
- name: Build sdist and wheel
7373
run: |
7474
pip install pip setuptools wheel --upgrade
7575
python setup.py sdist bdist_wheel
7676
7777
- name: Publish a Python distribution to PyPI
78-
uses: pypa/gh-action-pypi-publish@v1.4.1
78+
uses: pypa/gh-action-pypi-publish@release/v1
7979
with:
8080
user: __token__
8181
password: ${{ secrets.PYPI_TOKEN }}

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers =
2727
Programming Language :: Python :: 3.9
2828
Programming Language :: Python :: 3.10
2929
Programming Language :: Python :: 3.11
30+
Programming Language :: Python :: 3.12
3031
Topic :: Software Development :: Libraries :: Python Modules
3132

3233
[options]

timeline_logger/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pkg_resources import get_distribution
1+
from importlib.metadata import version
22

3-
__version__ = get_distribution("django-timeline-logger").version
3+
__version__ = version("django-timeline-logger")
44

55
default_app_config = "timeline_logger.apps.TimelineLoggerConfig"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
py{38,39,310}-django{32,41,42}
4-
py{38,39,310,311}-django{41,42}
4+
py{38,39,310,311,312}-django{41,42}
55
isort
66
black
77
docs

0 commit comments

Comments
 (0)