Skip to content

Commit

Permalink
fix: make it work for django5.0 (updated) (#241)
Browse files Browse the repository at this point in the history
* fix: make it work for django5.0

* Update CHANGELOG

---------

Co-authored-by: peko <[email protected]>
  • Loading branch information
alxbridge and llPekoll authored Jan 16, 2024
1 parent dfc31df commit e41b502
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
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: "3.11"
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Added

- Add support for Django 5.0 ([#241](https://github.com/torchbox/django-pattern-library/pull/241))

## [1.1.0](https://github.com/torchbox/django-pattern-library/releases/tag/v1.1.0) - 2023-10-25

### Added
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
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

0 comments on commit e41b502

Please sign in to comment.