Skip to content

Commit 3bc78d9

Browse files
committed
Drop support for Python 3.7
1 parent 08f29f9 commit 3bc78d9

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
max-parallel: 5
1616
matrix:
17-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
17+
python-version: ['3.8', '3.9', '3.10', '3.11']
1818

1919
services:
2020
mariadb:
@@ -77,7 +77,7 @@ jobs:
7777
fail-fast: false
7878
max-parallel: 5
7979
matrix:
80-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
80+
python-version: ['3.8', '3.9', '3.10', '3.11']
8181
database: [postgresql, postgis]
8282

8383
services:
@@ -146,7 +146,7 @@ jobs:
146146
fail-fast: false
147147
max-parallel: 5
148148
matrix:
149-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
149+
python-version: ['3.8', '3.9', '3.10', '3.11']
150150

151151
steps:
152152
- uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
rev: v3.3.0
2020
hooks:
2121
- id: pyupgrade
22-
args: [--py37-plus]
22+
args: [--py38-plus]
2323
- repo: https://github.com/adamchainz/django-upgrade
2424
rev: 1.12.0
2525
hooks:
@@ -58,7 +58,7 @@ repos:
5858
hooks:
5959
- id: black
6060
language_version: python3
61-
entry: black --target-version=py37
61+
entry: black --target-version=py38
6262
- repo: https://github.com/tox-dev/pyproject-fmt
6363
rev: 0.4.1
6464
hooks:

debug_toolbar/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def show_toolbar(request):
2222
return settings.DEBUG and request.META.get("REMOTE_ADDR") in settings.INTERNAL_IPS
2323

2424

25-
@lru_cache()
25+
@lru_cache
2626
def get_show_toolbar():
2727
# If SHOW_TOOLBAR_CALLBACK is a string, which is the recommended
2828
# setup, resolve it to the corresponding callable.

debug_toolbar/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646

47-
@lru_cache()
47+
@lru_cache
4848
def get_config():
4949
USER_CONFIG = getattr(settings, "DEBUG_TOOLBAR_CONFIG", {})
5050
CONFIG = CONFIG_DEFAULTS.copy()
@@ -70,7 +70,7 @@ def get_config():
7070
]
7171

7272

73-
@lru_cache()
73+
@lru_cache
7474
def get_panels():
7575
try:
7676
PANELS = list(settings.DEBUG_TOOLBAR_PANELS)

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change log
44
Pending
55
-------
66

7+
* Dropped support for Python 3.7.
8+
79
3.8.1 (2022-12-03)
810
------------------
911

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = {text = "BSD-3-Clause"}
1212
authors = [
1313
{ name = "Rob Hudson" },
1414
]
15-
requires-python = ">=3.7"
15+
requires-python = ">=3.8"
1616
dependencies = [
1717
"Django>=3.2.4",
1818
"sqlparse>=0.2",
@@ -33,7 +33,6 @@ classifiers = [
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
3535
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python :: 3.7",
3736
"Programming Language :: Python :: 3.8",
3837
"Programming Language :: Python :: 3.9",
3938
"Programming Language :: Python :: 3.10",

tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ isolated_build = true
33
envlist =
44
docs
55
packaging
6-
py{37}-dj{32}-{sqlite,postgresql,postgis,mysql}
76
py{38,39,310}-dj{32,40,41,main}-{sqlite,postgresql,postgis,mysql}
87
py{311}-dj{41,main}-{sqlite,postgresql,postgis,mysql}
98

@@ -46,25 +45,25 @@ allowlist_externals = make
4645
pip_pre = True
4746
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}
4847

49-
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgresql]
48+
[testenv:py{38,39,310,311}-dj{32,40,41,main}-postgresql]
5049
setenv =
5150
{[testenv]setenv}
5251
DB_BACKEND = postgresql
5352
DB_PORT = {env:DB_PORT:5432}
5453

55-
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-postgis]
54+
[testenv:py{38,39,310,311}-dj{32,40,41,main}-postgis]
5655
setenv =
5756
{[testenv]setenv}
5857
DB_BACKEND = postgis
5958
DB_PORT = {env:DB_PORT:5432}
6059

61-
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-mysql]
60+
[testenv:py{38,39,310,311}-dj{32,40,41,main}-mysql]
6261
setenv =
6362
{[testenv]setenv}
6463
DB_BACKEND = mysql
6564
DB_PORT = {env:DB_PORT:3306}
6665

67-
[testenv:py{37,38,39,310,311}-dj{32,40,41,main}-sqlite]
66+
[testenv:py{38,39,310,311}-dj{32,40,41,main}-sqlite]
6867
setenv =
6968
{[testenv]setenv}
7069
DB_BACKEND = sqlite3
@@ -87,7 +86,6 @@ skip_install = true
8786

8887
[gh-actions]
8988
python =
90-
3.7: py37
9189
3.8: py38
9290
3.9: py39
9391
3.10: py310

0 commit comments

Comments
 (0)