mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-15 20:02:22 +00:00
Update setup.py. Remove versions util.
This commit is contained in:
parent
80d2b24d7e
commit
dccaae4e9c
5 changed files with 36 additions and 176 deletions
|
|
@ -1,27 +1,13 @@
|
|||
import warnings
|
||||
import asyncio
|
||||
|
||||
try:
|
||||
from .bot import Bot
|
||||
except ImportError as e:
|
||||
if e.name == 'aiohttp':
|
||||
warnings.warn('Dependencies are not installed!',
|
||||
category=ImportWarning)
|
||||
else:
|
||||
raise
|
||||
|
||||
from .utils.versions import Stage, Version
|
||||
from .bot import Bot
|
||||
|
||||
try:
|
||||
import uvloop
|
||||
except ImportError:
|
||||
pass
|
||||
uvloop = None
|
||||
else:
|
||||
import asyncio
|
||||
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
VERSION = Version(1, 3, 1, stage=Stage.DEV, build=0)
|
||||
API_VERSION = Version(3, 6)
|
||||
|
||||
__version__ = VERSION.version
|
||||
__api_version__ = API_VERSION.version
|
||||
__version__ = '1.3.1.dev1'
|
||||
__api_version__ = '3.6'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue