improve release instructions

This commit is contained in:
Thomas Kriechbaumer 2018-02-25 17:49:54 +01:00
parent 2db8a087eb
commit 1f95b8375d
2 changed files with 19 additions and 6 deletions

View File

@ -16,7 +16,11 @@ Make sure run all these steps on the correct branch you want to create a new rel
- Attach all files from the new release folder on https://snapshots.mitmproxy.org - Attach all files from the new release folder on https://snapshots.mitmproxy.org
## PyPi ## PyPi
- Upload wheel to pypi: `twine upload <mitmproxy-...-.whl` - `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.
## Docker ## Docker
- Update docker-releases repo - Update docker-releases repo
@ -36,11 +40,6 @@ Make sure run all these steps on the correct branch you want to create a new rel
- `git push --tags` to push the new tag - `git push --tags` to push the new tag
- Check the build details page again - Check the build details page again
## Homebrew
- The Homebrew maintainers are typically very fast and detect our new relese within a day
- If you want to speed this up:
- `brew bump-formula-pr --url=https://github.com/mitmproxy/mitmproxy/archive/v3.0.2.tar.gz mitmproxy`
## Prepare for next release ## 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. - 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.

View File

@ -286,6 +286,20 @@ def upload_release(username, password, repository):
]) ])
@cli.command("homebrew-pr")
def homebrew_pr():
"""
Create a new Homebrew PR
"""
print("Creating a new PR with Homebrew...")
subprocess.check_call([
"brew",
"bump-formula-pr",
"--url", "https://github.com/mitmproxy/mitmproxy/archive/v{}".format(get_version()),
"mitmproxy",
])
@cli.command("upload-snapshot") @cli.command("upload-snapshot")
@click.option("--host", envvar="SNAPSHOT_HOST", prompt=True) @click.option("--host", envvar="SNAPSHOT_HOST", prompt=True)
@click.option("--port", envvar="SNAPSHOT_PORT", type=int, default=22) @click.option("--port", envvar="SNAPSHOT_PORT", type=int, default=22)