Skip to content

Commit 2c5ff94

Browse files
committed
Use pinned build dpendencies in the release workflow
1 parent 80abbe3 commit 2c5ff94

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: "3.x"
1915
- name: Build a binary wheel and a source tarball
20-
run: pipx run build
16+
run: |
17+
python3 -m venv build-env
18+
build-env/bin/python -m pip install --no-deps --require-hashes -r build-requirements.txt
19+
build-env/bin/python -m build --no-isolation
2120
- name: Store the distribution packages
2221
uses: actions/upload-artifact@v4
2322
with:

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ include README.rst
55
include SECURITY.md
66
include pyproject.toml
77

8+
include build-requirements.in
9+
include build-requirements.txt
10+
811
include src/pip/_vendor/README.rst
912
include src/pip/_vendor/vendor.txt
1013
recursive-include src/pip/_vendor *LICENSE*

build-requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
setuptools

build-requirements.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --generate-hashes build-requirements.in
6+
#
7+
build==1.2.2.post1 \
8+
--hash=sha256:1d61c0887fa860c01971625baae8bdd338e517b836a2f70dd1f7aa3a6b2fc5b5 \
9+
--hash=sha256:b36993e92ca9375a219c99e606a122ff365a760a2d4bba0caa09bd5278b608b7
10+
# via -r build-requirements.in
11+
packaging==24.2 \
12+
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
13+
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
14+
# via build
15+
pyproject-hooks==1.2.0 \
16+
--hash=sha256:1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8 \
17+
--hash=sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913
18+
# via build
19+
20+
# The following packages are considered to be unsafe in a requirements file:
21+
setuptools==75.8.0 \
22+
--hash=sha256:c5afc8f407c626b8313a86e10311dd3f661c6cd9c09d4bf8c15c0e11f9f2b0e6 \
23+
--hash=sha256:e3982f444617239225d675215d51f6ba05f845d4eec313da4418fdbb56fb27e3
24+
# via -r build-requirements.in

0 commit comments

Comments
 (0)