diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-11-20 11:32:30 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-11-20 11:32:30 -0500 |
commit | a4e538452ced8db9b1bcd592ba83f2ddd60afe82 (patch) | |
tree | 9bf8676f1a42806b83bbbaf27be232cab4acd663 | |
parent | 1cd6c9bba0b4ba3018bf1b28fee645a7dd98fe68 (diff) | |
download | python-coveragepy-git-a4e538452ced8db9b1bcd592ba83f2ddd60afe82.tar.gz |
build: cheats for commit-specific installs
-rw-r--r-- | igor.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -393,6 +393,7 @@ def get_release_facts(): facts.next_vi = (facts.vi[0], facts.vi[1], facts.vi[2]+1, "alpha", 0) facts.now = datetime.datetime.now() facts.branch = subprocess.getoutput("git rev-parse --abbrev-ref @") + facts.sha = subprocess.getoutput("git rev-parse @") return facts @@ -466,7 +467,12 @@ def do_cheats(): print() print(f"Coverage version is {facts.ver}") - print(f"pip install git+https://github.com/nedbat/coveragepy@{facts.branch}") + egg = "egg=coverage==0.0" # to force a re-install + if facts.branch == "master": + print(f"pip install git+https://github.com/nedbat/coveragepy#{egg}") + else: + print(f"pip install git+https://github.com/nedbat/coveragepy@{facts.branch}#{egg}") + print(f"pip install git+https://github.com/nedbat/coveragepy@{facts.sha}#{egg}") print(f"https://coverage.readthedocs.io/en/{facts.ver}/changes.html#changes-{facts.anchor}") print( |