mirror of
https://github.com/TeamPGM/tgcrypto.git
synced 2024-11-21 23:18:02 +00:00
Update setup.py to use README.md instead of .rst
This commit is contained in:
parent
5c2c7f3b9c
commit
fa10b28948
11
setup.py
11
setup.py
@ -16,23 +16,20 @@
|
|||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from setuptools import setup, Extension, find_packages
|
from setuptools import setup, Extension, find_packages
|
||||||
|
|
||||||
# PyPI doesn't like raw html
|
with open("README.md", 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",
|
||||||
version="1.1.1",
|
version="1.1.1",
|
||||||
description="Fast Telegram Crypto Library for Python",
|
description="Fast Telegram Crypto Library for Python",
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
url="https://github.com/pyrogram",
|
url="https://github.com/pyrogram",
|
||||||
download_url="https://github.com/pyrogram/tgcrypto/releases/latest",
|
download_url="https://github.com/pyrogram/tgcrypto/releases/latest",
|
||||||
author="Dan Tès",
|
author="Dan",
|
||||||
author_email="admin@pyrogram.ml",
|
author_email="admin@pyrogram.ml",
|
||||||
license="LGPLv3+",
|
license="LGPLv3+",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
Loading…
Reference in New Issue
Block a user