pyTelegramBotAPI/setup.py

46 lines
1.5 KiB
Python
Raw Normal View History

2015-06-26 17:44:15 +03:00
#!/usr/bin/env python
from setuptools import setup, find_packages
2016-04-22 20:24:50 +03:00
from io import open
2020-08-21 11:09:43 +03:00
import re
2015-06-26 17:44:15 +03:00
def read(filename):
with open(filename, encoding='utf-8') as file:
return file.read()
2020-08-21 11:09:43 +03:00
with open('telebot/version.py', 'r', encoding='utf-8') as f: # Credits: LonamiWebs
version = re.search(r"^__version__\s*=\s*'(.*)'.*$",
f.read(), flags=re.MULTILINE).group(1)
2015-06-26 17:44:15 +03:00
setup(name='pyTelegramBotAPI',
2020-08-21 11:09:43 +03:00
version=version,
2015-06-26 17:44:15 +03:00
description='Python Telegram bot api. ',
long_description=read('README.md'),
long_description_content_type="text/markdown",
2015-06-26 17:44:15 +03:00
author='eternnoir',
author_email='eternnoir@gmail.com',
url='https://github.com/eternnoir/pyTelegramBotAPI',
packages = find_packages(exclude = ['tests', 'examples']),
2015-06-26 17:44:15 +03:00
license='GPL2',
keywords='telegram bot api tools',
install_requires=['requests'],
2016-09-12 11:38:54 +03:00
extras_require={
'json': 'ujson',
2021-08-18 22:16:30 +03:00
'PIL': 'Pillow',
2022-04-23 16:33:59 +03:00
'redis': 'redis>=3.4.1',
'aioredis': 'aioredis',
2022-04-23 16:33:59 +03:00
'aiohttp': 'aiohttp',
'fastapi': 'fastapi',
'uvicorn': 'uvicorn',
2022-09-16 21:39:40 +03:00
'psutil': 'psutil',
'coloredlogs': 'coloredlogs',
'watchdog': 'watchdog'
2016-09-12 11:38:54 +03:00
},
2015-06-26 18:10:46 +03:00
classifiers=[
'Development Status :: 5 - Production/Stable',
2015-07-02 06:51:50 +03:00
'Programming Language :: Python :: 3',
2015-06-26 18:10:46 +03:00
'Environment :: Console',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
],
2015-06-26 18:10:46 +03:00
)