summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-11-20 11:32:30 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-11-20 11:32:30 -0500
commita4e538452ced8db9b1bcd592ba83f2ddd60afe82 (patch)
tree9bf8676f1a42806b83bbbaf27be232cab4acd663
parent1cd6c9bba0b4ba3018bf1b28fee645a7dd98fe68 (diff)
downloadpython-coveragepy-git-a4e538452ced8db9b1bcd592ba83f2ddd60afe82.tar.gz
build: cheats for commit-specific installs
-rw-r--r--igor.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index 510d6adf..40fc94b8 100644
--- a/igor.py
+++ b/igor.py
@@ -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(