Visitar URL original
Use uv to build windows wheels · alex/cryptography@a8df979 · GitHub
Skip to content

Commit a8df979

Browse files
committed
Use uv to build windows wheels
refs pyca#11548
1 parent d445299 commit a8df979

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/wheel-builder.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,25 +320,25 @@ jobs:
320320
echo "OPENSSL_DIR=C:/openssl-${{ matrix.WINDOWS.WINDOWS }}" >> $GITHUB_ENV
321321
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
322322
shell: bash
323-
- name: Install Python dependencies
324-
run: python -m pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
323+
324+
- run: pip install uv
325325
- run: mkdir wheelhouse
326326
- run: |
327327
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then
328-
PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation"
328+
PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }}"
329329
fi
330330
331-
python -m pip wheel -v --no-deps cryptography*.tar.gz $PY_LIMITED_API -w dist/
332-
mv dist/cryptography*.whl wheelhouse/
331+
uv build --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH cryptography*.tar.gz $PY_LIMITED_API -o wheelhouse/
333332
shell: bash
334-
- run: pip install -f wheelhouse --no-index cryptography
333+
334+
- run: uv venv
335+
- run: uv pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
336+
- run: uv pip install cryptography --no-index -f wheelhouse/
335337
- name: Print the OpenSSL we built and linked against
336338
run: |
337-
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'))"
339+
.venv/Scripts/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'))"
338340
339-
- run: mkdir cryptography-wheelhouse
340-
- run: move wheelhouse\cryptography*.whl cryptography-wheelhouse\
341341
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
342342
with:
343343
name: "cryptography-${{ github.event.inputs.version }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION }}"
344-
path: cryptography-wheelhouse\
344+
path: wheelhouse\

0 commit comments

Comments
 (0)