Skip to content

Conversation

@jj22ee
Copy link
Contributor

@jj22ee jj22ee commented Oct 23, 2025

Issue #, if available:
Address release failure: https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/18734463348/job/53438678131

  1. hatchling is responsible for generating a metadata file included in the wheel file.
  2. twine will validate this metadata before publishing to PyPI.

According to the release failure, the metadata's license-expression field is malformed. Yet I tried testing an artifact in a fork, but the wheel file's metadata doesn't look suspicious. So the exact root cause is unknown.

Description of changes:
Pins the following for the release:

twine==5.1.1
hatchling==1.25.0

The latest versions are not compatible with the release process, but note that

Since there have been no new releases from twine/hatchling recently, it is suspected (but not confirmed yet in order to get this release out asap) that before the GitHub actions/setup-python upgrade in #506, an older pip version was installed, which installed older compatible versions of twine/hatchling. Probably since we upgraded actions/setup-python, pip might now install the latest versions of them, in which our repo is not yet compatible according to the failed release.

Reasoning why we need both (test publish to TestPyPI):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jj22ee jj22ee requested a review from a team as a code owner October 23, 2025 22:23
@jj22ee jj22ee added the skip changelog doesn't need a CHANGELOG entry label Oct 23, 2025
@jj22ee jj22ee closed this Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog doesn't need a CHANGELOG entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant