Skip to content

Commit e44b124

Browse files
authored
Drop support for end-of-life Python 3.7 and 3.8 (#563)
1 parent dd22aa3 commit e44b124

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
strategy:
1414
matrix:
1515
python-version:
16-
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
["3.9", "3.10", "3.11", "3.12", "3.13"]
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
@@ -25,10 +25,7 @@ jobs:
2525
python -m pip install --upgrade pip
2626
python -m pip install -r requirements/tests.txt
2727
python -m pip install -r requirements.txt
28-
# TODO: Remove this conditional when Python 3.7 is dropped and Flake8 executes on
29-
# all Python versions in matrix.
30-
- if: matrix.python-version == '3.8'
31-
name: Linting
28+
- name: Linting
3229
run: flake8
3330
# Environments are selected using tox-gh-actions configuration in tox.ini.
3431
- name: Test with tox

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545
rev: "v3.20.0"
4646
hooks:
4747
- id: pyupgrade
48-
args: ["--py37-plus", "--keep-mock"]
48+
args: ["--py39-plus", "--keep-mock"]
4949
- repo: https://github.com/hhatto/autopep8
5050
rev: "v2.3.2"
5151
hooks:

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Unreleased
66

77
* Use environment variable for PostgreSQL password to prevent password leakage in logs/emails
88
* This repository has been transferred out of Jazzband due to logistical concerns.
9+
* Drop support for end-of-life Python 3.7 and 3.8.
910

1011
4.3.0 (2025-05-09)
1112
----------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
target-version = ['py37']
2+
target-version = ['py39']
33
extend-exclude = 'migrations'
44

55
[tool.isort]

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def get_test_requirements():
2828
author_email="archiethemonger@gmail.com",
2929
long_description=(root_dir / "README.rst").read_text(encoding="utf-8"),
3030
long_description_content_type="text/x-rst",
31-
python_requires=">=3.7",
31+
python_requires=">=3.9",
3232
install_requires=get_requirements(),
3333
tests_require=get_test_requirements(),
3434
include_package_data=True,
@@ -61,8 +61,6 @@ def get_test_requirements():
6161
"Natural Language :: English",
6262
"Operating System :: OS Independent",
6363
"Programming Language :: Python",
64-
"Programming Language :: Python :: 3.7",
65-
"Programming Language :: Python :: 3.8",
6664
"Programming Language :: Python :: 3.9",
6765
"Programming Language :: Python :: 3.10",
6866
"Programming Language :: Python :: 3.11",

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311,312,313}-django{32,42,50,51,52,master},lint,docs,functional
2+
envlist = py{39,310,311,312,313}-django{32,42,50,51,52,master},lint,docs,functional
33

44
[testenv]
55
passenv = *
@@ -18,8 +18,6 @@ commands = {posargs:coverage run runtests.py}
1818
# Configure which test environments are run for each Github Actions Python version.
1919
[gh-actions]
2020
python =
21-
3.7: py37-django{32},functional
22-
3.8: py38-django{32,42},functional
2321
3.9: py39-django{32,42},functional
2422
3.10: py310-django{32,42,50,51,52},functional
2523
3.11: py311-django{42,50,51,52},functional

0 commit comments

Comments
 (0)