mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00
Update django-components to support Python 3.12 and Django 5.0.
This commit is contained in:
parent
5a6dc23e67
commit
99b0cbc67a
3 changed files with 30 additions and 21 deletions
22
README.md
22
README.md
|
@ -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
|
||||
|
||||
|
@ -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
setup.py
14
setup.py
|
@ -21,19 +21,21 @@ setup(
|
|||
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
tox.ini
15
tox.ini
|
@ -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
|
||||
|
||||
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue