Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version bumping test packages to avoid package not publishing #556

Conversation

PacificGilly
Copy link
Collaborator

Even in test.pypi if you try and publish a package with a version already released, then PyPi will block you. Our current method for determining the latest version uses the "releases" on GH, but for test releases we don't create one, as I'm guessing we should only create "releases" for production-ready code.

So using PyPi servers to grab the latest test version.

Also using prerelease instead of prepatch due to a bug in Poetry which doesn't autoincrement the package number [0].

[0] python-poetry/poetry#879

Even in `test.pypi` if you try and publish a package with a version
already released, then PyPi will block you. Our current method for
determining the latest version uses the "releases" on GH, but for
test releases we don't create one, as I'm guessing we should only
create "releases" for production-ready code.

So using PyPi servers to grab the latest test version.

Also using `prerelease` instead of `prepatch` due to a bug in Poetry
which doesn't autoincrement the package number [0].

[0] python-poetry/poetry#879
@farridav farridav merged commit 2ae393e into farridav:master Mar 30, 2024
4 of 5 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