Skip to content

Commit

Permalink
Drop Python 3.8 support (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Oct 27, 2024
1 parent fb6f80e commit a2fbd54
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 52 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.

2.11.0 (2023-07-10)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Installation

Install with ``python -m pip install pip-lock``.

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

Example usage
=============
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ authors = [
{ name = "Adam Johnson" },
{ name = "et al." },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"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",
Expand All @@ -35,9 +34,7 @@ classifiers = [
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"importlib-metadata; python_version<'3.8'",
]
dependencies = [ ]
urls = { Changelog = "https://github.com/adamchainz/pip-lock/blob/main/CHANGELOG.rst", Funding = "https://adamj.eu/books/", Repository = "https://github.com/adamchainz/pip-lock" }

[tool.isort]
Expand Down
2 changes: 1 addition & 1 deletion src/pip_lock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import os
import re
import sys
from collections.abc import Iterable
from importlib.metadata import distributions as get_distributions
from typing import Iterable


def read_pip(filename: str) -> list[str]:
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
40 changes: 0 additions & 40 deletions tests/requirements/py38.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_pip_lock.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from collections.abc import Generator
from contextlib import contextmanager
from email.message import EmailMessage
from types import SimpleNamespace
from typing import Generator
from unittest import mock

import pytest
Expand Down
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 a2fbd54

Please sign in to comment.