Skip to content

Commit 41b6f69

Browse files
committed
Use uv for building sdists
Hash-pin dependencies refs pyca#11548
1 parent a807d45 commit 41b6f69

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/requirements/build-requirements.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ setuptools!=74.0.0
33
cffi>=1.12; platform_python_implementation != 'PyPy'
44
maturin>=1,<2
55

6+
# Must be kept sync with build-system.requires at vectors/pyproject.toml
7+
flit_core >=3.2,<4
8+
69
# WARN: changing the requirements here DOES NOT update the dependencies used for building at the github workflow, as the build process used build-requirements.txt
710
# To update build-requirements.txt according to the dependencies here, run pip-compile --allow-unsafe --generate-hashes build-requirements.in

.github/requirements/build-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ cffi==1.17.1 ; platform_python_implementation != "PyPy" \
7373
--hash=sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87 \
7474
--hash=sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b
7575
# via -r build-requirements.in
76+
flit-core==3.9.0 \
77+
--hash=sha256:72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba \
78+
--hash=sha256:7aada352fb0c7f5538c4fafeddf314d3a6a92ee8e2b1de70482329e42de70301
79+
# via -r build-requirements.in
7680
maturin==1.7.1 \
7781
--hash=sha256:00f0f8f5051f4c0d0f69bdd0c6297ea87e979f70fb78a377eb4277c932804e2d \
7882
--hash=sha256:07c8800603e551a45e16fe7ad1742977097ea43c18b28e491df74d4ca15c5857 \

.github/workflows/wheel-builder.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,12 @@ jobs:
3333
ref: ${{ github.event.inputs.version || github.ref }}
3434
persist-credentials: false
3535

36-
- run: python -m venv .venv
37-
- name: Install Python dependencies
38-
run: .venv/bin/pip install -U pip build
36+
- run: python -m pip install uv
37+
3938
- name: Make sdist (cryptography)
40-
run: .venv/bin/python -m build --sdist
39+
run: uv build --build-constraint=$BUILD_REQUIREMENTS_PATH --require-hashes --sdist
4140
- name: Make sdist and wheel (vectors)
42-
run: cd vectors/ && ../.venv/bin/python -m build
41+
run: uv build --build-constraint=$BUILD_REQUIREMENTS_PATH --require-hashes vectors/
4342
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
4443
with:
4544
name: "cryptography-sdist"

0 commit comments

Comments
 (0)