Skip to content

Commit a282b26

Browse files
committed
feature: add CPython 3.11
1 parent ac9d5ec commit a282b26

File tree

5 files changed

+58
-3
lines changed

5 files changed

+58
-3
lines changed

.github/workflows/update-dependencies.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
name: Update dependencies
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v3
15+
with:
16+
python-version: "3.11-dev"
1417
- uses: excitedleigh/setup-nox@4c62aee44396909396d10137c747b2633deeee76
1518
- name: "Setup bot user"
1619
run: |
@@ -31,7 +34,7 @@ jobs:
3134
run: nox --force-color --error-on-missing-interpreters -s update_python_dependencies update_python_tools
3235
- name: Create Pull Request
3336
if: github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
34-
uses: peter-evans/create-pull-request@v3
37+
uses: peter-evans/create-pull-request@v4
3538
with:
3639
commit-message: Update python dependencies
3740
title: '[Bot] Update dependencies'

docker/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ FROM build_cpython AS build_cpython310
133133
COPY build_scripts/cpython-pubkey-310-311.txt /build_scripts/cpython-pubkeys.txt
134134
RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.10.4
135135

136+
FROM build_cpython AS build_cpython311
137+
COPY build_scripts/cpython-pubkey-310-311.txt /build_scripts/cpython-pubkeys.txt
138+
RUN manylinux-entrypoint /build_scripts/build-cpython.sh 3.11.0b1
136139

137140
FROM build_cpython AS all_python
138141
COPY build_scripts/install-pypy.sh \
@@ -147,6 +150,7 @@ COPY --from=build_cpython37 /opt/_internal /opt/_internal/
147150
COPY --from=build_cpython38 /opt/_internal /opt/_internal/
148151
COPY --from=build_cpython39 /opt/_internal /opt/_internal/
149152
COPY --from=build_cpython310 /opt/_internal /opt/_internal/
153+
COPY --from=build_cpython311 /opt/_internal /opt/_internal/
150154
RUN manylinux-entrypoint /build_scripts/finalize-python.sh
151155

152156

@@ -163,6 +167,7 @@ COPY build_scripts/finalize.sh \
163167
build_scripts/requirements3.8.txt \
164168
build_scripts/requirements3.9.txt \
165169
build_scripts/requirements3.10.txt \
170+
build_scripts/requirements3.11.txt \
166171
build_scripts/requirements-base-tools.txt \
167172
/build_scripts/
168173
COPY build_scripts/requirements-tools/* /build_scripts/requirements-tools/

docker/build_scripts/build-cpython.sh

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ function pyver_dist_dir {
2323
echo $1 | awk -F "." '{printf "%d.%d.%d", $1, $2, $3}'
2424
}
2525

26+
if [ "${AUDITWHEEL_POLICY}" == "manylinux2010" ] && [ "${CPYTHON_VERSION}" == "3.11.0b1" ]; then
27+
echo "skip CPython 3.11.0b1 on manylinux2010"
28+
mkdir /opt/_internal
29+
exit 0
30+
fi
2631

2732
CPYTHON_DIST_DIR=$(pyver_dist_dir ${CPYTHON_VERSION})
2833
fetch_source Python-${CPYTHON_VERSION}.tgz ${CPYTHON_DOWNLOAD_URL}/${CPYTHON_DIST_DIR}
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.11
3+
# To update, run:
4+
#
5+
# pip-compile --allow-unsafe --generate-hashes --output-file=docker/build_scripts/requirements3.11.txt requirements.in
6+
#
7+
build==0.7.0 \
8+
--hash=sha256:1aaadcd69338252ade4f7ec1265e1a19184bf916d84c9b7df095f423948cb89f \
9+
--hash=sha256:21b7ebbd1b22499c4dac536abc7606696ea4d909fd755e00f09f3c0f2c05e3c8
10+
# via -r requirements.in
11+
packaging==21.3 \
12+
--hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \
13+
--hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522
14+
# via build
15+
pep517==0.12.0 \
16+
--hash=sha256:931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0 \
17+
--hash=sha256:dd884c326898e2c6e11f9e0b64940606a93eb10ea022a2e067959f3a110cf161
18+
# via build
19+
pyparsing==3.0.9 \
20+
--hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \
21+
--hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc
22+
# via packaging
23+
tomli==2.0.1 \
24+
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
25+
--hash=sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f
26+
# via
27+
# build
28+
# pep517
29+
wheel==0.37.1 \
30+
--hash=sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a \
31+
--hash=sha256:e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4
32+
# via -r requirements.in
33+
34+
# The following packages are considered to be unsafe in a requirements file:
35+
pip==22.1 \
36+
--hash=sha256:2debf847016cfe643fa1512e2d781d3ca9e5c878ba0652583842d50cc2bcc605 \
37+
--hash=sha256:802e797fb741be1c2d475533d4ea951957e4940091422bd4a24848a7ac95609d
38+
# via -r requirements.in
39+
setuptools==62.2.0 \
40+
--hash=sha256:5534570b9980fc650d45c62877ff603c7aaaf24893371708736cc016bd221c3c \
41+
--hash=sha256:ca6ba73b7fd5f734ae70ece8c4c1f7062b07f3352f6428f6277e27c8f5c64237
42+
# via -r requirements.in

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import nox
55

66

7-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"])
7+
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"])
88
def update_python_dependencies(session):
99
session.install("pip-tools")
1010
session.run(

0 commit comments

Comments
 (0)