Skip to content

Commit

Permalink
Update django-components to support Python 3.12 and Django 5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilStenstrom committed Dec 9, 2023
1 parent 5a6dc23 commit 99b0cbc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ Django-components supports all <a href="https://docs.djangoproject.com/en/dev/fa
|----------------|--------------------------|
| 3.6 | 3.2 |
| 3.7 | 3.2 |
| 3.8 | 3.2, 4.0 |
| 3.9 | 3.2, 4.0 |
| 3.10 | 4.0 |
| 3.8 | 3.2, 4.0, 4.1, 4.2 |
| 3.9 | 3.2, 4.0, 4.1, 4.2 |
| 3.10 | 3.2, 4.0, 4.1, 4.2, 5.0 |
| 3.11 | 4.1, 4.2, 5.0 |
| 3.12 | 4.2, 5.0 |

## Create your first component

Expand Down Expand Up @@ -632,12 +634,14 @@ pytest
The library is also tested across many versions of Python and Django. To run tests that way:

```sh
pyenv install 3.6.9
pyenv install 3.7.9
pyenv install 3.8.9
pyenv install 3.9.4
pyenv install 3.10.5
pyenv local 3.6.9 3.7.9 3.8.9 3.9.4 3.10.5
pyenv install -s 3.6
pyenv install -s 3.7
pyenv install -s 3.8
pyenv install -s 3.9
pyenv install -s 3.10
pyenv install -s 3.11
pyenv install -s 3.12
pyenv local 3.6 3.7 3.8 3.9 3.10 3.11 3.12
tox -p
```

14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@
license="MIT",
keywords=["django", "components", "css", "js", "html"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Django :: 3.2",
"Programming Language :: Django :: 4.0",
"Programming Language :: Django :: 4.1",
"Programming Language :: Django :: 4.2",
"Programming Language :: Django :: 5.0",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
],
)
15 changes: 9 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ envlist =
py37-django{32}
py38-django{32,40,41,42}
py39-django{32,40,41,42}
py310-django{32,40,41,42}
py311-django{41,42}
py310-django{32,40,41,42,50}
py311-django{41,42,50}
py312-django{42,50}
flake8
isort

Expand All @@ -18,18 +19,20 @@ python =
3.7: py37-django{32}
3.8: py38-django{32,40,41,42}
3.9: py39-django{32,40,41,42}
3.10: py310-django{32,40,41,42}
3.11: py311-django{41,42}, flake8, isort
3.10: py310-django{32,40,41,42,50}
3.11: py311-django{41,42,50}
3.12: py312-django{42,50}, flake8, isort
fail_on_no_env = True

[testenv]
deps =
pytest
pytest-xdist
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
pytest
pytest-xdist
flake8
isort
commands = py.test {posargs}
Expand Down

0 comments on commit 99b0cbc

Please sign in to comment.