From fc2a87faa7d2694a30553f269a25704184ac4690 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 22 Jul 2024 09:20:47 +0200 Subject: [PATCH] Add support for DRF 3.15 and drop Django <4.2 --- README.md | 4 ++-- setup.py | 3 --- tox.ini | 19 +++++-------------- 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 53dbce4..5af1290 100644 --- a/README.md +++ b/README.md @@ -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 ============ diff --git a/setup.py b/setup.py index 3682599..97da8f9 100644 --- a/setup.py +++ b/setup.py @@ -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', diff --git a/tox.ini b/tox.ini index f237c61..40284c1 100644 --- a/tox.ini +++ b/tox.ini @@ -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] @@ -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 @@ -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