Skip to content

Commit

Permalink
fix GH release badges (#5040)
Browse files Browse the repository at this point in the history
* fix GH release badges

* rtd
  • Loading branch information
Borda committed Dec 9, 2020
1 parent ef8ef12 commit cff2489
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/setup_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ def _load_long_description(path_dir: str) -> str:

# readthedocs badge
text = text.replace('badge/?version=stable', f'badge/?version={__version__}')
text = text.replace('pytorch-lightning.readthedocs.io/en/stable/', f'pytorch-lightning.readthedocs.io/en/{__version__}')
# codecov badge
text = text.replace('/branch/master/graph/badge.svg', f'/release/{__version__}/graph/badge.svg')
# replace github badges for release ones
text = text.replace('badge.svg?branch=master&event=push', f'badge.svg?branch={__version__}&event=release')
text = text.replace('badge.svg?branch=master&event=push', f'badge.svg?tag={__version__}')

# # https://github.com/Borda/pytorch-lightning/releases/download/1.1.0a6/codecov_badge.png
# github_release_url = os.path.join(__homepage__, "releases", "download", __version__)
Expand Down

0 comments on commit cff2489

Please sign in to comment.