Skip to content

Commit

Permalink
Drop Python 3.8 support (#821)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
peymanslh and pre-commit-ci[bot] authored Oct 25, 2024
1 parent 00ece40 commit 2832bda
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: |
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.10']
python-version: ['3.9', '3.10', '3.11', '3.12', 'pypy-3.10']
django-version: ['3.2', '4.1', '4.2', '5.0', 'main']
exclude:
- python-version: '3.8'
django-version: '4.1'
- python-version: '3.8'
django-version: '4.2'
- python-version: '3.8'
django-version: '5.0'
- python-version: '3.8'
django-version: 'main'
- python-version: '3.9'
django-version: '5.0'
- python-version: '3.9'
Expand Down Expand Up @@ -91,4 +83,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff check . --extend-select=C4,C9,I,PLC,PLE,PLR,U --ignore=C414,I001,PLR0913,UP007,UP032 --target-version=py38
- run: ruff check . --extend-select=C4,C9,I,PLC,PLE,PLR,U --ignore=C414,I001,PLR0913,UP007,UP032 --target-version=py39
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

Unreleased
==========
* Drop support for Python 3.8

3.1.0
=====

Expand Down
3 changes: 2 additions & 1 deletion pipeline/compressors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
import re
import subprocess
import warnings
from collections.abc import Iterator, Sequence
from itertools import takewhile
from typing import Iterator, Optional, Sequence
from typing import Optional

from django.contrib.staticfiles.storage import staticfiles_storage
from django.utils.encoding import force_str, smart_bytes
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 88
target-version = ["py38"]
target-version = ["py39"]

[tool.isort]
profile = "black"
profile = "black"
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
Expand Down
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
pypy3-dj{32,41,42}
py{38,39,310,311}-dj32
py{39,310,311}-dj32
py{39,310,311}-dj41
py{39,310,311,312}-dj42
py{310,311,312}-dj50
Expand All @@ -10,8 +10,7 @@ envlist =

[gh-actions]
python =
3.8: py38, docs
3.9: py39
3.9: py39, docs
3.10: py310
3.11: py311
3.12: py312
Expand All @@ -28,7 +27,6 @@ DJANGO =
[testenv]
basepython =
pypy3: pypy3
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
Expand Down

0 comments on commit 2832bda

Please sign in to comment.