Fix version mismatch causing Build and Deploy #181 failure - #46
Draft
yves-chevallier with Copilot wants to merge 3 commits into
Draft
Fix version mismatch causing Build and Deploy #181 failure#46yves-chevallier with Copilot wants to merge 3 commits into
yves-chevallier with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: yves-chevallier <52489316+yves-chevallier@users.noreply.github.com>
Co-authored-by: yves-chevallier <52489316+yves-chevallier@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issues in Build and Deploy action #181
Fix version mismatch causing Build and Deploy #181 failure
Oct 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Build and Deploy workflow run #181 failed during PyPI publication with an HTTP 400 error: "File already exists".
The issue occurred because:
0.6.1(commit219d7b5)pyproject.tomlstill containedversion = "0.6.0"pyproject.toml(0.6.0)Solution
Updated the version in
pyproject.tomlfrom0.6.0to0.6.1to match the git tag.Verification
Tested the fix locally with Poetry:
The build now correctly produces version 0.6.1 packages that will successfully upload to PyPI.
Prevention
To avoid this issue in the future, always update
pyproject.tomlversion before creating git tags:poetry version 0.6.2 git add pyproject.toml git commit -m "Bump version to 0.6.2" git tag 0.6.2 git push origin main --tagsCloses issue about Build and Deploy #181 failure.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
install.python-poetry.orgcurl -sSL REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.