-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It seems to be much faster at doing things locally.
- Loading branch information
Showing
5 changed files
with
51 additions
and
174 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 |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
PYTHON: | ||
- { VERSION: "cp37-cp37m", ABI_VERSION: 'cp37' } | ||
- { VERSION: "cp37-cp37m" } | ||
- { VERSION: "pp38-pypy38_pp73" } | ||
- { VERSION: "pp39-pypy39_pp73" } | ||
MANYLINUX: | ||
|
@@ -108,12 +108,9 @@ jobs: | |
- run: mkdir tmpwheelhouse | ||
- name: Build the wheel | ||
run: | | ||
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then | ||
PY_LIMITED_API="--config-settings=--build-option=--py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation" | ||
fi | ||
OPENSSL_DIR="/opt/pyca/cryptography/openssl" \ | ||
OPENSSL_STATIC=1 \ | ||
.venv/bin/python -m pip wheel -v $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl tmpwheelhouse | ||
.venv/bin/python -m pip wheel -v cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl tmpwheelhouse | ||
env: | ||
RUSTUP_HOME: /root/.rustup | ||
- run: auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptograph*.whl -w wheelhouse/ | ||
|
@@ -144,7 +141,6 @@ jobs: | |
matrix: | ||
PYTHON: | ||
- VERSION: '3.11' | ||
ABI_VERSION: 'cp37' | ||
# Despite the name, this is built for the macOS 11 SDK on arm64 and 10.9+ on intel | ||
DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.11.3/python-3.11.3-macos11.pkg' | ||
BIN_PATH: '/Library/Frameworks/Python.framework/Versions/3.11/bin/python3' | ||
|
@@ -156,7 +152,6 @@ jobs: | |
# build against | ||
_PYTHON_HOST_PLATFORM: 'macosx-10.9-universal2' | ||
- VERSION: '3.11' | ||
ABI_VERSION: 'cp37' | ||
DOWNLOAD_URL: 'https://www.python.org/ftp/python/3.11.3/python-3.11.3-macos11.pkg' | ||
BIN_PATH: '/Library/Frameworks/Python.framework/Versions/3.11/bin/python3' | ||
DEPLOYMENT_TARGET: '10.12' | ||
|
@@ -175,7 +170,7 @@ jobs: | |
DEPLOYMENT_TARGET: '10.12' | ||
_PYTHON_HOST_PLATFORM: 'macosx-10.9-x86_64' | ||
ARCHFLAGS: '-arch x86_64' | ||
name: "${{ matrix.PYTHON.VERSION }} ABI ${{ matrix.PYTHON.ABI_VERSION }} macOS ${{ matrix.PYTHON.ARCHFLAGS }}" | ||
name: "${{ matrix.PYTHON.VERSION }} macOS ${{ matrix.PYTHON.ARCHFLAGS }}" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -213,13 +208,9 @@ jobs: | |
- run: mkdir wheelhouse | ||
- name: Build the wheel | ||
run: | | ||
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then | ||
PY_LIMITED_API="--config-settings=--build-option=--py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation" | ||
fi | ||
OPENSSL_DIR="$(readlink -f ../openssl-macos-universal2/)" \ | ||
OPENSSL_STATIC=1 \ | ||
venv/bin/python -m pip wheel -v $PY_LIMITED_API cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl wheelhouse | ||
venv/bin/python -m pip wheel -v cryptograph*.tar.gz -w dist/ && mv dist/cryptography*.whl wheelhouse | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.PYTHON.DEPLOYMENT_TARGET }} | ||
ARCHFLAGS: ${{ matrix.PYTHON.ARCHFLAGS }} | ||
|
@@ -250,7 +241,7 @@ jobs: | |
- {ARCH: 'x86', WINDOWS: 'win32', RUST_TRIPLE: 'i686-pc-windows-msvc'} | ||
- {ARCH: 'x64', WINDOWS: 'win64', RUST_TRIPLE: 'x86_64-pc-windows-msvc'} | ||
PYTHON: | ||
- {VERSION: "3.11", "ABI_VERSION": "cp37"} | ||
- {VERSION: "3.11"} | ||
- {VERSION: "pypy-3.8"} | ||
- {VERSION: "pypy-3.9"} | ||
exclude: | ||
|
@@ -259,7 +250,7 @@ jobs: | |
PYTHON: {VERSION: "pypy-3.8"} | ||
- WINDOWS: {ARCH: 'x86', WINDOWS: 'win32', RUST_TRIPLE: 'i686-pc-windows-msvc'} | ||
PYTHON: {VERSION: "pypy-3.9"} | ||
name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.WINDOWS.WINDOWS }} ${{ matrix.PYTHON.ABI_VERSION }}" | ||
name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.WINDOWS.WINDOWS }}" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -294,11 +285,7 @@ jobs: | |
- run: python -m pip install cffi setuptools-rust | ||
- run: mkdir wheelhouse | ||
- run: | | ||
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then | ||
PY_LIMITED_API="--config-settings=--build-option=--py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation" | ||
fi | ||
python -m pip wheel -v cryptography*.tar.gz $PY_LIMITED_API -w dist/ && mv dist/cryptography*.whl wheelhouse/ | ||
python -m pip wheel -v cryptography*.tar.gz -w dist/ && mv dist/cryptography*.whl wheelhouse/ | ||
shell: bash | ||
- run: pip install -f wheelhouse --no-index cryptography | ||
- name: Print the OpenSSL we built and linked against | ||
|
@@ -309,5 +296,5 @@ jobs: | |
- run: move wheelhouse\cryptography*.whl cryptography-wheelhouse\ | ||
- uses: actions/[email protected] | ||
with: | ||
name: "cryptography-${{ github.event.inputs.version }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION}}" | ||
name: "cryptography-${{ github.event.inputs.version }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}" | ||
path: cryptography-wheelhouse\ |
This file was deleted.
Oops, something went wrong.
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 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