2016-10-26 06:48:03 +00:00
# Release Checklist
2017-03-15 21:36:58 +00:00
Make sure run all these steps on the correct branch you want to create a new release for!
- Verify `mitmproxy/version.py`
2017-02-21 17:37:56 +00:00
- Update CHANGELOG
2017-03-15 21:36:58 +00:00
- Verify that all CI tests pass
- Tag the release and push to Github
2018-03-31 04:13:24 +00:00
- For alphas, betas, and release candidates, use lightweight tags.
2018-01-07 19:25:27 +00:00
This is necessary so that the .devXXXX counter does not reset.
2018-03-31 04:13:24 +00:00
- For final releases, use annotated tags.
2018-01-07 19:25:27 +00:00
This makes the .devXXXX counter reset.
2016-10-26 06:48:03 +00:00
- Wait for tag CI to complete
2017-03-15 21:36:58 +00:00
## GitHub Release
2017-04-28 12:24:57 +00:00
- Create release notice on Github [here ](https://github.com/mitmproxy/mitmproxy/releases/new )
2017-03-15 21:36:58 +00:00
- Attach all files from the new release folder on https://snapshots.mitmproxy.org
## PyPi
2018-02-25 16:49:54 +00:00
- `tox -e rtool -- upload-release`
## Homebrew
- `tox -e rtool -- homebrew-pr`
- The Homebrew maintainers are typically very fast and detect our new relese within a day, but we can be a nice citizen and create the PR ourself.
2017-03-15 21:36:58 +00:00
## Docker
2016-11-22 22:11:57 +00:00
- Update docker-releases repo
2017-03-04 10:50:21 +00:00
- Create a new branch based of master for major versions.
2017-03-15 21:36:58 +00:00
- Update the dependencies in [alpine/requirements.txt ](https://github.com/mitmproxy/docker-releases/commit/3d6a9989fde068ad0aea257823ac3d7986ff1613#diff-9b7e0eea8ae74688b1ac13ea080549ba )
* Creating a fresh venv, pip-installing the new wheel in there, and then export all packages:
2018-03-31 15:25:21 +00:00
* `virtualenv -ppython3.6 venv && source venv/bin/activate && pip install mitmproxy && pip freeze`
2017-04-30 09:21:28 +00:00
- Tag the commit with the correct version
* `2.0.0` for new major versions
* `2.0.2` for new patch versions
- Update `latest` tag [here ](https://hub.docker.com/r/mitmproxy/mitmproxy/~/settings/automated-builds/ )
2018-02-25 16:33:06 +00:00
- Check that the build for this tag succeeds [https://hub.docker.com/r/mitmproxy/mitmproxy/builds/ ](here )
- If build failed:
- Fix it and commit
- `git tag 3.0.2` the new commit
- `git push origin :refs/tags/3.0.2` to delete the old remote tag
- `git push --tags` to push the new tag
- Check the build details page again
2018-02-22 13:21:46 +00:00
## Prepare for next release
- Last but not least, bump the version on master in [https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/version.py ](mitmproxy/version.py ) for major releases.