mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Fix images for pypi guide (#1560)
* fix images for pypi * reverted changes to readme * remove print * fix
This commit is contained in:
parent
04a0764394
commit
d455baca4e
5
setup.py
5
setup.py
@ -3,11 +3,14 @@ try:
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
this_directory = Path(__file__).parent
|
||||
long_description = (this_directory / "README.md").read_text(encoding='utf8')
|
||||
|
||||
print(long_description)
|
||||
# Replace relative paths to images with absolute paths
|
||||
long_description = re.sub("website/homepage/", "https://raw.githubusercontent.com/gradio-app/gradio/main/website/homepage/", long_description)
|
||||
long_description = re.sub(r"demo/([\S]*.gif)", r"https://raw.githubusercontent.com/gradio-app/gradio/main/demo/\g<1>", long_description)
|
||||
|
||||
setup(
|
||||
name="gradio",
|
||||
|
Loading…
Reference in New Issue
Block a user