Skip to content

Commit dcb1593

Browse files
authored
Use pex.build_backend.wrap to embed dist lock. (#8)
1 parent f0d8689 commit dcb1593

File tree

6 files changed

+32
-126
lines changed

6 files changed

+32
-126
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## 0.32.3
4+
5+
This release switches from a bespoke lock embedding in dev-cmd distributuons to use of the
6+
`pex.build_backend.wrap` delegating backend to embed the dev-cmd lock.
7+
38
## 0.32.2
49

510
This release fixes the dev-cmd wheel `RECORD` metadata to be Windows compatible.

build-backend/dev_cmd_build/__init__.py

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

build-backend/dev_cmd_build/setuptools/__init__.py

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

build-backend/dev_cmd_build/setuptools/build.py

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

dev_cmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright 2024 John Sirois.
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

4-
__version__ = "0.32.2"
4+
__version__ = "0.32.3"

pyproject.toml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
11
[build-system]
2-
requires = ["setuptools"]
3-
backend-path = ["build-backend", ""]
4-
build-backend = "dev_cmd_build.setuptools.build"
2+
requires = [
3+
# 1st publication of pex.build_backend.wrap was in Pex 2.50.0.
4+
"pex>=2.50",
5+
6+
# 1st support for license expressions was in setuptools 77.0.0.
7+
"setuptools>=77",
8+
]
9+
build-backend = "pex.build_backend.wrap"
10+
11+
[tool.pex.build_backend]
12+
delegate-build-backend = "setuptools.build_meta"
13+
14+
[[tool.pex.build_backend.script-locks]]
15+
command = [
16+
"uv",
17+
"export",
18+
"--format",
19+
"pylock.toml",
20+
"--no-header",
21+
"--no-emit-project",
22+
"--all-extras",
23+
"--no-dev",
24+
"-q",
25+
"-o",
26+
"{lock_path}",
27+
]
528

629
[project]
730
name = "dev-cmd"

0 commit comments

Comments
 (0)