aboutsummaryrefslogtreecommitdiffstats
path: root/release/rtool.py
diff options
context:
space:
mode:
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)