File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,15 @@ jobs:
46
46
with :
47
47
fetch-depth : 0
48
48
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
51
51
#
52
52
# https://github.com/astral-sh/uv/issues/5450
53
53
# or https://github.com/hynek/build-and-inspect-python-package/issues/155
54
54
#
55
- # When we do move on, we should leave a comment to fall back in case of future uv build bugs
56
-
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
57
58
with :
58
59
upload-name-suffix : -main
59
60
attest-build-provenance-github : ${{ github.event_name != 'pull_request' }}
Original file line number Diff line number Diff line change 1
1
[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" ]
9
3
build-backend = " hatchling.build"
10
4
11
5
[project ]
You can’t perform that action at this time.
0 commit comments