Skip to content

fix: make it work for django5.0 #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version-file: pyproject.toml
cache: 'poetry'
- run: pip install tox
- run: tox -e lint,py311-dj42
- run: tox -e lint,py311-dj50
test_compatibility:
needs: test
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
packages = [
{ include = "pattern_library" },
Expand All @@ -43,7 +44,7 @@ exclude = [

[tool.poetry.dependencies]
python = "^3.8"
Django = ">=3.2,<5.0"
Django = ">=3.2,<5.1"
PyYAML = ">=5.1,<7.0"
Markdown = "^3.1"

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ envlist =
py{38,39,310}-dj32
py{38,39,310,311}-dj41
py{38,39,310,311}-dj42
py{38,39,310,311}-dj50
Comment on lines 5 to +6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
py{38,39,310,311}-dj42
py{38,39,310,311}-dj50
py{38,39,310,311,12}-dj42
py{310,311,12}-dj50

https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django

py{310,311}-djmain
lint
skipsdist = true
Expand All @@ -20,6 +21,7 @@ deps =
dj32: Django>=3.2,<3.3
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.zip

[testenv:lint]
Expand Down