Skip to content

Commit 2832bda

Browse files
Drop Python 3.8 support (#821)
* Drop Python 3.8 support * Fix ruff warning * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 00ece40 commit 2832bda

File tree

7 files changed

+14
-19
lines changed

7 files changed

+14
-19
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: 3.8
21+
python-version: 3.9
2222

2323
- name: Install dependencies
2424
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,9 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.10']
12+
python-version: ['3.9', '3.10', '3.11', '3.12', 'pypy-3.10']
1313
django-version: ['3.2', '4.1', '4.2', '5.0', 'main']
1414
exclude:
15-
- python-version: '3.8'
16-
django-version: '4.1'
17-
- python-version: '3.8'
18-
django-version: '4.2'
19-
- python-version: '3.8'
20-
django-version: '5.0'
21-
- python-version: '3.8'
22-
django-version: 'main'
2315
- python-version: '3.9'
2416
django-version: '5.0'
2517
- python-version: '3.9'
@@ -91,4 +83,4 @@ jobs:
9183
steps:
9284
- uses: actions/checkout@v3
9385
- run: pip install --user ruff
94-
- run: ruff check . --extend-select=C4,C9,I,PLC,PLE,PLR,U --ignore=C414,I001,PLR0913,UP007,UP032 --target-version=py38
86+
- run: ruff check . --extend-select=C4,C9,I,PLC,PLE,PLR,U --ignore=C414,I001,PLR0913,UP007,UP032 --target-version=py39

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
33
History
44
=======
5+
6+
Unreleased
7+
==========
8+
* Drop support for Python 3.8
9+
510
3.1.0
611
=====
712

pipeline/compressors/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
import re
77
import subprocess
88
import warnings
9+
from collections.abc import Iterator, Sequence
910
from itertools import takewhile
10-
from typing import Iterator, Optional, Sequence
11+
from typing import Optional
1112

1213
from django.contrib.staticfiles.storage import staticfiles_storage
1314
from django.utils.encoding import force_str, smart_bytes

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 88
3-
target-version = ["py38"]
3+
target-version = ["py39"]
44

55
[tool.isort]
6-
profile = "black"
6+
profile = "black"

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"Programming Language :: Python",
3434
"Programming Language :: Python :: 3",
3535
"Programming Language :: Python :: 3 :: Only",
36-
"Programming Language :: Python :: 3.8",
3736
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
envlist =
33
pypy3-dj{32,41,42}
4-
py{38,39,310,311}-dj32
4+
py{39,310,311}-dj32
55
py{39,310,311}-dj41
66
py{39,310,311,312}-dj42
77
py{310,311,312}-dj50
@@ -10,8 +10,7 @@ envlist =
1010

1111
[gh-actions]
1212
python =
13-
3.8: py38, docs
14-
3.9: py39
13+
3.9: py39, docs
1514
3.10: py310
1615
3.11: py311
1716
3.12: py312
@@ -28,7 +27,6 @@ DJANGO =
2827
[testenv]
2928
basepython =
3029
pypy3: pypy3
31-
py38: python3.8
3230
py39: python3.9
3331
py310: python3.10
3432
py311: python3.11

0 commit comments

Comments
 (0)