11#!/usr/bin/env python
2- '''The setup and build script for the python-telegram-bot library.'''
3-
4- import os
2+ """The setup and build script for the python-telegram-bot library."""
53
4+ import codecs
5+ import telegram
66from setuptools import setup , find_packages
77
88
9- def read (* paths ):
10- """Build a file path from *paths* and return the contents."""
11- with open (os .path .join (* paths ), 'r' ) as f :
12- return f .read ()
13-
14-
159def requirements ():
1610 """Build the requirements list for this project"""
1711 requirements_list = []
@@ -22,33 +16,33 @@ def requirements():
2216
2317 return requirements_list
2418
25-
26- setup (name = 'python-telegram-bot' ,
27- version = '4.1.2' ,
28- author = 'Leandro Toledo' ,
29- author_email = 'devs@python-telegram-bot.org' ,
30- license = 'LGPLv3' ,
31- url = 'https://github.com/python-telegram-bot/python-telegram-bot' ,
32- keywords = 'python telegram bot api wrapper' ,
33- description = 'A Python wrapper around the Telegram Bot API' ,
34- long_description = ( read ('README.rst' ) ),
35- packages = find_packages (exclude = ['tests*' ]),
36- install_requires = requirements (),
37- include_package_data = True ,
38- classifiers = [
39- 'Development Status :: 5 - Production/Stable' ,
40- 'Intended Audience :: Developers' ,
41- 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)' ,
42- 'Operating System :: OS Independent' ,
43- 'Topic :: Software Development :: Libraries :: Python Modules' ,
44- 'Topic :: Communications :: Chat' ,
45- 'Topic :: Internet' ,
46- 'Programming Language :: Python' ,
47- 'Programming Language :: Python :: 2' ,
48- 'Programming Language :: Python :: 2.6' ,
49- 'Programming Language :: Python :: 2.7' ,
50- 'Programming Language :: Python :: 3' ,
51- 'Programming Language :: Python :: 3.3' ,
52- 'Programming Language :: Python :: 3.4' ,
53- 'Programming Language :: Python :: 3.5' ,
54- ],)
19+ with codecs . open ( 'README.rst' , 'r' , 'utf-8' ) as fd :
20+ setup (name = 'python-telegram-bot' ,
21+ version = telegram . __version__ ,
22+ author = 'Leandro Toledo' ,
23+ author_email = 'devs@python-telegram-bot.org' ,
24+ license = 'LGPLv3' ,
25+ url = 'https://github.com/python-telegram-bot/python-telegram-bot' ,
26+ keywords = 'python telegram bot api wrapper' ,
27+ description = 'Not just a Python wrapper around the Telegram Bot API' ,
28+ long_description = fd . read (),
29+ packages = find_packages (exclude = ['tests*' ]),
30+ install_requires = requirements (),
31+ include_package_data = True ,
32+ classifiers = [
33+ 'Development Status :: 5 - Production/Stable' ,
34+ 'Intended Audience :: Developers' ,
35+ 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)' ,
36+ 'Operating System :: OS Independent' ,
37+ 'Topic :: Software Development :: Libraries :: Python Modules' ,
38+ 'Topic :: Communications :: Chat' ,
39+ 'Topic :: Internet' ,
40+ 'Programming Language :: Python' ,
41+ 'Programming Language :: Python :: 2' ,
42+ 'Programming Language :: Python :: 2.6' ,
43+ 'Programming Language :: Python :: 2.7' ,
44+ 'Programming Language :: Python :: 3' ,
45+ 'Programming Language :: Python :: 3.3' ,
46+ 'Programming Language :: Python :: 3.4' ,
47+ 'Programming Language :: Python :: 3.5' ,
48+ ],)
0 commit comments