mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-01 20:50:38 +01:00
57 lines
1.8 KiB
Python
57 lines
1.8 KiB
Python
#!/usr/bin/env python
|
|
|
|
'''The setup and build script for the python-telegram-bot library.'''
|
|
|
|
import os
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
def read(*paths):
|
|
"""Build a file path from *paths* and return the contents."""
|
|
with open(os.path.join(*paths), 'r') as f:
|
|
return f.read()
|
|
|
|
|
|
def requirements():
|
|
"""Build the requirements list for this project"""
|
|
requirements_list = []
|
|
|
|
with open('requirements.txt') as requirements:
|
|
for install in requirements:
|
|
requirements_list.append(install.strip())
|
|
|
|
return requirements_list
|
|
|
|
|
|
setup(
|
|
name='python-telegram-bot',
|
|
version='3.1.2',
|
|
author='Leandro Toledo',
|
|
author_email='devs@python-telegram-bot.org',
|
|
license='LGPLv3',
|
|
url='https://github.com/python-telegram-bot/python-telegram-bot',
|
|
keywords='python telegram bot api wrapper',
|
|
description='A Python wrapper around the Telegram Bot API',
|
|
long_description=(read('README.rst')),
|
|
packages=find_packages(exclude=['tests*']),
|
|
install_requires=requirements(),
|
|
include_package_data=True,
|
|
classifiers=[
|
|
'Development Status :: 5 - Production/Stable',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
|
'Operating System :: OS Independent',
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
'Topic :: Communications :: Chat',
|
|
'Topic :: Internet',
|
|
'Programming Language :: Python',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.2',
|
|
'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
],
|
|
)
|