Skip to content

Commit 9555ff9

Browse files
build with uv across supported backend versions
1 parent c3b6807 commit 9555ff9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ jobs:
2828
- run: uv run --locked basedpyright
2929
- run: uv run --locked basedpyright --verifytypes partial_python --ignoreexternal
3030
- run: uv build --no-sources
31+
- name: Check minimum build backend
32+
run: |
33+
echo 'uv_build==0.7.19' > "$RUNNER_TEMP/build-constraints.txt"
34+
uv build --no-sources --force-pep517 --build-constraints "$RUNNER_TEMP/build-constraints.txt" --out-dir "$RUNNER_TEMP/dist-minimum"
3135
- name: Test installed distributions
3236
run: |
3337
for version in 3.11 3.15; do
34-
for package in dist/*; do
38+
for package in dist/* "$RUNNER_TEMP"/dist-minimum/*; do
3539
uv run --isolated --no-project --python "$version" --with "$package" python -I -c 'from importlib.metadata import requires; from importlib.resources import files; assert not requires("partial-python"); assert files("partial_python").joinpath("py.typed").is_file()'
3640
uv run --isolated --no-project --python "$version" --with "$package" python -I examples/streaming_tools.py
3741
done

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Repository = "https://github.com/promplate/partial-python"
1111
Documentation = "https://github.com/promplate/partial-python/blob/main/docs/api.md"
1212

1313
[build-system]
14-
requires = ["hatchling"]
15-
build-backend = "hatchling.build"
14+
requires = ["uv_build>=0.7.19,<0.14"]
15+
build-backend = "uv_build"
1616

1717
[dependency-groups]
1818
dev = [

0 commit comments

Comments
 (0)