mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Fix PyPI readme render
This commit is contained in:
4
setup.py
4
setup.py
@@ -39,10 +39,10 @@ def get_version():
|
||||
|
||||
|
||||
def get_readme():
|
||||
# PyPI doesn"t like raw html
|
||||
# PyPI doesn't like raw html
|
||||
with open("README.rst", encoding="utf-8") as f:
|
||||
readme = re.sub(r"\.\. \|.+\| raw:: html(?:\s{4}.+)+\n\n", "", f.read())
|
||||
return re.sub(r"\|header\|", "|logo|\n\n|description|\n\n|scheme| |tgcrypto|", readme)
|
||||
return re.sub(r"\|header\|", "|logo|\n\n|description|\n\n|schema| |tgcrypto|", readme)
|
||||
|
||||
|
||||
class Clean(Command):
|
||||
|
Reference in New Issue
Block a user