Skip to content

Commit 5f2940f

Browse files
authored
Drop support for old Django versions (#912)
1 parent 78e7666 commit 5f2940f

31 files changed

+168
-1969
lines changed

CONTRIBUTING.rst

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,12 @@ Ready to contribute? Here's how to set up Django-MySQL for local development.
101101
If you want to use a different user or add a password, you can patch the
102102
settings file in your local install.
103103

104-
5. Install ``tox`` and run the tests for Python 3.8 + Django 3.0:
104+
5. Install ``tox`` and run the tests for Python 3.10 + Django 4.0:
105105

106106
.. code-block:: sh
107107
108108
$ python -m pip install tox
109-
$ tox -e py38-django30
110-
111-
The ``tox.ini`` file defines a large number of test environments, for
112-
different Python and Django versions, plus for checking codestyle. During
113-
development of a feature/fix, you'll probably want to run just one plus the
114-
relevant codestyle:
115-
116-
.. code-block:: sh
117-
118-
$ tox -e py38-codestyle,py38-django30
119-
120-
You can run all the environments to check your code is okay for them with:
121-
122-
.. code-block:: sh
123-
124-
$ tox
109+
$ tox -e py310-django40
125110
126111
6. To make changes, create a branch for local development:
127112

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
History
33
=======
44

5+
* Drop support for Django 2.2, 3.0, and 3.1.
6+
57
* Support MariaDB 10.7.
68

79
4.5.0 (2022-01-23)

requirements/compile.py

Lines changed: 0 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -19,48 +19,6 @@
1919
] + sys.argv[1:]
2020
# mysqlclient requirements found on each version's "Databases" documentation page:
2121
# https://docs.djangoproject.com/en/3.0/ref/databases/#mysql-db-api-drivers
22-
subprocess.run(
23-
[
24-
"python3.7",
25-
*common_args,
26-
"-P",
27-
"Django>=2.2,<2.3",
28-
"-P",
29-
"mysqlclient>=1.3.13",
30-
"-o",
31-
"py37-django22.txt",
32-
],
33-
check=True,
34-
capture_output=True,
35-
)
36-
subprocess.run(
37-
[
38-
"python3.7",
39-
*common_args,
40-
"-P",
41-
"Django>=3.0a1,<3.1",
42-
"-P",
43-
"mysqlclient>=1.3.13",
44-
"-o",
45-
"py37-django30.txt",
46-
],
47-
check=True,
48-
capture_output=True,
49-
)
50-
subprocess.run(
51-
[
52-
"python3.7",
53-
*common_args,
54-
"-P",
55-
"Django>=3.1a1,<3.2",
56-
"-P",
57-
"mysqlclient>=1.4.0",
58-
"-o",
59-
"py37-django31.txt",
60-
],
61-
check=True,
62-
capture_output=True,
63-
)
6422
subprocess.run(
6523
[
6624
"python3.7",
@@ -75,48 +33,6 @@
7533
check=True,
7634
capture_output=True,
7735
)
78-
subprocess.run(
79-
[
80-
"python3.8",
81-
*common_args,
82-
"-P",
83-
"Django>=2.2,<2.3",
84-
"-P",
85-
"mysqlclient>=1.3.13",
86-
"-o",
87-
"py38-django22.txt",
88-
],
89-
check=True,
90-
capture_output=True,
91-
)
92-
subprocess.run(
93-
[
94-
"python3.8",
95-
*common_args,
96-
"-P",
97-
"Django>=3.0a1,<3.1",
98-
"-P",
99-
"mysqlclient>=1.3.13",
100-
"-o",
101-
"py38-django30.txt",
102-
],
103-
check=True,
104-
capture_output=True,
105-
)
106-
subprocess.run(
107-
[
108-
"python3.8",
109-
*common_args,
110-
"-P",
111-
"Django>=3.1a1,<3.2",
112-
"-P",
113-
"mysqlclient>=1.4.0",
114-
"-o",
115-
"py38-django31.txt",
116-
],
117-
check=True,
118-
capture_output=True,
119-
)
12036
subprocess.run(
12137
[
12238
"python3.8",
@@ -145,48 +61,6 @@
14561
check=True,
14662
capture_output=True,
14763
)
148-
subprocess.run(
149-
[
150-
"python3.9",
151-
*common_args,
152-
"-P",
153-
"Django>=2.2,<2.3",
154-
"-P",
155-
"mysqlclient>=1.3.13",
156-
"-o",
157-
"py39-django22.txt",
158-
],
159-
check=True,
160-
capture_output=True,
161-
)
162-
subprocess.run(
163-
[
164-
"python3.9",
165-
*common_args,
166-
"-P",
167-
"Django>=3.0a1,<3.1",
168-
"-P",
169-
"mysqlclient>=1.3.13",
170-
"-o",
171-
"py39-django30.txt",
172-
],
173-
check=True,
174-
capture_output=True,
175-
)
176-
subprocess.run(
177-
[
178-
"python3.9",
179-
*common_args,
180-
"-P",
181-
"Django>=3.1a1,<3.2",
182-
"-P",
183-
"mysqlclient>=1.4.0",
184-
"-o",
185-
"py39-django31.txt",
186-
],
187-
check=True,
188-
capture_output=True,
189-
)
19064
subprocess.run(
19165
[
19266
"python3.9",

requirements/py37-django22.txt

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)