Skip to content

Commit b0cc36c

Browse files
authored
Drop Python 3.7 support (#877)
1 parent d6048cb commit b0cc36c

File tree

9 files changed

+7
-156
lines changed

9 files changed

+7
-156
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
strategy:
1919
matrix:
2020
python-version:
21-
- 3.7
2221
- 3.8
2322
- 3.9
2423
- '3.10'

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
rev: v3.7.0
4040
hooks:
4141
- id: pyupgrade
42-
args: [--py37-plus]
42+
args: [--py38-plus]
4343
- repo: https://github.com/adamchainz/django-upgrade
4444
rev: 1.14.0
4545
hooks:
@@ -60,7 +60,7 @@ repos:
6060
hooks:
6161
- id: reorder-python-imports
6262
args:
63-
- --py37-plus
63+
- --py38-plus
6464
- --application-directories
6565
- .:example:src
6666
- --add-import

CHANGELOG.rst

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

5+
* Drop Python 3.7 support.
6+
57
4.1.0 (2023-06-14)
68
------------------
79

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Some good resources to read on the subject are:
4141
Requirements
4242
------------
4343

44-
Python 3.7 to 3.12 supported.
44+
Python 3.8 to 3.12 supported.
4545

4646
Django 3.2 to 4.2 supported.
4747

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = [
55
]
66

77
[tool.black]
8-
target-version = ['py37']
8+
target-version = ['py38']
99

1010
[tool.pytest.ini_options]
1111
addopts = """\

requirements/compile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@
1717
"--generate-hashes",
1818
"--allow-unsafe",
1919
] + sys.argv[1:]
20-
subprocess.run(
21-
[
22-
"python3.7",
23-
*common_args,
24-
"-P",
25-
"Django>=3.2a1,<3.3",
26-
"-o",
27-
"py37-django32.txt",
28-
],
29-
check=True,
30-
capture_output=True,
31-
)
3220
subprocess.run(
3321
[
3422
"python3.8",

requirements/py37-django32.txt

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

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ classifiers =
2525
Operating System :: OS Independent
2626
Programming Language :: Python :: 3
2727
Programming Language :: Python :: 3 :: Only
28-
Programming Language :: Python :: 3.7
2928
Programming Language :: Python :: 3.8
3029
Programming Language :: Python :: 3.9
3130
Programming Language :: Python :: 3.10
@@ -48,7 +47,7 @@ project_urls =
4847
packages = find:
4948
install_requires =
5049
Django>=3.2
51-
python_requires = >=3.7
50+
python_requires = >=3.8
5251
include_package_data = True
5352
package_dir =
5453
=src

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ env_list =
77
py310-django{42, 41, 40, 32}
88
py39-django{42, 41, 40, 32}
99
py38-django{42, 41, 40, 32}
10-
py37-django{32}
1110

1211
[testenv]
1312
package = wheel

0 commit comments

Comments
 (0)