21
21
22
22
env :
23
23
BUILD_REQUIREMENTS_PATH : .github/requirements/build-requirements.txt
24
+ UV_REQUIREMENTS_PATH : .github/requirements/uv-requirements.txt
24
25
25
26
jobs :
26
27
sdist :
33
34
ref : ${{ github.event.inputs.version || github.ref }}
34
35
persist-credentials : false
35
36
36
- - run : python -m pip install uv
37
+ - run : python -m pip install -r $UV_REQUIREMENTS_PATH
37
38
38
39
- name : Make sdist (cryptography)
39
40
run : uv build --build-constraint=$BUILD_REQUIREMENTS_PATH --require-hashes --sdist
@@ -195,6 +196,7 @@ jobs:
195
196
persist-credentials : false
196
197
sparse-checkout : |
197
198
${{ env.BUILD_REQUIREMENTS_PATH }}
199
+ ${{ env.UV_REQUIREMENTS_PATH }}
198
200
sparse-checkout-cone-mode : false
199
201
- name : Setup python
200
202
run : |
@@ -226,7 +228,7 @@ jobs:
226
228
with :
227
229
name : cryptography-sdist
228
230
229
- - run : ${{ matrix.PYTHON.BIN_PATH }} -m pip install uv
231
+ - run : ${{ matrix.PYTHON.BIN_PATH }} -m pip install -r ${{ env.UV_REQUIREMENTS_PATH }}
230
232
- run : mkdir wheelhouse
231
233
- name : Build the wheel
232
234
run : |
@@ -249,7 +251,7 @@ jobs:
249
251
run : |
250
252
find .venv/lib/*/site-packages/cryptography/hazmat/bindings -name '*.so' -exec vtool -show {} \;
251
253
- 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 -
253
255
254
256
- run : |
255
257
echo "CRYPTOGRAPHY_WHEEL_NAME=$(basename $(ls wheelhouse/cryptography*.whl))" >> $GITHUB_ENV
@@ -285,6 +287,7 @@ jobs:
285
287
persist-credentials : false
286
288
sparse-checkout : |
287
289
${{ env.BUILD_REQUIREMENTS_PATH }}
290
+ ${{ env.UV_REQUIREMENTS_PATH }}
288
291
sparse-checkout-cone-mode : false
289
292
290
293
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
@@ -316,7 +319,7 @@ jobs:
316
319
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
317
320
shell : bash
318
321
319
- - run : pip install uv
322
+ - run : pip install -r ${{ env.UV_REQUIREMENTS_PATH }}
320
323
- run : mkdir wheelhouse
321
324
- run : |
322
325
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then
@@ -331,7 +334,7 @@ jobs:
331
334
- run : uv pip install cryptography --no-index -f wheelhouse/
332
335
- name : Print the OpenSSL we built and linked against
333
336
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 -
335
338
336
339
- uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
337
340
with :
0 commit comments