File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,9 @@ def do_cheats():
408
408
print ()
409
409
print (f"Coverage version is { facts .ver } " )
410
410
411
+ repo = "nedbat/coveragepy"
412
+ github = f"https://github.com/{ repo } "
411
413
egg = "egg=coverage==0.0" # to force a re-install
412
- if facts .branch == "master" :
413
- print (f"pip install git+https://github.com/nedbat/coveragepy#{ egg } " )
414
- else :
415
- print (f"pip install git+https://github.com/nedbat/coveragepy@{ facts .branch } #{ egg } " )
416
- print (f"pip install git+https://github.com/nedbat/coveragepy@{ facts .sha } #{ egg } " )
417
414
print (f"https://coverage.readthedocs.io/en/{ facts .ver } /changes.html#changes-{ facts .anchor } " )
418
415
419
416
print (
@@ -422,6 +419,20 @@ def do_cheats():
422
419
f"[coverage { facts .ver } ](https://pypi.org/project/coverage/{ facts .ver } )."
423
420
)
424
421
422
+ print ("\n ## To run this code:" )
423
+ if facts .branch == "master" :
424
+ print (f"pip install git+{ github } #{ egg } " )
425
+ else :
426
+ print (f"pip install git+{ github } @{ facts .branch } #{ egg } " )
427
+ print (f"pip install git+{ github } @{ facts .sha } #{ egg } " )
428
+
429
+ print (
430
+ "\n ## For other collaborators:\n " +
431
+ f"git clone { github } \n " +
432
+ f"cd { repo .partition ('/' )[- 1 ]} \n " +
433
+ f"git checkout { facts .sha } "
434
+ )
435
+
425
436
426
437
def do_help ():
427
438
"""List the available commands"""
You can’t perform that action at this time.
0 commit comments