Skip to content

[PLAT-193] Fix python sdk publish to pypi gha#43

Merged
winnie-opal merged 1 commit into
mainfrom
winnie/plat-193-fix-python-sdk-publish-to-pypi-gha
Apr 22, 2026
Merged

[PLAT-193] Fix python sdk publish to pypi gha#43
winnie-opal merged 1 commit into
mainfrom
winnie/plat-193-fix-python-sdk-publish-to-pypi-gha

Conversation

@winnie-opal
Copy link
Copy Markdown
Contributor

@winnie-opal winnie-opal commented Apr 22, 2026

The publish to pypi workflow was silently broken and attempts to publish every release as 1.0.0 which gets skipped since it already exists.

The OpenAPI generator upgrade from 7.10.0 to 7.19.0 changed the pyproject.toml format from [tool.poetry] to the standard [project] table which causes the hardcoded version = "1.0.0" to override the old versioning logic.

See workflow run here https://github.com/opalsecurity/opal-python/actions/runs/24752948149/job/72419853149

This replaces that hardcoded version = "1.0.0" to ["version"]. This also updates the workflow to specify fetch-tags: true in the checkout so the workflow can use the git tag for the version.

Tested this locally to confirm that new builds use the existing tag

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@winnie-opal winnie-opal marked this pull request as ready for review April 22, 2026 00:42
@winnie-opal winnie-opal requested a review from a team April 22, 2026 00:51
@winnie-opal winnie-opal merged commit e53ac9b into main Apr 22, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants