Update supported Django versions.

This commit is contained in:
Emil Stenström 2022-07-14 10:18:03 +02:00
parent 77e4cdc543
commit f4c477e412
4 changed files with 22 additions and 17 deletions

View file

@ -12,6 +12,7 @@ jobs:
- 3.7
- 3.8
- 3.9
- 3.10
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}

View file

@ -161,14 +161,15 @@ TEMPLATES = [
# Compatiblity
Django-components supports all officially supported versions of Django and Python.
Django-components supports all <a href="https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django">officially supported versions</a> of Django and Python.
| Python version | Django version |
|----------------|--------------------------|
| 3.6 | 2.2, 3.0, 3.1, 3.2 |
| 3.7 | 2.2, 3.0, 3.1, 3.2 |
| 3.8 | 2.2, 3.0, 3.1, 3.2 |
| 3.9 | 2.2, 3.0, 3.1, 3.2 |
| 3.6 | 3.2 |
| 3.7 | 3.2 |
| 3.8 | 3.2, 4.0 |
| 3.9 | 3.2, 4.0 |
| 3.10 | 4.0 |
# Create your first component

View file

@ -17,7 +17,7 @@ setup(
author="Emil Stenström",
author_email="emil@emilstenstrom.se",
url="https://github.com/EmilStenstrom/django-components/",
install_requires=["Django>=2.2"],
install_requires=["Django>=3.2"],
license="MIT",
keywords=["django", "components", "css", "js", "html"],
classifiers=[
@ -27,11 +27,10 @@ setup(
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
],
)

20
tox.ini
View file

@ -1,23 +1,27 @@
# This library strives to support the same versions of django and python that django supports:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
[tox]
envlist =
py{36,37,38,39}-django{22,30,31,32}
py{36,37}-django{32}
py{38,39}-django{32,40}
py310-django{40}
flake8
isort
[gh-actions]
3.6 = py36-django{22,30,31,32}
3.7 = py37-django{22,30,31,32}
3.8 = py38-django{22,30,31,32}
3.9 = py39-django{22,30,31,32}, flake8, isort
3.6 = py36-django{32}
3.7 = py37-django{32}
3.8 = py38-django{32,40}
3.9 = py39-django{32,40}
3.10 = py310-django{40}, flake8, isort
[testenv]
deps =
pytest
pytest-xdist
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
flake8
isort
commands = py.test {posargs}