Repository navigation
ci: append .devN version suffix for TestPyPI uploads - #22
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Update upload version for TestPyPI releases
Append .devN version suffix for TestPyPI uploads
Feb 26, 2026
deviantintegral
marked this pull request as ready for review
February 26, 2026 01:10
On push to main, the build step reads the current version from pyproject.toml and appends .devN (where N = GITHUB_RUN_NUMBER) before building. This produces unique, PEP 440-compliant developmental release versions (e.g. 0.1.0.dev42) for TestPyPI. For release events, the version is used as-is for PyPI. Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
deviantintegral
force-pushed
the
copilot/update-upload-version
branch
from
February 26, 2026 01:10
d38c99b to
5cbc97a
Compare
deviantintegral
enabled auto-merge (squash)
February 26, 2026 01:11
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.
TestPyPI uploads fail with
400 Bad Requestbecause every push to main builds with the same hardcoded version0.1.0..dev${GITHUB_RUN_NUMBER}to the version inpyproject.tomlon push events, producing unique PEP 440 dev versions (e.g.0.1.0.dev42)Dev versions sort before the final release per PEP 440:
0.1.0.dev42 < 0.1.0.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:
docs.pypi.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)packaging.python.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)peps.python.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.