aiogram/setup.py

62 lines
1.6 KiB
Python
Raw Normal View History

2017-09-12 00:29:04 +03:00
#!/usr/bin/env python3
import string
2017-05-19 19:11:42 +03:00
from distutils.core import setup
from setuptools import PackageFinder
from aiogram import VERSION
2017-05-19 19:11:42 +03:00
2017-09-12 00:29:04 +03:00
ALLOWED_SYMBOLS = string.ascii_letters + string.digits + '_-'
2017-05-19 19:11:42 +03:00
def get_description():
2017-09-12 00:29:04 +03:00
"""
Read full description from 'README.rst'
:return: description
:rtype: str
"""
2017-05-19 19:11:42 +03:00
with open('README.rst', encoding='utf-8') as f:
return f.read()
2017-09-12 00:29:04 +03:00
def get_requirements():
"""
Read requirements from 'requirements txt'
:return: requirements
:rtype: list
"""
requirements = []
with open('requirements.txt', 'r') as file:
for line in file.readlines():
line = line.strip()
if not line or line.startswith('#'):
continue
requirements.append(line)
return requirements
2017-05-19 19:11:42 +03:00
setup(
name='aiogram',
version=VERSION.version,
packages=PackageFinder.find(exclude=('tests', 'examples', 'docs',)),
2017-05-19 19:11:42 +03:00
url='https://bitbucket.org/illemius/aiogram',
license='MIT',
author='Alex Root Junior',
author_email='jroot.junior@gmail.com',
2017-09-12 00:29:04 +03:00
description='Is are pretty simple and fully asynchronously library for Telegram Bot API',
2017-05-19 19:11:42 +03:00
long_description=get_description(),
classifiers=[
VERSION.pypi_development_status, # Automated change classifier by build stage
2017-05-19 19:11:42 +03:00
'Programming Language :: Python :: 3.6',
'Environment :: Console',
'Framework :: AsyncIO',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'License :: OSI Approved :: MIT License',
],
2017-09-12 00:29:04 +03:00
install_requires=get_requirements()
2017-05-19 19:11:42 +03:00
)