Skip to content

Commit

Permalink
Add support for Django 5 and Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
zemgin committed Nov 10, 2023
1 parent 7afc131 commit 46536c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v1
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 5.0",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [{ include = "csp" }]

[tool.poetry.dependencies]
python = "^3.8"
django = "^3.2 || ^4.0"
django = "^3.2 || ^4.0 | ^5.0"
pydantic = "*"

[tool.poetry.dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist =
fmt, lint, mypy, checks,
py{3.10}-django{32,42,50,main}
py{3.11}-django{42,50,main}
py{3.12}-django{50,main}
py{3.12}-django{42,50,main}

[testenv]
deps =
Expand All @@ -15,6 +15,7 @@ deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django50: https://github.com/django/django/archive/stable/5.0.x.tar.gz
djangomain: https://github.com/django/django/archive/main.tar.gz

commands =
Expand Down

0 comments on commit 46536c3

Please sign in to comment.