Skip to content

Commit 4707fb1

Browse files
committed
Drop CPython 3.7 & PyPy 3.7
1 parent f8d12e3 commit 4707fb1

File tree

8 files changed

+17
-7801
lines changed

8 files changed

+17
-7801
lines changed

README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ Image content
230230

231231
All supported images currently contain:
232232

233-
- CPython 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.13t and PyPy 3.7, 3.8, 3.9, 3.10 installed in
233+
- CPython 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.13t and PyPy 3.8, 3.9, 3.10 installed in
234234
``/opt/python/<python tag>-<abi tag>``. The directories are named
235235
after the PEP 425 tags for each environment --
236-
e.g. ``/opt/python/cp37-cp37m`` contains a CPython 3.7 build, and
236+
e.g. ``/opt/python/cp313-cp313`` contains a CPython 3.13 build, and
237237
can be used to produce wheels named like
238-
``<pkg>-<version>-cp37-cp37m-<arch>.whl``.
238+
``<pkg>-<version>-cp313-cp313-<arch>.whl``.
239239

240240
- Development packages for all the libraries that PEP 571/599 list. One should not assume the presence of any other development package.
241241

docker/Dockerfile

+3-11
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,17 @@ RUN export MPDECIMAL_ROOT=mpdecimal-4.0.0 && \
107107
manylinux-entrypoint /build_scripts/build-mpdecimal.sh
108108

109109

110-
FROM build_base AS build_cpython_system_ssl
110+
FROM build_base AS build_cpython
111111
COPY --from=build_tcl_tk /manylinux-buildfs /
112112
COPY --from=build_mpdecimal /manylinux-buildfs /
113113
COPY --from=build_sqlite3 /manylinux-buildfs /
114-
COPY build_scripts/build-cpython.sh /build_scripts/
115114
RUN if command -v apk >/dev/null 2>&1; then ldconfig /; else ldconfig; fi
116-
117-
FROM build_cpython_system_ssl AS build_cpython
118115
COPY build_scripts/build-openssl.sh /build_scripts/
119116
RUN export OPENSSL_ROOT=openssl-3.0.15 && \
120117
export OPENSSL_HASH=23c666d0edf20f14249b3d8f0368acaee9ab585b09e1de82107c66e1f3ec9533 && \
121118
export OPENSSL_DOWNLOAD_URL=https://github.com/openssl/openssl/releases/download/${OPENSSL_ROOT} && \
122119
manylinux-entrypoint /build_scripts/build-openssl.sh
123-
124-
125-
FROM build_cpython_system_ssl AS build_cpython37
126-
COPY build_scripts/cpython-pubkeys.txt /build_scripts/cpython-pubkeys.txt
127-
RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.7.17
120+
COPY build_scripts/build-cpython.sh /build_scripts/
128121

129122
FROM build_cpython AS build_cpython38
130123
COPY build_scripts/ambv-pubkey.txt /build_scripts/cpython-pubkeys.txt
@@ -161,8 +154,7 @@ COPY --from=build_mpdecimal /manylinux-rootfs /
161154
COPY --from=build_sqlite3 /manylinux-rootfs /
162155
COPY --from=build_git /manylinux-rootfs /
163156
COPY build_scripts /opt/_internal/build_scripts/
164-
RUN --mount=type=bind,target=/build_cpython37,from=build_cpython37 \
165-
--mount=type=bind,target=/build_cpython38,from=build_cpython38 \
157+
RUN --mount=type=bind,target=/build_cpython38,from=build_cpython38 \
166158
--mount=type=bind,target=/build_cpython39,from=build_cpython39 \
167159
--mount=type=bind,target=/build_cpython310,from=build_cpython310 \
168160
--mount=type=bind,target=/build_cpython311,from=build_cpython311 \

docker/build_scripts/cpython-pubkeys.txt

-7,715
This file was deleted.

docker/build_scripts/python_versions.json

-17
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@
1111
"sha256": "cb97bbef83372f00c7ea5f351bcb3c1ad36255ebd7d3cff9267d604ad183c28a"
1212
}
1313
},
14-
"pp37-pypy37_pp73": {
15-
"x86_64": {
16-
"version": "7.3.9",
17-
"download_url": "https://downloads.python.org/pypy/pypy3.7-v7.3.9-linux64.tar.bz2",
18-
"sha256": "c58195124d807ecc527499ee19bc511ed753f4f2e418203ca51bc7e3b124d5d1"
19-
},
20-
"aarch64": {
21-
"version": "7.3.9",
22-
"download_url": "https://downloads.python.org/pypy/pypy3.7-v7.3.9-aarch64.tar.bz2",
23-
"sha256": "dfc62f2c453fb851d10a1879c6e75c31ffebbf2a44d181bb06fcac4750d023fc"
24-
},
25-
"i686": {
26-
"version": "7.3.9",
27-
"download_url": "https://downloads.python.org/pypy/pypy3.7-v7.3.9-linux32.tar.bz2",
28-
"sha256": "3398cece0167b81baa219c9cd54a549443d8c0a6b553ec8ec13236281e0d86cd"
29-
}
30-
},
3114
"pp38-pypy38_pp73": {
3215
"x86_64": {
3316
"version": "7.3.11",

docker/build_scripts/requirements3.7.txt

-44
This file was deleted.

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def update_python_dependencies(session):
1818
# regenerate the constraints files
1919
env["UV_CUSTOM_COMPILE_COMMAND"] = f"nox -s {session.name}"
2020

21-
for python_minor in range(7, 14):
21+
for python_minor in range(8, 14):
2222
python_version = f"3.{python_minor}"
2323
session.run(
2424
"uv", "pip", "compile",

tests/forty-two/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
setup(
44
name="forty_two",
55
version="0.1.0",
6-
python_requires=">=3.7",
6+
python_requires=">=3.8",
77
ext_modules=[Extension("forty_two", sources=["forty-two.c"])],
88
)

tests/run_tests.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ set -exuo pipefail
77
MY_DIR=$(dirname "${BASH_SOURCE[0]}")
88

99
if [ "${AUDITWHEEL_POLICY:0:10}" == "musllinux_" ]; then
10-
EXPECTED_PYTHON_COUNT=8
11-
EXPECTED_PYTHON_COUNT_ALL=8
10+
EXPECTED_PYTHON_COUNT=7
11+
EXPECTED_PYTHON_COUNT_ALL=7
1212
else
1313
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ] || [ "${AUDITWHEEL_ARCH}" == "aarch64" ]; then
14-
EXPECTED_PYTHON_COUNT=9
15-
EXPECTED_PYTHON_COUNT_ALL=13
14+
EXPECTED_PYTHON_COUNT=8
15+
EXPECTED_PYTHON_COUNT_ALL=11
1616
elif [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
17-
EXPECTED_PYTHON_COUNT=9
18-
EXPECTED_PYTHON_COUNT_ALL=12
19-
else
2017
EXPECTED_PYTHON_COUNT=8
21-
EXPECTED_PYTHON_COUNT_ALL=8
18+
EXPECTED_PYTHON_COUNT_ALL=10
19+
else
20+
EXPECTED_PYTHON_COUNT=7
21+
EXPECTED_PYTHON_COUNT_ALL=7
2222
fi
2323
fi
2424

@@ -97,7 +97,7 @@ for PYTHON in /opt/python/*/bin/python; do
9797
echo "invalid answer, expecting 42"
9898
exit 1
9999
fi
100-
if [ "${PYVERS}" != "3.7" ] && [ "${IMPLEMENTATION}" != "graalpy" ] && [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "riscv64" ]; then
100+
if [ "${IMPLEMENTATION}" != "graalpy" ] && [ "${AUDITWHEEL_POLICY:0:9}_${AUDITWHEEL_ARCH}" != "musllinux_s390x" ] && [ "${AUDITWHEEL_ARCH}" != "riscv64" ]; then
101101
# no uv on musllinux s390x
102102
UV_PYTHON=/tmp/uv-test-${IMPLEMENTATION}${PYVERS}/bin/python
103103
uv venv --python ${PYTHON} /tmp/uv-test-${IMPLEMENTATION}${PYVERS}

0 commit comments

Comments
 (0)