@@ -106,9 +106,6 @@ jobs:
106
106
sparse-checkout : |
107
107
${{ env.BUILD_REQUIREMENTS_PATH }}
108
108
sparse-checkout-cone-mode : false
109
- - run : /opt/python/${{ matrix.PYTHON.VERSION }}/bin/python -m venv .venv
110
- - name : Install Python dependencies
111
- run : .venv/bin/pip install --require-hashes -r ${{ env.BUILD_REQUIREMENTS_PATH }}
112
109
113
110
- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
114
111
with :
@@ -117,19 +114,15 @@ jobs:
117
114
- name : Build the wheel
118
115
run : |
119
116
if [ -n "${{ matrix.PYTHON.ABI_VERSION }}" ]; then
120
- PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }} --no-build-isolation "
117
+ PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }}"
121
118
fi
122
119
123
- # `maturin` has a binary that needs to be on the $PATH, so we
124
- # activate the venv.
125
- source .venv/bin/activate
126
120
OPENSSL_DIR="/opt/pyca/cryptography/openssl" \
127
121
OPENSSL_STATIC=1 \
128
- .venv/bin/python -m pip wheel -v --no-deps $PY_LIMITED_API cryptograph*.tar.gz -w dist/
129
- mv dist/cryptography*.whl tmpwheelhouse
122
+ uv build --python=/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python --wheel --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o tmpwheelhouse/
130
123
env :
131
124
RUSTUP_HOME : /root/.rustup
132
- - run : auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptograph *.whl -w wheelhouse/
125
+ - run : auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptography *.whl -w wheelhouse/
133
126
- run : unzip wheelhouse/*.whl -d execstack.check
134
127
- run : |
135
128
results=$(readelf -lW execstack.check/cryptography/hazmat/bindings/*.so)
@@ -139,15 +132,17 @@ jobs:
139
132
else
140
133
exit 0
141
134
fi
142
- - run : .venv/bin/pip install cryptography --no-index -f wheelhouse/
135
+
136
+ - run : uv venv --python=/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python
137
+ - run : uv pip install --require-hashes -r $BUILD_REQUIREMENTS_PATH
138
+ - run : uv pip install cryptography --no-index -f wheelhouse/
143
139
- run : |
144
- .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'))"
145
- - run : mkdir cryptography-wheelhouse
146
- - run : mv wheelhouse/cryptography*.whl cryptography-wheelhouse/
140
+ 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 -
141
+
147
142
- uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
148
143
with :
149
144
name : " cryptography-${{ github.event.inputs.version }}-${{ matrix.MANYLINUX.NAME }}-${{ matrix.PYTHON.VERSION }}-${{ matrix.PYTHON.ABI_VERSION }}"
150
- path : cryptography- wheelhouse/
145
+ path : wheelhouse/
151
146
152
147
macos :
153
148
needs : [sdist]
0 commit comments