Skip to content

Drop support for end-of-life Python 3.7 and 3.8 #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
python-version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,10 +25,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements/tests.txt
python -m pip install -r requirements.txt
# TODO: Remove this conditional when Python 3.7 is dropped and Flake8 executes on
# all Python versions in matrix.
- if: matrix.python-version == '3.8'
name: Linting
- name: Linting
run: flake8
# Environments are selected using tox-gh-actions configuration in tox.ini.
- name: Test with tox
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ repos:
rev: "v3.20.0"
hooks:
- id: pyupgrade
args: ["--py37-plus", "--keep-mock"]
args: ["--py39-plus", "--keep-mock"]
- repo: https://github.com/hhatto/autopep8
rev: "v2.3.2"
hooks:
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Unreleased

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

4.3.0 (2025-05-09)
----------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.black]
target-version = ['py37']
target-version = ['py39']
extend-exclude = 'migrations'

[tool.isort]
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_test_requirements():
author_email="[email protected]",
long_description=(root_dir / "README.rst").read_text(encoding="utf-8"),
long_description_content_type="text/x-rst",
python_requires=">=3.7",
python_requires=">=3.9",
install_requires=get_requirements(),
tests_require=get_test_requirements(),
include_package_data=True,
Expand Down Expand Up @@ -61,8 +61,6 @@ def get_test_requirements():
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310,311,312,313}-django{32,42,50,51,52,master},lint,docs,functional
envlist = py{39,310,311,312,313}-django{32,42,50,51,52,master},lint,docs,functional

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