Skip to content

Commit

Permalink
Drop Python 3.8 support (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Oct 27, 2024
1 parent cfba30c commit bd8b055
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 69 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
strategy:
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- '3.11'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Changelog
=========

* Drop Python 3.8 support.

* Support Python 3.13.

3.15.0 (2024-06-29)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Check out my book `Boost Your Django DX <https://adamchainz.gumroad.com/l/byddx>
Requirements
============

Python 3.8 to 3.13 supported.
Python 3.9 to 3.13 supported.

Installation
============
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ keywords = [
authors = [
{ name = "Adam Johnson", email = "me@adamj.eu" },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"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
2 changes: 1 addition & 1 deletion src/flake8_comprehensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

import ast
from collections.abc import Generator
from importlib.metadata import version
from typing import Any
from typing import Generator


class ComprehensionChecker:
Expand Down
1 change: 0 additions & 1 deletion tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*sys.argv[1:],
]
run = partial(subprocess.run, check=True)
run([*common_args, "--python", "3.8", "--output-file", "py38.txt"])
run([*common_args, "--python", "3.9", "--output-file", "py39.txt"])
run([*common_args, "--python", "3.10", "--output-file", "py310.txt"])
run([*common_args, "--python", "3.11", "--output-file", "py311.txt"])
Expand Down
61 changes: 0 additions & 61 deletions tests/requirements/py38.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires =
tox>=4.2
env_list =
py{313, 312, 311, 310, 39, 38}
py{313, 312, 311, 310, 39}

[testenv]
package = wheel
Expand Down

0 comments on commit bd8b055

Please sign in to comment.