File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ Repository = "https://github.com/promplate/partial-python"
1111Documentation = " 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 ]
1818dev = [
You can’t perform that action at this time.
0 commit comments