Skip to content

Commit

Permalink
Dropped support for Python 3.8
Browse files Browse the repository at this point in the history
Its EOL was recently passed - see https://devguide.python.org/versions/#unsupported-versions

Made the new minimum Python version 3.9.

---------

Co-authored-by: Anders <6058745+ddabble@users.noreply.github.com>
  • Loading branch information
tim-schilling and ddabble committed Nov 24, 2024
1 parent 64cdeb4 commit 0ec991f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 23 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', 'main']

exclude:
# Exclude py3.8 and py3.9 for Django main and 5.0
- python-version: '3.8'
django-version: '5.0'
# Exclude py3.9 for Django main and 5.0
- python-version: '3.9'
django-version: '5.0'
- python-version: '3.8'
django-version: 'main'
- python-version: '3.9'
django-version: 'main'

Expand Down Expand Up @@ -101,7 +97,7 @@ jobs:
- name: Set up newest stable Python version
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.13
cache: 'pip'
# Invalidate the cache when this file updates, as the dependencies' versions
# are pinned in the step below
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 2.2.3
rev: v2.5.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
Expand All @@ -59,4 +59,4 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Unreleased
- Fixed issue with deferred fields causing DoesNotExist error (gh-678)
- Added HistoricOneToOneField (gh-1394)
- Updated all djangoproject.com links to reference the stable version (gh-1420)
- Dropped support for Python 3.8, which reached end-of-life on 2024-10-07 (gh-1421)

3.7.0 (2024-05-29)
------------------
Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ This app supports the following combinations of Django and Python:
========== ========================
Django Python
========== ========================
4.2 3.8, 3.9, 3.10, 3.11, 3.12, 3.13-dev
5.0 3.10, 3.11, 3.12, 3.13-dev
main 3.10, 3.11, 3.12, 3.13-dev
4.2 3.9, 3.10, 3.11, 3.12, 3.13
5.0 3.10, 3.11, 3.12, 3.13
main 3.10, 3.11, 3.12, 3.13
========== ========================

Getting Help
Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ This app supports the following combinations of Django and Python:
========== =======================
Django Python
========== =======================
4.2 3.8, 3.9, 3.10, 3.11, 3.12, 3.13-dev
5.0 3.10, 3.11, 3.12, 3.13-dev
main 3.10, 3.11, 3.12, 3.13-dev
4.2 3.9, 3.10, 3.11, 3.12, 3.13
5.0 3.10, 3.11, 3.12, 3.13
main 3.10, 3.11, 3.12, 3.13
========== =======================

Contribute
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ maintainers = [
authors = [
{ name = "Corey Bertram", email = "corey@qr7.com" },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
Expand All @@ -26,13 +26,11 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
# DEV: uncomment this when the `pyproject-fmt` pre-commit hook stops removing it
#"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.13",
]
dynamic = [
"readme",
Expand Down Expand Up @@ -83,12 +81,12 @@ fragments = [
[tool.black]
line-length = 88
target-version = [
"py38",
"py39",
]

[tool.isort]
profile = "black"
py_version = "38"
py_version = "39"

[tool.coverage.run]
parallel = true
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
[tox]
envlist =
py{38,39,310,311,312,313}-dj42-{sqlite3,postgres,mysql,mariadb},
py{39,310,311,312,313}-dj42-{sqlite3,postgres,mysql,mariadb},
py{310,311,312,313}-dj50-{sqlite3,postgres,mysql,mariadb},
py{310,311,312,313}-djmain-{sqlite3,postgres,mysql,mariadb},
docs,
lint

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, docs, lint
Expand Down

0 comments on commit 0ec991f

Please sign in to comment.