Skip to content

Commit

Permalink
Drop support for EOL Django 3.2, 4.1, add support for 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetech committed Sep 2, 2024
1 parent c66f9d3 commit 52b2205
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
python: '3.12'
allow_failure: false

- name: py312-dj50-postgres-xdist-coverage
- name: py312-dj51-postgres-xdist-coverage
python: '3.12'
allow_failure: false

- name: py312-dj42-postgres-xdist-coverage
python: '3.12'
allow_failure: false

Expand All @@ -79,48 +83,48 @@ jobs:
python: '3.11'
allow_failure: false

- name: py310-dj41-postgres-xdist-coverage
- name: py310-dj51-postgres-xdist-coverage
python: '3.10'
allow_failure: false

- name: py310-dj32-postgres-xdist-coverage
- name: py310-dj42-postgres-xdist-coverage
python: '3.10'
allow_failure: false

- name: py311-dj41-mysql_innodb-coverage
- name: py311-dj51-mysql_innodb-coverage
python: '3.11'
allow_failure: false

- name: py310-dj42-mysql_innodb-coverage
python: '3.10'
allow_failure: false

- name: py39-dj32-mysql_innodb-xdist-coverage
- name: py39-dj42-mysql_innodb-xdist-coverage
python: '3.9'
allow_failure: false

- name: py38-dj41-sqlite-xdist-coverage
python: '3.8'
- name: py312-dj51-sqlite-xdist-coverage
python: '3.12'
allow_failure: false

- name: py38-dj32-sqlite-xdist-coverage
- name: py38-dj42-sqlite-xdist-coverage
python: '3.8'
allow_failure: false

- name: py310-djmain-sqlite-coverage
python: '3.10'
- name: py311-djmain-sqlite-coverage
python: '3.11'
allow_failure: true

- name: py38-dj32-mysql_myisam-coverage
python: '3.8'
- name: py311-dj42-mysql_myisam-coverage
python: '3.11'
allow_failure: false

# Explicitly test min pytest.
- name: py38-dj32-sqlite-pytestmin-coverage
- name: py38-dj42-sqlite-pytestmin-coverage
python: '3.8'
allow_failure: false

# pypy3: not included with coverage reports (much slower then).
- name: pypy3-dj32-postgres
- name: pypy3-dj42-postgres
python: 'pypy3.9'
allow_failure: false
7 changes: 3 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ pytest-django allows you to test your Django project/applications with the
<https://pytest-django.readthedocs.io/en/latest/contributing.html>`_
* Version compatibility:

* Django: 3.2, 4.1, 4.2, 5.0 and latest main branch (compatible at the time
* Django: 4.2, 5.0, 5.1 and latest main branch (compatible at the time
of each release)
* Python: CPython>=3.8 or PyPy 3
* pytest: >=7.0

For compatibility with older versions, use the pytest-django 3.*.* series.
For compatibility with older versions, use previous pytest-django releases.

* Licence: BSD
* Project maintainers: Andreas Pelme, Floris Bruynooghe and Daniel Hahler
* `All contributors <https://github.com/pytest-dev/pytest-django/contributors>`_
* GitHub repository: https://github.com/pytest-dev/pytest-django
* `Issue tracker <http://github.com/pytest-dev/pytest-django/issues>`_
* `Issue tracker <https://github.com/pytest-dev/pytest-django/issues>`_
* `Python Package Index (PyPI) <https://pypi.python.org/pypi/pytest-django/>`_

Install pytest-django
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand Down
16 changes: 7 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tox]
envlist =
py312-dj{main,50}-postgres
py311-dj{main,50,42,41}-postgres
py310-dj{main,50,42,41,32}-postgres
py39-dj{main,42,41,32}-postgres
py38-dj{main,42,41,32}-postgres
py37-dj{32}-postgres
py312-dj{main,51,50,42}-postgres
py311-dj{main,51,50,42}-postgres
py310-dj{main,51,50,42}-postgres
py39-dj42-postgres
py38-dj42-postgres
linting

[testenv]
extras = testing
deps =
djmain: https://github.com/django/django/archive/main.tar.gz
dj50: Django>=5.0a1,<5.1
dj51: Django>=5.1,<5.2
dj50: Django>=5.0,<5.1
dj42: Django>=4.2,<4.3
dj41: Django>=4.1,<4.2
dj32: Django>=3.2,<4.0

mysql_myisam: mysqlclient==2.1.0
mysql_innodb: mysqlclient==2.1.0
Expand Down

0 comments on commit 52b2205

Please sign in to comment.