Fix PyPI's README

This commit is contained in:
Dan 2018-02-19 14:48:40 +01:00
parent 08a2c26236
commit 54e94b8fb3

View File

@ -17,9 +17,12 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup, Extension, find_packages from setuptools import setup, Extension, find_packages
import re
# PyPI doesn't like raw html
with open("README.rst", encoding="utf-8") as f: with open("README.rst", encoding="utf-8") as f:
readme = f.read() readme = re.sub(r"\.\. \|.+\| raw:: html(?:\s{4}.+)+\n\n", "", f.read())
readme = re.sub(r"\|header\|", "|logo|\n\n|description|", readme)
setup( setup(
name="TgCrypto", name="TgCrypto",