Skip to content

Commit

Permalink
Fix PyPI's README
Browse files Browse the repository at this point in the history
  • Loading branch information
delivrance committed Feb 19, 2018
1 parent 08a2c26 commit 54e94b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

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",
Expand Down

0 comments on commit 54e94b8

Please sign in to comment.