Skip to content

Commit 1f2daaf

Browse files
Drop support for Django < 4.2 and Python < 3.8
Discussion: #8814 (reply in thread)
1 parent 91bbac1 commit 1f2daaf

File tree

5 files changed

+9
-35
lines changed

5 files changed

+9
-35
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- '3.6'
18-
- '3.7'
1917
- '3.8'
2018
- '3.9'
2119
- '3.10'
@@ -37,18 +35,9 @@ jobs:
3735
- name: Install dependencies
3836
run: python -m pip install --upgrade codecov tox
3937

40-
- name: Install tox-py
41-
if: ${{ matrix.python-version == '3.6' }}
42-
run: python -m pip install --upgrade tox-py
43-
4438
- name: Run tox targets for ${{ matrix.python-version }}
45-
if: ${{ matrix.python-version != '3.6' }}
4639
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
4740

48-
- name: Run tox targets for ${{ matrix.python-version }}
49-
if: ${{ matrix.python-version == '3.6' }}
50-
run: tox --py current
51-
5241
- name: Run extra tox targets
5342
if: ${{ matrix.python-version == '3.9' }}
5443
run: |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ Some reasons you might want to use REST framework:
5353

5454
# Requirements
5555

56-
* Python 3.6+
57-
* Django 5.0, 4.2, 4.1, 4.0, 3.2, 3.1, 3.0
56+
* Python 3.8+
57+
* Django 5.0, 4.2
5858

5959
We **highly recommend** and only officially support the latest patch release of
6060
each Python and Django series.

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ continued development by **[signing up for a paid plan][funding]**.
8686

8787
REST framework requires the following:
8888

89-
* Python (3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12)
90-
* Django (3.0, 3.1, 3.2, 4.0, 4.1, 4.2, 5.0)
89+
* Django (4.2, 5.0)
90+
* Python (3.8, 3.9, 3.10, 3.11, 3.12)
9191

9292
We **highly recommend** and only officially support the latest patch release of
9393
each Python and Django series.

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import find_packages, setup
99

1010
CURRENT_PYTHON = sys.version_info[:2]
11-
REQUIRED_PYTHON = (3, 6)
11+
REQUIRED_PYTHON = (3, 8)
1212

1313
# This check and everything above must remain compatible with Python 2.7.
1414
if CURRENT_PYTHON < REQUIRED_PYTHON:
@@ -83,27 +83,20 @@ def get_version(package):
8383
author_email='[email protected]', # SEE NOTE BELOW (*)
8484
packages=find_packages(exclude=['tests*']),
8585
include_package_data=True,
86-
install_requires=["django>=3.0", 'backports.zoneinfo;python_version<"3.9"'],
87-
python_requires=">=3.6",
86+
install_requires=["django>=4.2", 'backports.zoneinfo;python_version<"3.9"'],
87+
python_requires=">=3.8",
8888
zip_safe=False,
8989
classifiers=[
9090
'Development Status :: 5 - Production/Stable',
9191
'Environment :: Web Environment',
9292
'Framework :: Django',
93-
'Framework :: Django :: 3.0',
94-
'Framework :: Django :: 3.1',
95-
'Framework :: Django :: 3.2',
96-
'Framework :: Django :: 4.0',
97-
'Framework :: Django :: 4.1',
9893
'Framework :: Django :: 4.2',
9994
'Framework :: Django :: 5.0',
10095
'Intended Audience :: Developers',
10196
'License :: OSI Approved :: BSD License',
10297
'Operating System :: OS Independent',
10398
'Programming Language :: Python',
10499
'Programming Language :: Python :: 3',
105-
'Programming Language :: Python :: 3.6',
106-
'Programming Language :: Python :: 3.7',
107100
'Programming Language :: Python :: 3.8',
108101
'Programming Language :: Python :: 3.9',
109102
'Programming Language :: Python :: 3.10',

tox.ini

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
[tox]
22
envlist =
3-
{py36,py37,py38,py39}-django30
4-
{py36,py37,py38,py39}-django31
5-
{py36,py37,py38,py39,py310}-django32
6-
{py38,py39,py310}-{django40,django41,django42,djangomain}
7-
{py311}-{django41,django42,django50,djangomain}
3+
{py38,py39,py310}-{django42,djangomain}
4+
{py311}-{django42,django50,djangomain}
85
{py312}-{django42,djanggo50,djangomain}
96
base
107
dist
@@ -17,11 +14,6 @@ setenv =
1714
PYTHONDONTWRITEBYTECODE=1
1815
PYTHONWARNINGS=once
1916
deps =
20-
django30: Django>=3.0,<3.1
21-
django31: Django>=3.1,<3.2
22-
django32: Django>=3.2,<4.0
23-
django40: Django>=4.0,<4.1
24-
django41: Django>=4.1,<4.2
2517
django42: Django>=4.2,<5.0
2618
django50: Django>=5.0,<5.1
2719
djangomain: https://github.com/django/django/archive/main.tar.gz

0 commit comments

Comments
 (0)