Skip to content

Commit b6ff7bf

Browse files
authored
Pin uv hashes in wheel builder (pyca#11566)
1 parent 10a0af4 commit b6ff7bf

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --universal -p 3.8 --generate-hashes -
3+
uv==0.4.7 \
4+
--hash=sha256:00aa7299edefcc4069d73b988a7331d590e3fedd29f5695b1680905af1ccba04 \
5+
--hash=sha256:0fef80011c96dc8e284f4895b7ca92945e450fb517872115a557e72789c0e2c5 \
6+
--hash=sha256:106fc5449a63137da6b3c4fd25775e3eeda3b11c8cea12439d95201237a95484 \
7+
--hash=sha256:1357fb27047cff94422bb82cf9a82d7285ce8341a204fc1925b0b89c8d108249 \
8+
--hash=sha256:23283699e6035ef536b204f9094e7297093a527f958b86d4ce26613c603f564c \
9+
--hash=sha256:2ab5f6701046b373cdedca7334e20a8dc7726eb4c3e2f6e18297dbbda09afba9 \
10+
--hash=sha256:319a585f53c0b63b989526206383716e1d7c0f3483425058b94bf47402a81841 \
11+
--hash=sha256:54c3dde3c01d96fba484c2728e020c7c867e05a88de143ddb6df1091d1ffdfb7 \
12+
--hash=sha256:63b59e0cfa303a97ce5ba19fa8fc27a6339516561bc4b821cca52ed15721cbdb \
13+
--hash=sha256:904763380be165f5213dcbacb8d6c17d5cf138ea4bd24b4a37a1b6046b5650a1 \
14+
--hash=sha256:9356449439d4fa42419d17736d775cd1701b1b4a054ab445faf1477a6920a505 \
15+
--hash=sha256:a1850d93f78eeb6d0ace3dc0335e1bf141a4b6a26844ab75f00055de2a4817cd \
16+
--hash=sha256:ab7308c0604268f21b1a5bce4e1b61bcf56831f4aef59bee93c2b5815f4bc6a8 \
17+
--hash=sha256:bfbd6e28b0543b774db7d97d61963c384c70284e95056004c8f74252e69616c7 \
18+
--hash=sha256:d6c8e43bbdfa2f7910245335acb93fcb5a4e34995b7ce60de4e814071690b3c5 \
19+
--hash=sha256:e1f3285bebfeab6e076e651ec47f6adf7a83a4f014dd9d7e73efc034e77d42cd \
20+
--hash=sha256:e8bc35e30f2bb03f0e1812f1c0dce0e73d8ab01e90392d39f334da9d75e522b0 \
21+
--hash=sha256:ec49a00317799226d33135bf40e8da44262f44e3980a5bb9e6dae7250523c963

.github/workflows/wheel-builder.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121

2222
env:
2323
BUILD_REQUIREMENTS_PATH: .github/requirements/build-requirements.txt
24+
UV_REQUIREMENTS_PATH: .github/requirements/uv-requirements.txt
2425

2526
jobs:
2627
sdist:
@@ -33,7 +34,7 @@ jobs:
3334
ref: ${{ github.event.inputs.version || github.ref }}
3435
persist-credentials: false
3536

36-
- run: python -m pip install uv
37+
- run: python -m pip install -r $UV_REQUIREMENTS_PATH
3738

3839
- name: Make sdist (cryptography)
3940
run: uv build --build-constraint=$BUILD_REQUIREMENTS_PATH --require-hashes --sdist
@@ -195,6 +196,7 @@ jobs:
195196
persist-credentials: false
196197
sparse-checkout: |
197198
${{ env.BUILD_REQUIREMENTS_PATH }}
199+
${{ env.UV_REQUIREMENTS_PATH }}
198200
sparse-checkout-cone-mode: false
199201
- name: Setup python
200202
run: |
@@ -226,7 +228,7 @@ jobs:
226228
with:
227229
name: cryptography-sdist
228230

229-
- run: ${{ matrix.PYTHON.BIN_PATH }} -m pip install uv
231+
- run: ${{ matrix.PYTHON.BIN_PATH }} -m pip install -r ${{ env.UV_REQUIREMENTS_PATH }}
230232
- run: mkdir wheelhouse
231233
- name: Build the wheel
232234
run: |
@@ -249,7 +251,7 @@ jobs:
249251
run: |
250252
find .venv/lib/*/site-packages/cryptography/hazmat/bindings -name '*.so' -exec vtool -show {} \;
251253
- run: |
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'))"
254+
echo "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'))" | uv run -
253255
254256
- run: |
255257
echo "CRYPTOGRAPHY_WHEEL_NAME=$(basename $(ls wheelhouse/cryptography*.whl))" >> $GITHUB_ENV
@@ -285,6 +287,7 @@ jobs:
285287
persist-credentials: false
286288
sparse-checkout: |
287289
${{ env.BUILD_REQUIREMENTS_PATH }}
290+
${{ env.UV_REQUIREMENTS_PATH }}
288291
sparse-checkout-cone-mode: false
289292

290293
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
@@ -316,7 +319,7 @@ jobs:
316319
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
317320
shell: bash
318321

319-
- run: pip install uv
322+
- run: pip install -r ${{ env.UV_REQUIREMENTS_PATH }}
320323
- run: mkdir wheelhouse
321324
- run: |
322325
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then
@@ -331,7 +334,7 @@ jobs:
331334
- run: uv pip install cryptography --no-index -f wheelhouse/
332335
- name: Print the OpenSSL we built and linked against
333336
run: |
334-
.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'))"
337+
echo "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'))" | uv run -
335338
336339
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
337340
with:

0 commit comments

Comments
 (0)