From f7622ebfca45abe7d8d34f2ee2070d6856e24646 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Tue, 7 Apr 2020 23:30:48 +0200 Subject: [PATCH] fix SVG images (#1409) --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 49199f0aaa..73e21805ef 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,10 @@ def load_long_describtion(): # https://github.com/PyTorchLightning/pytorch-lightning/raw/master/docs/source/_images/lightning_module/pt_to_pl.png url = os.path.join(pytorch_lightning.__homepage__, 'raw', pytorch_lightning.__version__, 'docs') text = open('README.md', encoding='utf-8').read() + # replace relative repository path to absolute link to the release text = text.replace('](docs', f']({url}') + # SVG images are not readable on PyPI, so replace them with PNG + text = text.replace('.svg', '.svg') return text