mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 12:07:13 +00:00
Make speedups extras [fast] will install uvloop
This commit is contained in:
parent
a1d74a91b7
commit
71def6449f
3 changed files with 17 additions and 3 deletions
|
|
@ -2,7 +2,14 @@ from .api import methods, types
|
||||||
from .api.client import session
|
from .api.client import session
|
||||||
from .api.client.bot import Bot
|
from .api.client.bot import Bot
|
||||||
|
|
||||||
|
try:
|
||||||
|
import uvloop
|
||||||
|
|
||||||
|
uvloop.install()
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
__all__ = ["__api_version__", "__version__", "types", "methods", "Bot", "session"]
|
__all__ = ["__api_version__", "__version__", "types", "methods", "Bot", "session"]
|
||||||
|
|
||||||
__version__ = "3.0dev.1"
|
__version__ = "3.0.0a0"
|
||||||
__api_version__ = "4.4"
|
__api_version__ = "4.4"
|
||||||
|
|
|
||||||
7
poetry.lock
generated
7
poetry.lock
generated
|
|
@ -735,7 +735,7 @@ python-versions = "*"
|
||||||
version = "3.7.4.1"
|
version = "3.7.4.1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
category = "dev"
|
category = "main"
|
||||||
description = "Fast implementation of asyncio event loop on top of libuv"
|
description = "Fast implementation of asyncio event loop on top of libuv"
|
||||||
name = "uvloop"
|
name = "uvloop"
|
||||||
optional = false
|
optional = false
|
||||||
|
|
@ -774,8 +774,11 @@ version = "0.6.0"
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
more-itertools = "*"
|
more-itertools = "*"
|
||||||
|
|
||||||
|
[extras]
|
||||||
|
fast = ["uvloop"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
content-hash = "3e7b243bc6ecd7c8bbbcb19eed15f1809d8e6852e5eb265f599cdb0a003e92eb"
|
content-hash = "17ddf5163aca6e27a1a83c6f23cfde2f807a3e97ca366fe081666503f2a7b992"
|
||||||
python-versions = "^3.7"
|
python-versions = "^3.7"
|
||||||
|
|
||||||
[metadata.hashes]
|
[metadata.hashes]
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ aiohttp = "^3.6"
|
||||||
pydantic = "^1.1"
|
pydantic = "^1.1"
|
||||||
Babel = "^2.7"
|
Babel = "^2.7"
|
||||||
aiofiles = "^0.4.0"
|
aiofiles = "^0.4.0"
|
||||||
|
uvloop = {version = "^0.14.0", optional = true}
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
uvloop = "^0.14.0"
|
uvloop = "^0.14.0"
|
||||||
|
|
@ -50,6 +51,9 @@ pymdown-extensions = "^6.1"
|
||||||
lxml = "^4.4"
|
lxml = "^4.4"
|
||||||
ipython = "^7.9"
|
ipython = "^7.9"
|
||||||
|
|
||||||
|
[tool.poetry.extras]
|
||||||
|
fast = ["uvloop"]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 99
|
line-length = 99
|
||||||
target-version = ['py37', 'py38']
|
target-version = ['py37', 'py38']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue