Skip to content

Commit 1ef020d

Browse files
committed
build: more cheats for convenient URLs
1 parent 3d57a07 commit 1ef020d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

igor.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,19 @@ def do_cheats():
454454
+ f"[coverage {facts.ver}](https://pypi.org/project/coverage/{facts.ver}).",
455455
)
456456

457-
print("\n## To run this code:")
457+
print("\n## To install this code:")
458458
if facts.branch == "master":
459459
print(f"python3 -m pip install git+{github}#{egg}")
460460
else:
461461
print(f"python3 -m pip install git+{github}@{facts.branch}#{egg}")
462462
print(f"python3 -m pip install git+{github}@{facts.sha[:20]}#{egg}")
463463

464+
print("\n## To read this code on GitHub:")
465+
print(f"https://github.com/nedbat/coveragepy/commit/{facts.sha}")
466+
print(f"https://github.com/nedbat/coveragepy/commits/{facts.sha}")
467+
464468
print(
465-
"\n## For other collaborators:\n"
469+
"\n## For other collaborators to get this code:\n"
466470
+ f"git clone {github}\n"
467471
+ f"cd {repo.partition('/')[-1]}\n"
468472
+ f"git checkout {facts.sha}",

0 commit comments

Comments
 (0)