diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2018-03-07 12:39:32 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2018-03-07 12:39:32 +1300 |
commit | 780ff05f12cda4665b37dd7023985f0d643da6bb (patch) | |
tree | 9f1dca9e05582e5a7e3368799ce164322a8d6842 /release | |
parent | 538a67dc3afe6272b045d37766b1d9f0a5d5044e (diff) | |
download | mitmproxy-780ff05f12cda4665b37dd7023985f0d643da6bb.tar.gz mitmproxy-780ff05f12cda4665b37dd7023985f0d643da6bb.tar.bz2 mitmproxy-780ff05f12cda4665b37dd7023985f0d643da6bb.zip |
release: satisfy lint
Diffstat (limited to 'release')
-rwxr-xr-x | release/ci.py | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/release/ci.py b/release/ci.py index 5d9678de..666b921a 100755 --- a/release/ci.py +++ b/release/ci.py @@ -3,7 +3,6 @@ import contextlib import os import platform -import re import sys import shutil import subprocess @@ -82,18 +81,6 @@ else: print("BUILD VERSION=%s" % VERSION) -def set_version(dev: bool) -> None: - """ - Update version information in mitmproxy's version.py to either include hardcoded information or not. - """ - version = get_version(dev, dev) - with open(VERSION_FILE, "r") as f: - content = f.read() - content = re.sub(r'^VERSION = ".+?"', 'VERSION = "{}"'.format(version), content, flags=re.M) - with open(VERSION_FILE, "w") as f: - f.write(content) - - def archive_name(bdist: str) -> str: if platform.system() == "Windows": ext = "zip" @@ -139,28 +126,12 @@ def cli(): """ pass + @cli.command("info") def info(): print("Version: %s" % VERSION) -@cli.command("wheel") -def make_wheel(): - """ - Build a Python wheel - """ - set_version(True) - try: - subprocess.check_call([ - "tox", "-e", "wheel", - ], env={ - **os.environ, - "VERSION": VERSION, - }) - finally: - set_version(False) - - @cli.command("build") def build(): """ |