Skip to content

Commit 7695105

Browse files
committed
Use manylinux_2_24 for python3.10, nightly-2021-06-24
1 parent ceb1602 commit 7695105

11 files changed

Lines changed: 66 additions & 66 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,13 +1156,13 @@ This is an example of building a wheel using the repository as source,
11561156

11571157
```sh
11581158
pip install maturin
1159-
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
1159+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
11601160
maturin build --no-sdist --release --strip --manylinux off
11611161
ls -1 target/wheels
11621162
```
11631163

11641164
Problems with the Rust nightly channel may require pinning a version.
1165-
`nightly-2021-05-25` is known to be ok.
1165+
`nightly-2021-06-24` is known to be ok.
11661166

11671167
orjson is tested for amd64 and aarch64 on Linux, macOS, and Windows. It
11681168
may not work on 32-bit targets. It has recommended `RUSTFLAGS`

ci/azure-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ steps:
1010
displayName: rustup
1111
- bash: PATH=$(path) rustup default $(toolchain)
1212
displayName: ensure toolchain
13-
- bash: PATH=$(path) pip install --user --upgrade pip maturin==0.10.6 twine
13+
- bash: PATH=$(path) pip install --user --upgrade pip maturin==0.10.6
1414
displayName: build dependencies
1515
- bash: PATH=$(path) $(interpreter) -m pip install --user -r test/requirements.txt -r integration/requirements.txt
1616
displayName: test dependencies

ci/azure-linux-container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ steps:
1111
displayName: rustup
1212
- bash: PATH=$(path) rustup default $(toolchain)
1313
displayName: ensure toolchain
14-
- bash: PATH=$(path) pip install --user --upgrade pip maturin==0.10.6 twine auditwheel
14+
- bash: PATH=$(path) pip install --user --upgrade pip maturin==0.10.6 auditwheel
1515
displayName: build dependencies
16-
- bash: PATH=$(path) maturin build --no-sdist --release --strip --manylinux $(manylinux) --skip-auditwheel --interpreter $(interpreter) --target $(target)
16+
- bash: PATH=$(path) maturin build --no-sdist --release --strip --manylinux $(manylinux) --interpreter $(interpreter) --target $(target)
1717
displayName: build
1818
- bash: PATH=$(path) $(interpreter) -m auditwheel repair target/wheels/orjson*.whl
1919
displayName: verify that wheel conforms to manylinux tag
@@ -35,5 +35,5 @@ steps:
3535
- bash: PATH=$(path) ./ci/deploy target/wheels/*.whl
3636
displayName: deploy
3737
env:
38-
TWINE_PASSWORD: $(TWINE_PASSWORD)
39-
TWINE_USERNAME: $(TWINE_USERNAME)
38+
MATURIN_PASSWORD: $(TWINE_PASSWORD)
39+
MATURIN_USERNAME: $(TWINE_USERNAME)

ci/azure-macos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
displayName: rustup
1010
- bash: rustup default $(toolchain)
1111
displayName: ensure toolchain
12-
- bash: pip install --upgrade pip maturin==0.9.4 twine
12+
- bash: pip install --upgrade pip maturin==0.10.6
1313
displayName: build dependencies
1414
- bash: pip install -r test/requirements.txt -r integration/requirements.txt
1515
displayName: test dependencies
@@ -38,10 +38,10 @@ steps:
3838
- bash: ./ci/deploy target/wheels/*_x86_64.whl
3939
displayName: deploy x86_64
4040
env:
41-
TWINE_PASSWORD: $(TWINE_PASSWORD)
42-
TWINE_USERNAME: $(TWINE_USERNAME)
41+
MATURIN_PASSWORD: $(TWINE_PASSWORD)
42+
MATURIN_USERNAME: $(TWINE_USERNAME)
4343
- bash: ./ci/deploy target/wheels/*_universal2.whl
4444
displayName: deploy universal2
4545
env:
46-
TWINE_PASSWORD: $(TWINE_PASSWORD)
47-
TWINE_USERNAME: $(TWINE_USERNAME)
46+
MATURIN_PASSWORD: $(TWINE_PASSWORD)
47+
MATURIN_USERNAME: $(TWINE_USERNAME)

ci/azure-pipelines.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pr:
44
- '*'
55

66
variables:
7-
toolchain: nightly-2021-05-25
7+
toolchain: nightly-2021-06-24
88

99
jobs:
1010

@@ -39,13 +39,13 @@ jobs:
3939
- job: linux_python310_amd64_manylinux2014
4040
pool:
4141
vmImage: ubuntu-20.04
42-
container: python:3.10-rc-buster
42+
container: quay.io/pypa/manylinux_2_24_x86_64:latest
4343
variables:
4444
interpreter: python3.10
45-
manylinux: 2014
46-
path: /home/vsts_azpcontainer/.local/bin:/home/vsts_azpcontainer/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
45+
manylinux: 2_24
46+
path: /home/vsts_azpcontainer/.local/bin:/home/vsts_azpcontainer/.cargo/bin:/opt/python/cp310-cp310/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
4747
target: x86_64-unknown-linux-gnu
48-
verifyManylinux: false
48+
verifyManylinux: true
4949
steps:
5050
- checkout: self
5151
- template: ./azure-linux-container.yml

ci/azure-sdist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ steps:
88
displayName: rustup
99
- bash: rustup default $(toolchain)
1010
displayName: ensure toolchain
11-
- bash: pip install --upgrade pip maturin==0.10.6 twine
11+
- bash: pip install --upgrade pip maturin==0.10.6
1212
displayName: build dependencies
1313
- bash: python3 -m pip install -r test/requirements.txt -r integration/requirements.txt
1414
displayName: test dependencies
@@ -25,5 +25,5 @@ steps:
2525
- bash: ./ci/deploy target/wheels/*.tar.gz
2626
displayName: deploy
2727
env:
28-
TWINE_PASSWORD: $(TWINE_PASSWORD)
29-
TWINE_USERNAME: $(TWINE_USERNAME)
28+
MATURIN_PASSWORD: $(TWINE_PASSWORD)
29+
MATURIN_USERNAME: $(TWINE_USERNAME)

ci/azure-win.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps:
1111
rustup default $(toolchain)
1212
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
1313
displayName: rustup
14-
- script: python.exe -m pip install --upgrade pip maturin==0.10.6 twine
14+
- script: python.exe -m pip install --upgrade pip maturin==0.10.6
1515
displayName: build dependencies
1616
- script: python.exe -m pip install -r test\requirements.txt -r integration\requirements.txt
1717
displayName: test dependencies
@@ -30,5 +30,5 @@ steps:
3030
- bash: ./ci/deploy /d/a/1/s/target/wheels/*.whl
3131
displayName: deploy
3232
env:
33-
TWINE_PASSWORD: $(TWINE_PASSWORD)
34-
TWINE_USERNAME: $(TWINE_USERNAME)
33+
MATURIN_PASSWORD: $(TWINE_PASSWORD)
34+
MATURIN_USERNAME: $(TWINE_USERNAME)

ci/deploy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -eou pipefail
44

5-
twine --version
6-
75
if [ -z ${DRONE_TAG+x} ]; then
86
tag=$(git name-rev --tags --name-only $(git rev-parse HEAD))
97
else
@@ -17,4 +15,4 @@ if [[ "$tag" == "undefined" ]]; then
1715
exit 0
1816
fi
1917

20-
twine upload --non-interactive --skip-existing "$1"
18+
maturin upload --skip-existing --username "$MATURIN_USERNAME" "$1"

ci/drone.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ platform:
66
arch: arm64
77
steps:
88
- name: test
9-
image: python:3.10-rc-buster
9+
image: quay.io/pypa/manylinux_2_24_aarch64:latest
1010
environment:
11-
PATH: "/root/.local/bin:/root/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
12-
TWINE_USERNAME:
11+
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp310-cp310/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
12+
MATURIN_USERNAME:
1313
from_secret: twine_username
14-
TWINE_PASSWORD:
14+
MATURIN_PASSWORD:
1515
from_secret: twine_password
1616
commands:
17-
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
18-
- python3.10 -m pip install --upgrade pip maturin==0.10.6
19-
- maturin build --no-sdist --release --strip --manylinux 2014 --skip-auditwheel --interpreter python3.10
20-
- python3.10 -m pip install target/wheels/orjson*.whl
21-
- python3.10 -m pip install -r test/requirements.txt -r integration/requirements.txt twine
17+
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
18+
- python3.10 -m pip install --user --upgrade pip maturin==0.10.6
19+
- maturin build --no-sdist --release --strip --manylinux 2_24 --interpreter python3.10
20+
- python3.10 -m pip install --user target/wheels/orjson*.whl
21+
- python3.10 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
2222
- pytest -s -rxX -v test
2323
- ./integration/run thread
2424
- ./integration/run http
@@ -33,16 +33,16 @@ steps:
3333
image: quay.io/pypa/manylinux2014_aarch64:latest
3434
environment:
3535
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp39-cp39/bin:/opt/rh/devtoolset-9/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
36-
TWINE_USERNAME:
36+
MATURIN_USERNAME:
3737
from_secret: twine_username
38-
TWINE_PASSWORD:
38+
MATURIN_PASSWORD:
3939
from_secret: twine_password
4040
commands:
41-
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
42-
- python3.9 -m pip install --upgrade pip maturin==0.10.6
41+
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
42+
- python3.9 -m pip install --user --upgrade pip maturin==0.10.6
4343
- maturin build --no-sdist --release --strip --manylinux 2014 --interpreter python3.9
44-
- python3.9 -m pip install target/wheels/orjson*.whl
45-
- python3.9 -m pip install -r test/requirements.txt -r integration/requirements.txt twine
44+
- python3.9 -m pip install --user target/wheels/orjson*.whl
45+
- python3.9 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
4646
- pytest -s -rxX -v test
4747
- ./integration/run thread
4848
- ./integration/run http
@@ -57,16 +57,16 @@ steps:
5757
image: quay.io/pypa/manylinux2014_aarch64:latest
5858
environment:
5959
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp38-cp38/bin:/opt/rh/devtoolset-9/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
60-
TWINE_USERNAME:
60+
MATURIN_USERNAME:
6161
from_secret: twine_username
62-
TWINE_PASSWORD:
62+
MATURIN_PASSWORD:
6363
from_secret: twine_password
6464
commands:
65-
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
66-
- python3.8 -m pip install --upgrade pip maturin==0.10.6
65+
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
66+
- python3.8 -m pip install --user --upgrade pip maturin==0.10.6
6767
- maturin build --no-sdist --release --strip --manylinux 2014 --interpreter python3.8
68-
- python3.8 -m pip install target/wheels/orjson*.whl
69-
- python3.8 -m pip install -r test/requirements.txt -r integration/requirements.txt twine
68+
- python3.8 -m pip install --user target/wheels/orjson*.whl
69+
- python3.8 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
7070
- pytest -s -rxX -v test
7171
- ./integration/run thread
7272
- ./integration/run http
@@ -81,16 +81,16 @@ steps:
8181
image: quay.io/pypa/manylinux2014_aarch64:latest
8282
environment:
8383
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp37-cp37m/bin:/opt/rh/devtoolset-9/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
84-
TWINE_USERNAME:
84+
MATURIN_USERNAME:
8585
from_secret: twine_username
86-
TWINE_PASSWORD:
86+
MATURIN_PASSWORD:
8787
from_secret: twine_password
8888
commands:
89-
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
90-
- python3.7 -m pip install --upgrade pip maturin==0.10.6
89+
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
90+
- python3.7 -m pip install --user --upgrade pip maturin==0.10.6
9191
- maturin build --no-sdist --release --strip --manylinux 2014 --interpreter python3.7
92-
- python3.7 -m pip install target/wheels/orjson*.whl
93-
- python3.7 -m pip install -r test/requirements.txt -r integration/requirements.txt twine
92+
- python3.7 -m pip install --user target/wheels/orjson*.whl
93+
- python3.7 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
9494
- pytest -s -rxX -v test
9595
- ./integration/run thread
9696
- ./integration/run http
@@ -105,16 +105,16 @@ steps:
105105
image: quay.io/pypa/manylinux2014_aarch64:latest
106106
environment:
107107
PATH: "/root/.local/bin:/root/.cargo/bin:/opt/python/cp36-cp36m/bin:/opt/rh/devtoolset-9/root/usr/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
108-
TWINE_USERNAME:
108+
MATURIN_USERNAME:
109109
from_secret: twine_username
110-
TWINE_PASSWORD:
110+
MATURIN_PASSWORD:
111111
from_secret: twine_password
112112
commands:
113-
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-05-25 --profile minimal -y
114-
- python3.6 -m pip install --upgrade pip maturin==0.10.6
113+
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2021-06-24 --profile minimal -y
114+
- python3.6 -m pip install --user --upgrade pip maturin==0.10.6
115115
- maturin build --no-sdist --release --strip --manylinux 2014 --interpreter python3.6
116-
- python3.6 -m pip install target/wheels/orjson*.whl
117-
- python3.6 -m pip install -r test/requirements.txt -r integration/requirements.txt twine
116+
- python3.6 -m pip install --user target/wheels/orjson*.whl
117+
- python3.6 -m pip install --user -r test/requirements.txt -r integration/requirements.txt
118118
- pytest -s -rxX -v test
119119
- ./integration/run thread
120120
- ./integration/run http

0 commit comments

Comments
 (0)