Skip to content

ci: append .devN version suffix for TestPyPI uploads - #22

Merged
deviantintegral merged 1 commit into
mainfrom
copilot/update-upload-version
Feb 26, 2026
Merged

deviantintegral merged 1 commit into
mainfrom
copilot/update-upload-version

Conversation

Copilot AI commented Feb 26, 2026 •

Copy link
Copy Markdown
Contributor

TestPyPI uploads fail with 400 Bad Request because every push to main builds with the same hardcoded version 0.1.0.

  • Adds a conditional build step that appends .dev${GITHUB_RUN_NUMBER} to the version in pyproject.toml on push events, producing unique PEP 440 dev versions (e.g. 0.1.0.dev42)
  • Release events (PyPI publishes) are unaffected — version is used as-is from release-please

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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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.

Copilot AI changed the title [WIP] Update upload version for TestPyPI releases Append .devN version suffix for TestPyPI uploads Feb 26, 2026
@deviantintegral
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
deviantintegral force-pushed the copilot/update-upload-version branch from d38c99b to 5cbc97a Compare February 26, 2026 01:10
@deviantintegral
deviantintegral enabled auto-merge (squash) February 26, 2026 01:11
@deviantintegral deviantintegral changed the title Append .devN version suffix for TestPyPI uploads ci: append .devN version suffix for TestPyPI uploads Feb 26, 2026
@deviantintegral
deviantintegral merged commit 1edf189 into main Feb 26, 2026
5 of 6 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