Skip to content

Commit cd16df2

Browse files
committed
break: drop Python 3.8
1 parent b476e32 commit cd16df2

File tree

9 files changed

+15
-110
lines changed

9 files changed

+15
-110
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Image content
323323

324324
All supported images currently contain:
325325

326-
- CPython 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.14t and PyPy 3.11 installed in
326+
- CPython 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.14t and PyPy 3.11 installed in
327327
``/opt/python/<python tag>-<abi tag>``. The directories are named
328328
after the PEP 425 tags for each environment --
329329
e.g. ``/opt/python/cp313-cp313`` contains a CPython 3.13 build, and

docker/Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ COPY --from=cosign-bin /ko-app/cosign /usr/local/bin/cosign
164164
COPY build_scripts/build-cpython.sh /opt/_internal/build_scripts/
165165

166166

167-
FROM build_cpython AS build_cpython38
168-
ARG MANYLINUX_DISABLE_CLANG_FOR_CPYTHON
169-
RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \
170-
/tmp/cross-compiler/entrypoint /opt/_internal/build_scripts/build-cpython.sh [email protected] https://github.com/login/oauth 3.8.20
171-
172167
FROM build_cpython AS build_cpython39
173168
ARG MANYLINUX_DISABLE_CLANG_FOR_CPYTHON
174169
RUN --mount=type=bind,from=static_clang,target=/tmp/cross-compiler,ro \
@@ -212,8 +207,7 @@ COPY --from=build_zstd /manylinux-rootfs /
212207
COPY --from=build_sqlite3 /manylinux-rootfs /
213208
COPY --from=build_git /manylinux-rootfs /
214209
COPY build_scripts /opt/_internal/build_scripts/
215-
RUN --mount=type=bind,target=/build_cpython38,from=build_cpython38 \
216-
--mount=type=bind,target=/build_cpython39,from=build_cpython39 \
210+
RUN --mount=type=bind,target=/build_cpython39,from=build_cpython39 \
217211
--mount=type=bind,target=/build_cpython310,from=build_cpython310 \
218212
--mount=type=bind,target=/build_cpython311,from=build_cpython311 \
219213
--mount=type=bind,target=/build_cpython312,from=build_cpython312 \

docker/build_scripts/build-cpython.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ elif [ "${BASE_POLICY}_${AUDITWHEEL_ARCH}" == "musllinux_armv7l" ]; then
5555
fi
5656

5757
case "${CPYTHON_VERSION}" in
58-
3.8.*|3.9.*|3.10.*) sed -i "s|/usr/local/include/sqlite3|/opt/_internal/sqlite3/include|g ; s|sqlite_extra_link_args = ()|sqlite_extra_link_args = ('-Wl,-rpath=/opt/_internal/sqlite3/lib',)|g" setup.py;;
58+
3.9.*|3.10.*) sed -i "s|/usr/local/include/sqlite3|/opt/_internal/sqlite3/include|g ; s|sqlite_extra_link_args = ()|sqlite_extra_link_args = ('-Wl,-rpath=/opt/_internal/sqlite3/lib',)|g" setup.py;;
5959
*) ;;
6060
esac
6161

6262
OPENSSL_PREFIX=$(find /opt/_internal -maxdepth 1 -name 'openssl*')
6363
if [ "${OPENSSL_PREFIX}" != "" ]; then
6464
CONFIGURE_ARGS+=("--with-openssl=${OPENSSL_PREFIX}")
6565
case "${CPYTHON_VERSION}" in
66-
3.8.*|3.9.*) export LDFLAGS_EXTRA="-Wl,-rpath,${OPENSSL_PREFIX}/lib";;
66+
3.9.*) export LDFLAGS_EXTRA="-Wl,-rpath,${OPENSSL_PREFIX}/lib";;
6767
*) CONFIGURE_ARGS+=(--with-openssl-rpath=auto);;
6868
esac
6969
fi

docker/build_scripts/finalize-one.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ elif [ -f "/usr/local/bin/cpython${PY_VER}" ]; then
3636
else
3737
"${PREFIX}/bin/python" -m ensurepip
3838
case ${PY_VER} in
39-
3.8|3.9|3.10|3.11) "${PREFIX}/bin/python" -m pip uninstall -y setuptools;;
39+
3.9|3.10|3.11) "${PREFIX}/bin/python" -m pip uninstall -y setuptools;;
4040
esac
4141
"${PREFIX}/bin/python" -m pip install -U --require-hashes -r "${MY_DIR}/requirements${PY_VER}.txt"
4242
fi

docker/build_scripts/python_versions.json

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,6 @@
2323
"sha256": "f3315d1a3f13e7fcd785d0ca9b954d251da5f5d0dedae094c28a0566a239e4fd"
2424
}
2525
},
26-
"pp38-pypy38_pp73": {
27-
"x86_64": {
28-
"version": "7.3.11",
29-
"download_url": "https://downloads.python.org/pypy/pypy3.8-v7.3.11-linux64.tar.bz2",
30-
"sha256": "470330e58ac105c094041aa07bb05676b06292bc61409e26f5c5593ebb2292d9"
31-
},
32-
"aarch64": {
33-
"version": "7.3.11",
34-
"download_url": "https://downloads.python.org/pypy/pypy3.8-v7.3.11-aarch64.tar.bz2",
35-
"sha256": "9a2fa0b8d92b7830aa31774a9a76129b0ff81afbd22cd5c41fbdd9119e859f55"
36-
},
37-
"i686": {
38-
"version": "7.3.11",
39-
"download_url": "https://downloads.python.org/pypy/pypy3.8-v7.3.11-linux32.tar.bz2",
40-
"sha256": "a79b31fce8f5bc1f9940b6777134189a1d3d18bda4b1c830384cda90077c9176"
41-
}
42-
},
4326
"pp39-pypy39_pp73": {
4427
"x86_64": {
4528
"version": "7.3.16",

docker/build_scripts/requirements3.8.txt

Lines changed: 0 additions & 72 deletions
This file was deleted.

docker/tests/forty-two/setup.py

Lines changed: 1 addition & 1 deletion
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.8",
6+
python_requires=">=3.9",
77
ext_modules=[Extension("forty_two", sources=["forty-two.c"])],
88
)

docker/tests/run_tests.sh

Lines changed: 8 additions & 8 deletions
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=14
16-
elif [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
17-
EXPECTED_PYTHON_COUNT=9
14+
EXPECTED_PYTHON_COUNT=8
1815
EXPECTED_PYTHON_COUNT_ALL=12
19-
else
16+
elif [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
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

noxfile.py

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

22-
for python_minor in range(8, 15):
22+
for python_minor in range(9, 15):
2323
python_version = f"3.{python_minor}"
2424
session.run(
2525
"uv",

0 commit comments

Comments
 (0)