mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
Update setup.py
This commit is contained in:
parent
3c2a37542b
commit
7e53111773
1 changed files with 32 additions and 3 deletions
35
setup.py
Normal file → Executable file
35
setup.py
Normal file → Executable file
|
|
@ -1,15 +1,44 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import string
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
from setuptools import PackageFinder
|
from setuptools import PackageFinder
|
||||||
|
|
||||||
from aiogram import __version__ as version
|
from aiogram import __version__ as version
|
||||||
|
|
||||||
|
ALLOWED_SYMBOLS = string.ascii_letters + string.digits + '_-'
|
||||||
|
|
||||||
|
|
||||||
def get_description():
|
def get_description():
|
||||||
|
"""
|
||||||
|
Read full description from 'README.rst'
|
||||||
|
|
||||||
|
:return: description
|
||||||
|
:rtype: str
|
||||||
|
"""
|
||||||
with open('README.rst', encoding='utf-8') as f:
|
with open('README.rst', encoding='utf-8') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='aiogram',
|
name='aiogram',
|
||||||
version=version,
|
version=version,
|
||||||
|
|
@ -18,15 +47,15 @@ setup(
|
||||||
license='MIT',
|
license='MIT',
|
||||||
author='Alex Root Junior',
|
author='Alex Root Junior',
|
||||||
author_email='jroot.junior@gmail.com',
|
author_email='jroot.junior@gmail.com',
|
||||||
description='Telegram bot API framework based on asyncio',
|
description='Is are pretty simple and fully asynchronously library for Telegram Bot API',
|
||||||
long_description=get_description(),
|
long_description=get_description(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Framework :: AsyncIO',
|
'Framework :: AsyncIO',
|
||||||
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
],
|
],
|
||||||
install_requires=['aiohttp']
|
install_requires=get_requirements()
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue