Fix PyPI publishing for packages with metadata 2.5 (#1779)

The 0.11.0 release failed to upload to PyPI as hatchling version used in the CI created metadata that was not accepted by pypi.

This commit pins the versions for the release pipeline to avoid such surprises in the future.
This commit is contained in:
Teemu R.
2026-10-04 20:26:26 +02:00
committed by GitHub
parent 5b8447c940
commit 9b6d6aff21
3 changed files with 5 additions and 3 deletions

2
.github/build-constraints.txt vendored Normal file
View File

@@ -0,0 +1,2 @@
# Pin the build backend for reproducible release builds.
hatchling==1.32.4

View File

@@ -29,8 +29,8 @@ jobs:
- name: Build Packages
id: build-packages
shell: bash
run: uv build
run: uv build --build-constraints .github/build-constraints.txt
- name: Publish Release on PyPI
id: publish-release-on-pypi
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2