mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update setup script and requirements list.
This commit is contained in:
parent
47a865aa5f
commit
e0e058e943
3 changed files with 26 additions and 31 deletions
|
|
@ -1,8 +1,10 @@
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
ujson
|
|
||||||
emoji
|
ujson>=1.35
|
||||||
pytest
|
emoji>=0.4.5
|
||||||
pytest-asyncio
|
pytest>=3.3.0
|
||||||
uvloop
|
pytest-asyncio>=0.8.0
|
||||||
aioredis
|
uvloop>=0.9.1
|
||||||
rethinkdb
|
aioredis>=1.0.0
|
||||||
|
wheel>=0.30.0
|
||||||
|
rethinkdb>=2.3.0
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,2 @@
|
||||||
aiohttp>=2.1.0
|
aiohttp>=2.3.5
|
||||||
appdirs>=1.4.3
|
Babel>=2.5.1
|
||||||
async-timeout>=1.2.1
|
|
||||||
Babel>=2.4.0
|
|
||||||
chardet>=3.0.3
|
|
||||||
multidict>=2.1.6
|
|
||||||
packaging>=16.8
|
|
||||||
pyparsing>=2.2.0
|
|
||||||
pytz>=2017.2
|
|
||||||
six>=1.10.0
|
|
||||||
yarl>=0.10.2
|
|
||||||
|
|
|
||||||
28
setup.py
28
setup.py
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
|
||||||
|
from pip.req import parse_requirements
|
||||||
from setuptools import PackageFinder
|
from setuptools import PackageFinder
|
||||||
|
|
||||||
from aiogram import VERSION
|
from aiogram import Stage, VERSION
|
||||||
|
|
||||||
|
|
||||||
def get_description():
|
def get_description():
|
||||||
|
|
@ -14,7 +15,7 @@ def get_description():
|
||||||
:return: description
|
:return: description
|
||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
with open('README.rst', encoding='utf-8') as f:
|
with open('README.rst', 'r', encoding='utf-8') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -25,17 +26,16 @@ def get_requirements():
|
||||||
:return: requirements
|
:return: requirements
|
||||||
:rtype: list
|
:rtype: list
|
||||||
"""
|
"""
|
||||||
requirements = []
|
filename = 'requirements.txt'
|
||||||
with open('requirements.txt', 'r') as file:
|
if VERSION.stage == Stage.DEV:
|
||||||
for line in file.readlines():
|
filename = 'dev_' + filename
|
||||||
line = line.strip()
|
|
||||||
if not line or line.startswith('#'):
|
|
||||||
continue
|
|
||||||
requirements.append(line)
|
|
||||||
|
|
||||||
return requirements
|
install_reqs = parse_requirements(filename, session='hack')
|
||||||
|
return [str(ir.req) for ir in install_reqs]
|
||||||
|
|
||||||
|
|
||||||
|
install_requires = get_requirements()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='aiogram',
|
name='aiogram',
|
||||||
version=VERSION.version,
|
version=VERSION.version,
|
||||||
|
|
@ -48,11 +48,13 @@ setup(
|
||||||
long_description=get_description(),
|
long_description=get_description(),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
VERSION.pypi_development_status, # Automated change classifier by build stage
|
VERSION.pypi_development_status, # Automated change classifier by build stage
|
||||||
'Programming Language :: Python :: 3.6',
|
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Framework :: AsyncIO',
|
'Framework :: AsyncIO',
|
||||||
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
'Intended Audience :: Developers',
|
||||||
|
'Intended Audience :: System Administrators',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Topic :: Software Development :: Libraries :: Application Frameworks',
|
||||||
],
|
],
|
||||||
install_requires=get_requirements()
|
install_requires=install_requires
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue