mirror of
https://github.com/TeamPGM/tgcrypto.git
synced 2024-11-21 23:18:02 +00:00
Fix PyPI's README
This commit is contained in:
parent
08a2c26236
commit
54e94b8fb3
5
setup.py
5
setup.py
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user