Skip to content

Commit ed90e5f

Browse files
authored
chore: drop python 3.7 (#457)
1 parent 3636dad commit ed90e5f

File tree

10 files changed

+13
-21
lines changed

10 files changed

+13
-21
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
include:
45-
- python: "3.7"
4645
- python: "3.8"
4746
- python: "3.9"
4847
- python: "3.10"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
rev: v3.13.0
2727
hooks:
2828
- id: pyupgrade
29-
args: ["--py37-plus"]
29+
args: ["--py38-plus"]
3030

3131
- repo: https://github.com/psf/black
3232
rev: 23.9.1

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.7+
43+
- Python: 3.8+
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.7-slim
138+
docker pull python:3.8-slim
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

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

1414

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ build-backend = "setuptools.build_meta"
66
# enable version inference
77

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

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

setup.cfg

Lines changed: 1 addition & 3 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.7
1817
Programming Language :: Python :: 3.8
1918
Programming Language :: Python :: 3.9
2019
Programming Language :: Python :: 3.10
@@ -30,11 +29,10 @@ include_package_data = True
3029
install_requires =
3130
packaging>=20.9
3231
pyelftools>=0.24
33-
importlib_metadata; python_version < "3.8"
3432
packages = find:
3533
package_dir =
3634
=src
37-
python_requires = >=3.7
35+
python_requires = >=3.8
3836
zip_safe = False
3937

4038
[options.package_data]

src/auditwheel/lddtree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def parse_ld_paths(str_ldpaths: str, path: str, root: str = "") -> list[str]:
114114
return [p for p in dedupe(ldpaths) if os.path.isdir(p)]
115115

116116

117-
@functools.lru_cache()
117+
@functools.lru_cache
118118
def parse_ld_so_conf(ldso_conf: str, root: str = "/", _first: bool = True) -> list[str]:
119119
"""Load all the paths from a given ldso config file
120120
@@ -166,7 +166,7 @@ def parse_ld_so_conf(ldso_conf: str, root: str = "/", _first: bool = True) -> li
166166
return paths
167167

168168

169-
@functools.lru_cache()
169+
@functools.lru_cache
170170
def load_ld_paths(root: str = "/", prefix: str = "") -> dict[str, list[str]]:
171171
"""Load linker paths from common locations
172172

src/auditwheel/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
import os
66
import pathlib
77
import sys
8-
9-
if sys.version_info[:2] >= (3, 8):
10-
from importlib import metadata
11-
else:
12-
import importlib_metadata as metadata
8+
from importlib import metadata
139

1410
import auditwheel
1511

src/auditwheel/wheel_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class NonPlatformWheel(WheelAbiError):
5858
)
5959

6060

61-
@functools.lru_cache()
61+
@functools.lru_cache
6262
def get_wheel_elfdata(wheel_fn: str):
6363
full_elftree = {}
6464
nonpy_elftree = {}

tests/integration/test_manylinux.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
PATH = {k: ":".join(PATH_DIRS).format(devtoolset=v) for k, v in DEVTOOLSET.items()}
8181
WHEEL_CACHE_FOLDER = op.expanduser("~/.cache/auditwheel_tests")
8282
NUMPY_VERSION_MAP = {
83-
"37": "1.21.4",
8483
"38": "1.21.4",
8584
"39": "1.21.4",
8685
"310": "1.21.4",
@@ -801,8 +800,8 @@ def any_manylinux_img(self, request):
801800
"""
802801
policy = request.param
803802
support_check_map = {
804-
"manylinux_2_5": {"37", "38", "39"},
805-
"manylinux_2_12": {"37", "38", "39", "310"},
803+
"manylinux_2_5": {"38", "39"},
804+
"manylinux_2_12": {"38", "39", "310"},
806805
}
807806
check_set = support_check_map.get(policy, None)
808807
if check_set and PYTHON_ABI_MAJ_MIN not in check_set:

0 commit comments

Comments
 (0)