-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin the changelog for 36.0.2 (#6942)
* Begin the changelog for 36.0.2 * Switch from centos to rhel in CI (#6844) * Switch from centos to rhel in CI * Update installation.rst * Update installation.rst * Re-blackify for latest black * Fix mypy (#6711) * Fix mypy * Poke for GHA * Backport CircleCI * Remove Zuul from our CI (#6778) It was providing arm64 builds, but we now do those on CircleCI
- Loading branch information
Showing
30 changed files
with
196 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash -ex | ||
|
||
cd /test | ||
|
||
echo "Building for ${PLATFORM}" | ||
|
||
PYBIN="/opt/python/${PYTHON}/bin" | ||
|
||
mkdir -p /test/wheelhouse.final | ||
|
||
"${PYBIN}"/python -m venv .venv | ||
|
||
.venv/bin/pip install -U pip wheel cffi setuptools-rust | ||
|
||
.venv/bin/python setup.py sdist | ||
cd dist | ||
tar zxf cryptography*.tar.gz | ||
rm -rf cryptograph*.tar.gz | ||
cd cryptography* | ||
|
||
REGEX="cp3([0-9])*" | ||
if [[ "${PYBIN}" =~ $REGEX ]]; then | ||
PY_LIMITED_API="--py-limited-api=cp3${BASH_REMATCH[1]}" | ||
fi | ||
|
||
LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \ | ||
CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \ | ||
../../.venv/bin/python setup.py bdist_wheel "$PY_LIMITED_API" | ||
|
||
auditwheel repair --plat "${PLATFORM}" -w wheelhouse/ dist/cryptography*.whl | ||
|
||
../../.venv/bin/pip install cryptography --no-index -f wheelhouse/ | ||
../../.venv/bin/python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))" | ||
|
||
mv wheelhouse/* /test/wheelhouse.final |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
version: 2.1 | ||
|
||
commands: | ||
docker-pull: | ||
parameters: | ||
image: | ||
type: string | ||
steps: | ||
- run: docker pull <<parameters.image>> | ||
docker-run: | ||
parameters: | ||
image: | ||
type: string | ||
command: | ||
type: string | ||
steps: | ||
- run: docker run -e PLATFORM -e PYTHON -v $(pwd):/test <<parameters.image>> /bin/bash -c 'cd /test;<<parameters.command>>' | ||
|
||
jobs: | ||
linux-arm64: | ||
machine: | ||
image: ubuntu-2004:202111-02 | ||
resource_class: arm.medium | ||
parameters: | ||
image: | ||
type: string | ||
toxenv: | ||
type: string | ||
steps: | ||
- checkout | ||
- docker-pull: | ||
image: <<parameters.image>> | ||
- docker-run: | ||
image: <<parameters.image>> | ||
command: tox -e <<parameters.toxenv>> | ||
linux-arm64-wheel: | ||
machine: | ||
image: ubuntu-2004:202111-02 | ||
resource_class: arm.medium | ||
parameters: | ||
image: | ||
type: string | ||
platform: | ||
type: string | ||
python: | ||
type: string | ||
environment: | ||
PLATFORM: <<parameters.platform>> | ||
PYTHON: <<parameters.python>> | ||
steps: | ||
- checkout | ||
- docker-pull: | ||
image: <<parameters.image>> | ||
- docker-run: | ||
image: <<parameters.image>> | ||
command: /test/.circleci/build-wheel.sh | ||
- store_artifacts: | ||
path: wheelhouse.final | ||
|
||
workflows: | ||
ci: | ||
jobs: | ||
- linux-arm64: | ||
# Changing this name should only be done in conjunction with updating | ||
# the required checks on GH | ||
name: linux-arm64-ci | ||
image: ghcr.io/pyca/cryptography-runner-ubuntu-focal:aarch64 | ||
toxenv: py38 | ||
# This makes sure it runs on all tags in addition to PRs/branches. | ||
# By default CircleCI ignores tags. | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- linux-arm64: | ||
name: linux-arm64-alpine-ci | ||
image: ghcr.io/pyca/cryptography-runner-alpine:aarch64 | ||
toxenv: py39 | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- linux-arm64-wheel: | ||
name: manylinux2014_aarch64-wheel | ||
image: ghcr.io/pyca/cryptography-manylinux2014_aarch64:latest | ||
python: cp36-cp36m | ||
platform: manylinux2014_aarch64 | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- linux-arm64-wheel: | ||
name: manylinux_2_24_aarch64-wheel | ||
image: ghcr.io/pyca/cryptography-manylinux_2_24:aarch64 | ||
python: cp36-cp36m | ||
platform: manylinux_2_24_aarch64 | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- linux-arm64-wheel: | ||
name: musllinux_1_1_aarch64-wheel | ||
image: ghcr.io/pyca/cryptography-musllinux_1_1:aarch64 | ||
python: cp36-cp36m | ||
platform: musllinux_1_1_aarch64 | ||
filters: | ||
tags: | ||
only: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
.zuul.playbooks/playbooks/wheel/roles/build-wheel-manylinux/README.rst
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
.zuul.playbooks/playbooks/wheel/roles/build-wheel-manylinux/files/build-wheels.sh
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.