Skip to content

Commit 510cf42

Browse files
committed
chore: Unpin build-and-inspect-python-package
1 parent cd73249 commit 510cf42

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848
persist-credentials: false
49-
# Note that we cannot upgrade this past 2.9 until uv build resolves a bug
50-
# or build-and-inspect-python-package lets us select build as a backend
49+
# Note that we may need to revert to 2.9 if bugs are found in `uv build`,
50+
# unless build-and-inspect-python-package lets us select build as a backend
5151
#
5252
# https://github.com/astral-sh/uv/issues/5450
5353
# or https://github.com/hynek/build-and-inspect-python-package/issues/155
5454
#
55-
# When we do move on, we should leave a comment to fall back in case of future uv build bugs
56-
- uses: hynek/[email protected]
55+
# If 2.9 is required, then we will need to pin to hatchling 1.26.x to avoid
56+
# incompatibilities with twine and the package metadata emitted by hatchiling.
57+
- uses: hynek/build-and-inspect-python-package@v2
5758
with:
5859
upload-name-suffix: -main
5960
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}

pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
[build-system]
2-
# Pin hatchling 1.26 to keep metadata 2.3
3-
# The hynek/build-and-inspect-python-package action is pinned at 2.8,
4-
# which in turn pins a twine that rejects 2.4.
5-
# Until uv build fixes a problem with its tar library, we're stuck here.
6-
# https://github.com/hynek/build-and-inspect-python-package/issues/155
7-
# https://github.com/astral-sh/uv/issues/5450
8-
requires = ["hatchling~=1.26.3", "hatch-vcs"]
2+
requires = ["hatchling", "hatch-vcs"]
93
build-backend = "hatchling.build"
104

115
[project]

0 commit comments

Comments
 (0)