From 4fbaf248db4828a482d358c843c9ff35fa04c737 Mon Sep 17 00:00:00 2001 From: Oliver Sauder Date: Wed, 17 Apr 2024 22:29:09 +0200 Subject: [PATCH] Drop support for Django 3.2 Run django-upgrade --target-version 4.2 --- CHANGELOG.md | 3 ++- README.rst | 2 +- docs/getting-started.md | 2 +- example/urls_test.py | 6 +++--- setup.py | 2 +- tox.ini | 5 ----- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8a8f07..964f6b16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ any parts of the framework not mentioned in the documentation should generally b ### Removed * Removed support for Python 3.7. +* Removed support for Django 3.2. * Removed support for Django 4.0. * Removed support for Django 4.1. * Removed support for Django REST framework 3.13. @@ -33,7 +34,7 @@ any parts of the framework not mentioned in the documentation should generally b ## [6.1.0] - 2023-08-25 -This is the last release supporting Python 3.7, Django 4.0, Django 4.1 and Django REST framework 3.13. +This is the last release supporting Python 3.7, Django 3.2, Django 4.0, Django 4.1 and Django REST framework 3.13. ### Added diff --git a/README.rst b/README.rst index afe00f85..fd340af6 100644 --- a/README.rst +++ b/README.rst @@ -93,7 +93,7 @@ Requirements ------------ 1. Python (3.8, 3.9, 3.10, 3.11, 3.12) -2. Django (3.2, 4.2, 5.0) +2. Django (4.2, 5.0) 3. Django REST framework (3.14, 3.15) We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series. diff --git a/docs/getting-started.md b/docs/getting-started.md index 5aec6ffe..fd70c79a 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -52,7 +52,7 @@ like the following: ## Requirements 1. Python (3.8, 3.9, 3.10, 3.11, 3.12) -2. Django (3.2, 4.2, 5.0) +2. Django (4.2, 5.0) 3. Django REST framework (3.14, 3.15) We **highly** recommend and only officially support the latest patch release of each Python, Django and REST framework series. diff --git a/example/urls_test.py b/example/urls_test.py index bb8fbecf..26d4db21 100644 --- a/example/urls_test.py +++ b/example/urls_test.py @@ -1,4 +1,4 @@ -from django.urls import re_path +from django.urls import path, re_path from rest_framework import routers from .api.resources.identity import GenericIdentity, Identity @@ -46,8 +46,8 @@ urlpatterns = [ # old tests - re_path( - r"identities/default/(?P\d+)$", + path( + "identities/default/", GenericIdentity.as_view(), name="user-default", ), diff --git a/setup.py b/setup.py index 4ff629e4..95d5ca0b 100755 --- a/setup.py +++ b/setup.py @@ -107,7 +107,7 @@ def get_package_data(package): install_requires=[ "inflection>=0.5.0", "djangorestframework>=3.14", - "django>=3.2", + "django>=4.2", ], extras_require={ "django-polymorphic": ["django-polymorphic>=3.0"], diff --git a/tox.ini b/tox.ini index 354e328c..68646fb4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,5 @@ [tox] envlist = - py{38,39,310}-django32-drf{314,315,master}, py{38,39,310,311,312}-django42-drf{314,315,master}, py{310,311,312}-django50-drf{314,315,master}, black, @@ -9,7 +8,6 @@ envlist = [testenv] deps = - django32: Django>=3.2,<3.3 django42: Django>=4.2,<4.3 django50: Django>=5.0,<5.1 drf314: djangorestframework>=3.14,<3.15 @@ -48,9 +46,6 @@ deps = commands = sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html -[testenv:py{38,39,310}-django32-drfmaster] -ignore_outcome = true - [testenv:py{38,39,310,311,312}-django42-drfmaster] ignore_outcome = true