mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
End the madness when bumping versions [ci skip]
This commit is contained in:
parent
f45ecee820
commit
d90b0f495d
2 changed files with 37 additions and 42 deletions
|
@ -15,6 +15,7 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import shlex
|
import shlex
|
||||||
|
import telegram
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
@ -58,9 +59,9 @@ author = u'Leandro Toledo'
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = '4.1'
|
version = telegram.__version__[:3]
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '4.1.2'
|
release = telegram.__version__
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
@ -270,7 +271,7 @@ man_pages = [
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
(master_doc, 'PythonTelegramBot', u'Python Telegram Bot Documentation',
|
(master_doc, 'PythonTelegramBot', u'Python Telegram Bot Documentation',
|
||||||
author, 'PythonTelegramBot', 'One line description of project.',
|
author, 'PythonTelegramBot', 'Not just a Python wrapper around the Telegram Bot API',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
72
setup.py
72
setup.py
|
@ -1,17 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
'''The setup and build script for the python-telegram-bot library.'''
|
"""The setup and build script for the python-telegram-bot library."""
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
|
import codecs
|
||||||
|
import telegram
|
||||||
from setuptools import setup, find_packages
|
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():
|
def requirements():
|
||||||
"""Build the requirements list for this project"""
|
"""Build the requirements list for this project"""
|
||||||
requirements_list = []
|
requirements_list = []
|
||||||
|
@ -22,33 +16,33 @@ def requirements():
|
||||||
|
|
||||||
return requirements_list
|
return requirements_list
|
||||||
|
|
||||||
|
with codecs.open('README.rst', 'r', 'utf-8') as fd:
|
||||||
setup(name='python-telegram-bot',
|
setup(name='python-telegram-bot',
|
||||||
version='4.1.2',
|
version=telegram.__version__,
|
||||||
author='Leandro Toledo',
|
author='Leandro Toledo',
|
||||||
author_email='devs@python-telegram-bot.org',
|
author_email='devs@python-telegram-bot.org',
|
||||||
license='LGPLv3',
|
license='LGPLv3',
|
||||||
url='https://github.com/python-telegram-bot/python-telegram-bot',
|
url='https://github.com/python-telegram-bot/python-telegram-bot',
|
||||||
keywords='python telegram bot api wrapper',
|
keywords='python telegram bot api wrapper',
|
||||||
description='A Python wrapper around the Telegram Bot API',
|
description='Not just a Python wrapper around the Telegram Bot API',
|
||||||
long_description=(read('README.rst')),
|
long_description=fd.read(),
|
||||||
packages=find_packages(exclude=['tests*']),
|
packages=find_packages(exclude=['tests*']),
|
||||||
install_requires=requirements(),
|
install_requires=requirements(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
'Topic :: Communications :: Chat',
|
'Topic :: Communications :: Chat',
|
||||||
'Topic :: Internet',
|
'Topic :: Internet',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 2',
|
'Programming Language :: Python :: 2',
|
||||||
'Programming Language :: Python :: 2.6',
|
'Programming Language :: Python :: 2.6',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.3',
|
'Programming Language :: Python :: 3.3',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
],)
|
],)
|
||||||
|
|
Loading…
Reference in a new issue