aboutsummaryrefslogtreecommitdiffstats
path: root/release/rtool.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2018-02-25 17:49:54 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2018-02-25 17:49:54 +0100
commit1f95b8375d9f7f09d0753b4e01792644d12bc08d (patch)
tree97cab2f9dc51c0790c85a5144097a5da9328c4f5 /release/rtool.py
parent2db8a087eba27d294203d621134aa4f29c68b4f3 (diff)
downloadmitmproxy-1f95b8375d9f7f09d0753b4e01792644d12bc08d.tar.gz
mitmproxy-1f95b8375d9f7f09d0753b4e01792644d12bc08d.tar.bz2
mitmproxy-1f95b8375d9f7f09d0753b4e01792644d12bc08d.zip
improve release instructions
Diffstat (limited to 'release/rtool.py')
-rwxr-xr-xrelease/rtool.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/release/rtool.py b/release/rtool.py
index 9050107e..171ce6b0 100755
--- a/release/rtool.py
+++ b/release/rtool.py
@@ -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")
@click.option("--host", envvar="SNAPSHOT_HOST", prompt=True)
@click.option("--port", envvar="SNAPSHOT_PORT", type=int, default=22)