mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-10-06 12:53:58 +00:00
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:
2
.github/build-constraints.txt
vendored
Normal file
2
.github/build-constraints.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Pin the build backend for reproducible release builds.
|
||||
hatchling==1.32.4
|
||||
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user