Skip to content

Commit

Permalink
Support python 3.12 (#683)
Browse files Browse the repository at this point in the history
* Support python 3.12

* Ensure setuptools is in the python3.12 environment
  • Loading branch information
albertyw authored Nov 25, 2023
1 parent f4aad67 commit 64c02f8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.1', 'main']
postgres-version: ['11', '12']
mariadb-version: ['10.3', '10.4']
exclude:
# Django <=4.0 doesn't support python 3.11 (https://docs.djangoproject.com/en/4.1/faq/install/)
- python-version: '3.11'
django-version: '3.2'
- python-version: '3.12'
django-version: '3.2'

# Django <=4.1 doesn't support python 3.12 (https://docs.djangoproject.com/en/4.1/faq/install/)
- python-version: '3.12'
django-version: '4.1'

# only test Django dev with PostgreSQL 12 and MariaDB 10.4
- django-version: '3.2'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Silk is a live profiling and inspection tool for the Django framework. Silk inte
Silk has been tested with:

* Django: 3.2, 4.1
* Python: 3.8, 3.9, 3.10, 3.11
* Python: 3.8, 3.9, 3.10, 3.11, 3.12

## Installation

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[gh-actions:env]
DJANGO =
Expand All @@ -16,6 +17,7 @@ envlist =
py{38,39,310}-dj32-{sqlite3,mysql,postgresql}
py{38,39,310}-dj{40,41,main}-{sqlite3,mysql,postgresql}
py311-dj{41,main}-{sqlite3,mysql,postgresql}
py312-dj{main}-{sqlite3,mysql,postgresql}

[testenv]
usedevelop = True
Expand All @@ -29,6 +31,7 @@ deps =
dj32: django>=3.2,<3.3
dj41: django>=4.1,<4.2
djmain: https://github.com/django/django/archive/main.tar.gz
py312: setuptools
setenv =
PYTHONPATH={toxinidir}:{toxinidir}
PYTHONDONTWRITEBYTECODE=1
Expand Down

0 comments on commit 64c02f8

Please sign in to comment.