Skip to content

Update PyPI versioning in CI workflow#8

Merged
MathiasVDA merged 1 commit into
mainfrom
agents/fix-pypi-version-update-workflow
May 25, 2026
Merged

Update PyPI versioning in CI workflow#8
MathiasVDA merged 1 commit into
mainfrom
agents/fix-pypi-version-update-workflow

Conversation

@MathiasVDA
Copy link
Copy Markdown
Contributor

Enhance the CI workflow to update the PyPI version from the Git tag before building. This change prevents the upload failure due to placeholder versions and ensures correct versioning in the built artifacts.

Maturin reads the version from pyproject.toml and the workspace Cargo.toml.
Without updating these files the built wheel always carries the placeholder
version (0.0.1) and the upload to PyPI fails with '400 File already exists'.

Add an 'Update release version' step (shell: bash for cross-platform
compatibility) to both build-wheels and build-sdist jobs that patches:
- tp-py/pyproject.toml  [project] version
- Cargo.toml            workspace version (inherited via version.workspace)
- tp-py/Cargo.toml      tp-lib-core path-dependency version pin

This mirrors the approach already used in publish-crates.yml.
The NuGet workflow already handles versioning correctly via
-p:PackageVersion and required no changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MathiasVDA MathiasVDA merged commit 4facf77 into main May 25, 2026
7 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@MathiasVDA MathiasVDA deleted the agents/fix-pypi-version-update-workflow branch May 25, 2026 14:10
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.

1 participant