Skip to content

Commit

Permalink
chore: Support for Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kimihito committed Aug 24, 2024
1 parent 54c3d69 commit 732b5fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ jobs:
strategy:
matrix:
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django: ["32", "42", "50", "main"]
django: ["32", "42", "50", "51", "main"]
exclude:
- python: "3.8"
django: "50"
- python: "3.8"
django: "51"
- python: "3.8"
django: "main"
- python: "3.9"
django: "50"
- python: "3.9"
django: "51"
- python: "3.9"
django: "main"

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -30,7 +31,7 @@ packages = [{ include = "user_visit" }]

[tool.poetry.dependencies]
python = "^3.8"
django = "^3.2 || ^4.0 || ^5.0"
django = "^3.2 || ^4.0 || ^5.0 || ^5.1"
user-agents = "^2.1"

[tool.poetry.dev-dependencies]
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ envlist =
django41-py{38,39,310,311}
django42-py{38,39,310,311}
django50-py{310,311,312}
django51-py{310,311,312}
djangomain-py{311,312}

[testenv]
Expand All @@ -22,7 +23,8 @@ deps =
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: https://github.com/django/django/archive/stable/5.0.x.tar.gz
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
djangomain: https://github.com/django/django/archive/main.tar.gz

commands =
Expand Down

0 comments on commit 732b5fd

Please sign in to comment.