Skip to content

Commit

Permalink
Add support for DRF 3.15 and drop Django <4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Jul 22, 2024
1 parent f147adf commit fc2a87f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Requirements
============

- Python (3.8, 3.9, 3.10, 3.11, 3.12)
- Django (3.2, 4.0, 4.1, 4.2, 5.0)
- djangorestframework (3.11+)
- Django (4.2, 5.0)
- djangorestframework (3.14+)

Installation
============
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ def get_version(package):
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Intended Audience :: Developers',
Expand Down
19 changes: 5 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ DJANGO_SETTINGS_MODULE = tests.settings

[tox]
envlist =
py{38,39,310,311}-dj{32}-drf{311,312,313,314}-pytest
py{38,39,310,311}-dj{40,41}-drf{313,314}-pytest
py{38,39,310,311,312}-dj{42}-drf{314}-{pytest,mypy}
py{310,311,312}-dj{50}-drf{314}-{pytest,mypy}
py{38,39,310,311,312}-dj42-drf{314,315}-pytest
py{310,311,312}-dj50-drf{314,315}-pytest
py312-dj50-drf315-mypy
skip_missing_interpreters = true

[gh-actions]
Expand All @@ -18,9 +17,6 @@ python =
3.11: py311
3.12: py312
django =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
5.0: dj50

Expand All @@ -29,17 +25,12 @@ setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
deps =
dj32: Django>=3.2a1,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<3.14
drf314: djangorestframework>=3.14,<3.15
drf315: djangorestframework>=3.15,<3.16
pytest: -rrequirements.txt
mypy: djangorestframework-stubs[compatible-mypy]
mypy: djangorestframework-stubs[compatible-mypy]>=3.15,<3.16
commands=
pytest: pytest --cov drf_writable_nested --cov-report=xml
mypy: mypy --show-traceback example
Expand Down

0 comments on commit fc2a87f

Please sign in to comment.