Doing a release is too hard
source link: https://alexgaynor.net/2013/sep/17/doing-release-too-hard/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Alex Gaynor
Hi, I'm Alex. I've been CISO at a startup named Alloy, an engineer working on Firefox security, and before that at the U.S. Digital Service. I'm an avid open source contributor and live in Washington, DC.
© 2020. All rights reserved.
Doing a release is too hard
Tue, Sep 17, 2013I just shipped a new release of alchimia. Here are the steps I went through:
- Manually edit version numbers in
setup.py
anddocs/conf.py
. In theory I could probably centralize this, but then I’d still have a place I need to update manually. - Issue a
git tag
(actually I forgot to do that on this project, oops). python setup.py register sdist upload -s
to build and upload some tarballs to PyPipython setup.py register bdist_wheel upload -s
to build and upload some wheels to PyPi- Bump the version again for the now pre-release status (I never remeber to do this)
Here’s how it works for OpenStack projects:
git tag VERSION -s
(-s
) makes it be a GPG signed tag)git push gerrit VERSION
this sends the tag to gerrit for review
Once the tag is approved in the code review system, a release will automatically be issue including:
- Uploading to PyPi
- Uploading documentation
- Landing the tag in the official repository
Version numbers are always automatically handled correctly.
This is how it should be. We need to bring this level of automation to all projects.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK