Skip to content

Commit 9394d48

Browse files
authored
Merge pull request #520 from mayeut/drop-python-3.8
chore: drop python 3.8
2 parents dd3df25 + 6b49974 commit 9394d48

File tree

14 files changed

+60
-50
lines changed

14 files changed

+60
-50
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-python@v5
2020
with:
21-
python-version: "3.8"
21+
python-version: "3.9"
2222
- uses: pre-commit/[email protected]
2323

2424
test-dist:
@@ -44,7 +44,6 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- python: "3.8"
4847
- python: "3.9"
4948
- python: "3.10"
5049
- python: "3.11"

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33

44
default_language_version:
5-
python: python3.8
5+
python: python3.9
66

77
exclude: ^src/auditwheel/_vendor/
88

99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-builtin-literals
1414
- id: check-added-large-files
@@ -23,13 +23,13 @@ repos:
2323
- id: trailing-whitespace
2424

2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.16.0
26+
rev: v3.19.0
2727
hooks:
2828
- id: pyupgrade
29-
args: ["--py38-plus"]
29+
args: ["--py39-plus"]
3030

3131
- repo: https://github.com/psf/black
32-
rev: 24.8.0
32+
rev: 24.10.0
3333
hooks:
3434
- id: black
3535

@@ -46,7 +46,7 @@ repos:
4646
- id: flake8
4747

4848
- repo: https://github.com/pre-commit/mirrors-mypy
49-
rev: v1.11.1
49+
rev: v1.13.0
5050
hooks:
5151
- id: mypy
5252
exclude: ^tests/integration/.*/.*$

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
os: linux
2-
dist: focal
2+
dist: jammy
33
language: python
4-
python: "3.9"
5-
arch: arm64-graviton2
4+
python: "3.12"
65

76
branches:
87
except:
98
- /^dependabot.*$/
109

1110
jobs:
1211
include:
13-
- arch: arm64-graviton2
14-
virt: vm
15-
group: edge
12+
- arch: arm64
1613
- arch: ppc64le
1714
- arch: s390x
1815
allow_failures:
@@ -41,7 +38,7 @@ install:
4138
- pip install nox
4239

4340
script:
44-
- nox -s tests-3.9
41+
- nox -s tests-3.12
4542

4643
after_success:
4744
- if [ "$(uname -m)" != "aarch64" ]; then qemu-x86_64-static ${HOME}/codecov; fi

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ advised that bundling, like static linking, may implicate copyright concerns.
4040
Requirements
4141
------------
4242
- OS: Linux
43-
- Python: 3.8+
43+
- Python: 3.9+
4444
- `patchelf <https://github.com/NixOS/patchelf>`_: 0.14+
4545

4646
Only systems that use `ELF
@@ -135,7 +135,7 @@ daemon. These tests will pull a number of docker images if they are not already
135135
available on your system, but it won't update existing images.
136136
To update these images manually, run::
137137

138-
docker pull python:3.8-slim
138+
docker pull python:3.9-slim-bookworm
139139
docker pull quay.io/pypa/manylinux1_x86_64
140140
docker pull quay.io/pypa/manylinux2010_x86_64
141141
docker pull quay.io/pypa/manylinux2014_x86_64

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
nox.options.sessions = ["lint", "test-dist"]
1010

11-
PYTHON_ALL_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
11+
PYTHON_ALL_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
1212
RUNNING_CI = "TRAVIS" in os.environ or "GITHUB_ACTIONS" in os.environ
1313

1414

15-
@nox.session(python=["3.8"], reuse_venv=True)
15+
@nox.session(python=["3.9"], reuse_venv=True)
1616
def lint(session: nox.Session) -> None:
1717
"""
1818
Run linters on the codebase.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[build-system]
2-
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
2+
requires = ["setuptools>=61", "setuptools_scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
66
# enable version inference
77

88
[tool.black]
9-
target-version = ["py38", "py39", "py310", "py311", "py312", "py313"]
9+
target-version = ["py39", "py310", "py311", "py312", "py313"]
1010
extend-exclude = "src/auditwheel/_vendor"
1111

1212
[tool.isort]
13-
py_version = 38
13+
py_version = 39
1414
profile = "black"
1515
extend_skip_glob = "src/auditwheel/_vendor/**/*.py"
1616

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifier =
1414
License :: OSI Approved :: MIT License
1515
Operating System :: POSIX :: Linux
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.8
1817
Programming Language :: Python :: 3.9
1918
Programming Language :: Python :: 3.10
2019
Programming Language :: Python :: 3.11
@@ -33,7 +32,7 @@ install_requires =
3332
packages = find:
3433
package_dir =
3534
=src
36-
python_requires = >=3.8
35+
python_requires = >=3.9
3736
zip_safe = False
3837

3938
[options.package_data]

src/auditwheel/elfutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterator
34
from os.path import basename
45
from pathlib import Path
5-
from typing import Iterator
66

77
from elftools.common.exceptions import ELFError
88
from elftools.elf.elffile import ELFFile

src/auditwheel/policy/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
import struct
88
import sys
99
from collections import defaultdict
10+
from collections.abc import Generator
1011
from os.path import abspath, dirname, join
1112
from pathlib import Path
12-
from typing import Any, Generator
13+
from typing import Any
1314

1415
from auditwheel.elfutils import filter_undefined_symbols, is_subdir
1516

@@ -156,9 +157,7 @@ def policy_is_satisfied(
156157
def lddtree_external_references(self, lddtree: dict, wheel_path: str) -> dict:
157158
# XXX: Document the lddtree structure, or put it in something
158159
# more stable than a big nested dict
159-
def filter_libs(
160-
libs: set[str], whitelist: set[str]
161-
) -> Generator[str, None, None]:
160+
def filter_libs(libs: set[str], whitelist: set[str]) -> Generator[str]:
162161
for lib in libs:
163162
if "ld-linux" in lib or lib in ["ld64.so.2", "ld64.so.1"]:
164163
# always exclude ELF dynamic linker/loader

src/auditwheel/repair.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import re
88
import shutil
99
import stat
10+
from collections.abc import Iterable
1011
from os.path import abspath, basename, dirname, exists, isabs
1112
from os.path import join as pjoin
1213
from pathlib import Path
1314
from subprocess import check_call
14-
from typing import Iterable
1515

1616
from auditwheel.patcher import ElfPatcher
1717

0 commit comments

Comments
 (0)