Skip to content

Commit aee7ba2

Browse files
committed
Modernize project build-script
1 parent f7bfe28 commit aee7ba2

6 files changed

Lines changed: 56 additions & 25 deletions

File tree

build-project/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# pip build
2+
3+
This is a project to build `pip` in a reproducible manner.
4+
5+
Running `python build-project.py` will produce pip build artifacts in `../dist`.
6+
7+
Update `pylock.toml` with `pip lock --group build`.

build-project/build-project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main() -> None:
5151
"--only-binary=:all:",
5252
"--require-hashes",
5353
"-r",
54-
Path(__file__).parent / "build-requirements.txt",
54+
Path(__file__).parent / "pylock.toml",
5555
],
5656
check=True,
5757
)

build-project/build-requirements.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

build-project/build-requirements.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

build-project/pylock.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
lock-version = "1.0"
2+
created-by = "pip"
3+
4+
[[packages]]
5+
name = "build"
6+
version = "1.5.0"
7+
8+
[[packages.wheels]]
9+
name = "build-1.5.0-py3-none-any.whl"
10+
url = "https://files.pythonhosted.org/packages/0d/fe/6bea5c9162869c5beba5d9c8abbed835ec85bf1ec1fba05a3822325c45f3/build-1.5.0-py3-none-any.whl"
11+
12+
[packages.wheels.hashes]
13+
sha256 = "13f3eecb844759ab66efec90ca17639bbf14dc06cb2fdf37a9010322d9c50a6f"
14+
15+
[[packages]]
16+
name = "flit-core"
17+
version = "3.12.0"
18+
19+
[[packages.wheels]]
20+
name = "flit_core-3.12.0-py3-none-any.whl"
21+
url = "https://files.pythonhosted.org/packages/f2/65/b6ba90634c984a4fcc02c7e3afe523fef500c4980fec67cc27536ee50acf/flit_core-3.12.0-py3-none-any.whl"
22+
23+
[packages.wheels.hashes]
24+
sha256 = "e7a0304069ea895172e3c7bb703292e992c5d1555dd1233ab7b5621b5b69e62c"
25+
26+
[[packages]]
27+
name = "packaging"
28+
version = "26.2"
29+
30+
[[packages.wheels]]
31+
name = "packaging-26.2-py3-none-any.whl"
32+
url = "https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl"
33+
34+
[packages.wheels.hashes]
35+
sha256 = "5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e"
36+
37+
[[packages]]
38+
name = "pyproject-hooks"
39+
version = "1.2.0"
40+
41+
[[packages.wheels]]
42+
name = "pyproject_hooks-1.2.0-py3-none-any.whl"
43+
url = "https://files.pythonhosted.org/packages/bd/24/12818598c362d7f300f18e74db45963dbcb85150324092410c8b49405e42/pyproject_hooks-1.2.0-py3-none-any.whl"
44+
45+
[packages.wheels.hashes]
46+
sha256 = "9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913"

build-project/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[dependency-groups]
2+
build = ["build", "flit-core"]

0 commit comments

Comments
 (0)