-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
Ability to ship alpha and beta releases #807
Comments
These should not be shipped as the latest version on Docker Hub. They also should not become the "stable" release on ReadTheDocs. |
Relevant PEP: https://www.python.org/dev/peps/pep-0440/ Django's implementation dates back 8 years: django/django@40f0ecc From the PEP:
I'm going to habitually include the 0. |
I thought I might have to update a regex (my CircleCI configs won't match on Lines 21 to 35 in 6151c25
|
So I think if I push a tag of Except... I don't want to push alphas as Docker images - so I need to fix this code: Lines 34 to 43 in 6151c25
|
Travis conditions documentation: https://docs.travis-ci.com/user/conditions-v1 These look useful:
|
So maybe this condition is right?
|
I'm going to try this on a separate repository so I don't accidentally publish a Datasette release I didn't mean to publish! |
https://github.com/simonw/datasette-render-images uses Travis and is low-risk for trying this out. |
Mainly to help test for simonw/datasette#807
OK, I just shipped 0.2a0 of But this page does: https://pypi.org/project/datasette-render-images/#history And https://pypi.org/project/datasette-render-images/0.2a0/ exists. In a fresh virtual environment
|
One more experiment: I'm going to ship In the alpha releasing run on Travis that echo statement did NOT execute: https://travis-ci.com/github/simonw/datasette-render-images/builds/172116625 |
https://travis-ci.com/github/simonw/datasette-render-images/builds/172118541 demonstrates that the alpha/beta conditional is working as intended: |
Here's the Read The Docs documentation on versioned releases: https://docs.readthedocs.io/en/stable/versions.html It looks like they do the right thing:
|
https://pypi.org/project/datasette-render-images/#history worked: I'm now confident enough that I'll make these changes and ship an alpha of Datasette itself. |
Alpha release is running through Travis now: https://travis-ci.org/github/simonw/datasette/builds/699864168 |
New documentation about the alpha/beta releases: https://datasette.readthedocs.io/en/latest/contributing.html#contributing-alpha-beta |
This worked! https://pypi.org/project/datasette/#history https://github.com/simonw/datasette/releases/tag/0.45a0 is my manually created GitHub prerelease. https://datasette.readthedocs.io/en/latest/changelog.html#a0-2020-06-18 has the release notes. A shame Read The Docs doesn't seem to build the docs for these releases -it's not showing the tag in the releases pane here: Also the new tag isn't an option in the Build menu on https://readthedocs.org/projects/datasette/builds/ Not a big problem though since the "latest" tag on Read The Docs will still carry the in-development documentation. |
https://pypi.org/project/datasette/0.45a0/ is the release on PyPI. And in a fresh virtual environment:
But running |
I'd like to be able to ship alphas and betas to PyPI so in-development plugins can depend on them and help test unreleased plugin hooks.
The text was updated successfully, but these errors were encountered: