1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Use last version of README.md for PyPI docs with pretty formatting

https://packaging.python.org/specifications/core-metadata/#description-content-type
https://pypi.org/project/pyTelegramBotAPI/
This commit is contained in:
Ramzan Bekbulatov 2018-08-06 13:54:46 +03:00 committed by GitHub
parent 41f7c07959
commit 4eae469528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,15 @@
from setuptools import setup from setuptools import setup
from io import open from io import open
def readme(): def read(filename):
with open('README.rst', encoding='utf-8') as f: with open(filename, encoding='utf-8') as file:
return f.read() return file.read()
setup(name='pyTelegramBotAPI', setup(name='pyTelegramBotAPI',
version='3.6.5', version='3.6.5',
description='Python Telegram bot api. ', description='Python Telegram bot api. ',
long_description=readme(), long_description=read('README.md'),
long_description_content_type="text/markdown",
author='eternnoir', author='eternnoir',
author_email='eternnoir@gmail.com', author_email='eternnoir@gmail.com',
url='https://github.com/eternnoir/pyTelegramBotAPI', url='https://github.com/eternnoir/pyTelegramBotAPI',