@@ -222,46 +222,41 @@ jobs:
222
222
toolchain : stable
223
223
# Add the arm64 target in addition to the native arch (x86_64)
224
224
target : aarch64-apple-darwin
225
- - run : ${{ matrix.PYTHON.BIN_PATH }} -m venv venv
226
- - name : Install Python dependencies
227
- run : venv/bin/pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
228
-
229
225
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
230
226
with :
231
227
name : cryptography-sdist
228
+
229
+ - run : ${{ matrix.PYTHON.BIN_PATH }} -m pip install uv
232
230
- run : mkdir wheelhouse
233
231
- name : Build the wheel
234
232
run : |
235
233
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then
236
- PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation "
234
+ PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }}"
237
235
fi
238
236
239
- # `maturin` has a binary that needs to be on the $PATH, so we
240
- # activate the venv.
241
- source venv/bin/activate
242
237
OPENSSL_DIR="$(readlink -f ../openssl-macos-universal2/)" \
243
238
OPENSSL_STATIC=1 \
244
- venv/bin/python -m pip wheel -v --no-deps $PY_LIMITED_API cryptograph*.tar.gz -w dist/
245
- mv dist/cryptography*.whl wheelhouse
239
+ uv build --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o wheelhouse/
246
240
env :
247
241
MACOSX_DEPLOYMENT_TARGET : ${{ matrix.PYTHON.DEPLOYMENT_TARGET }}
248
242
ARCHFLAGS : ${{ matrix.PYTHON.ARCHFLAGS }}
249
243
_PYTHON_HOST_PLATFORM : ${{ matrix.PYTHON._PYTHON_HOST_PLATFORM }}
250
- - run : venv/bin/pip install -f wheelhouse/ --no-index cryptography
244
+
245
+ - run : uv venv
246
+ - run : uv pip install --require-hashes -r $BUILD_REQUIREMENTS_PATH
247
+ - run : uv pip install cryptography --no-index -f wheelhouse/
251
248
- name : Show the wheel's minimum macOS SDK and architectures
252
249
run : |
253
- find venv/lib/*/site-packages/cryptography/hazmat/bindings -name '*.so' -exec vtool -show {} \;
250
+ find . venv/lib/*/site-packages/cryptography/hazmat/bindings -name '*.so' -exec vtool -show {} \;
254
251
- run : |
255
- 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'))"
252
+ . 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'))"
256
253
257
- - run : mkdir cryptography-wheelhouse
258
- - run : mv wheelhouse/cryptography*.whl cryptography-wheelhouse/
259
254
- run : |
260
- echo "CRYPTOGRAPHY_WHEEL_NAME=$(basename $(ls cryptography- wheelhouse/cryptography*.whl))" >> $GITHUB_ENV
255
+ echo "CRYPTOGRAPHY_WHEEL_NAME=$(basename $(ls wheelhouse/cryptography*.whl))" >> $GITHUB_ENV
261
256
- uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
262
257
with :
263
258
name : " ${{ env.CRYPTOGRAPHY_WHEEL_NAME }}"
264
- path : cryptography- wheelhouse/
259
+ path : wheelhouse/
265
260
266
261
windows :
267
262
needs : [sdist]
0 commit comments