2015-06-26 17:44:15 +03:00
|
|
|
#!/usr/bin/env python
|
2022-02-01 00:53:31 +03:00
|
|
|
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
|
|
|
|
2018-08-06 13:54:46 +03:00
|
|
|
def read(filename):
|
|
|
|
with open(filename, encoding='utf-8') as file:
|
|
|
|
return file.read()
|
2015-08-21 18:58:55 +03:00
|
|
|
|
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. ',
|
2018-08-06 13:54:46 +03:00
|
|
|
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',
|
2022-02-01 00:58:52 +03:00
|
|
|
packages = find_packages(exclude = ['tests', 'examples']),
|
2015-06-26 17:44:15 +03:00
|
|
|
license='GPL2',
|
2015-08-19 13:36:10 +03:00
|
|
|
keywords='telegram bot api tools',
|
2020-08-24 16:02:35 +03:00
|
|
|
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',
|
2020-04-12 20:41:32 +03:00
|
|
|
'redis': 'redis>=3.4.1'
|
2016-09-12 11:38:54 +03:00
|
|
|
},
|
2015-06-26 18:10:46 +03:00
|
|
|
classifiers=[
|
2015-08-14 10:39:37 +03:00
|
|
|
'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)',
|
2022-02-01 00:53:31 +03:00
|
|
|
],
|
|
|
|
|
2015-06-26 18:10:46 +03:00
|
|
|
)
|