Fix logo not showing up on PyPI website

This commit is contained in:
Dan 2017-12-14 00:13:51 +01:00
parent af0c05ae3e
commit a7970cedf5

View File

@ -31,6 +31,6 @@ if len(argv) > 1 and argv[1] != "sdist":
# 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())
readme = re.sub(r"\|header\|", "|logo|\n######\n\n|description|\n\n|scheme| |mtproto|", readme)
readme = re.sub(r"\|header\|", "|logo|\n\n|description|\n\n|scheme| |mtproto|", readme)
setup(long_description=readme)