Skip to content

Commit 6f32ad3

Browse files
fix: upgrade pypi-publish action to release/v1 for Metadata-Version 2.4 support
gh-action-pypi-publish@v1.12.2 bundles packaging<24.2 which cannot parse Metadata-Version 2.4 generated by hatchling 1.27+, causing a false 'missing Name/Version' error. release/v1 is pypa's rolling stable tag.
1 parent 3494bf5 commit 6f32ad3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: actions/download-artifact@v4
3131
with: { name: dist, path: dist/ }
32-
- uses: pypa/gh-action-pypi-publish@v1.12.2
32+
- uses: pypa/gh-action-pypi-publish@release/v1
3333
with:
3434
repository-url: https://test.pypi.org/legacy/
3535

@@ -45,4 +45,4 @@ jobs:
4545
steps:
4646
- uses: actions/download-artifact@v4
4747
with: { name: dist, path: dist/ }
48-
- uses: pypa/gh-action-pypi-publish@v1.12.2
48+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "hyperping"
77
version = "0.1.0"
88
description = "Python SDK for the Hyperping uptime monitoring and incident management API"
99
readme = "README.md"
10-
license = "MIT"
10+
license = {text = "MIT"}
1111
requires-python = ">=3.11"
1212
authors = [{ name = "Develeap", email = "dev@develeap.com" }]
1313
keywords = ["hyperping", "monitoring", "uptime", "status-page", "incident", "api-client"]

0 commit comments

Comments
 (0)