From 54e94b8fb396324c47bc253b9f4e5dbe41b36769 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 19 Feb 2018 14:48:40 +0100 Subject: [PATCH] Fix PyPI's README --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9606551..a01687a 100644 --- a/setup.py +++ b/setup.py @@ -17,9 +17,12 @@ # along with Pyrogram. If not, see . from setuptools import setup, Extension, find_packages +import re +# PyPI doesn't like raw html 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( name="TgCrypto",