Skip to content

Commit 821fc81

Browse files
committed
remove uvloop package
Uvloop has a bug that is preventing from updating the libraries so it's being deactivated for now. MagicStack/uvloop#646
1 parent 73afa58 commit 821fc81

File tree

5 files changed

+16
-86
lines changed

5 files changed

+16
-86
lines changed

poetry.lock

Lines changed: 14 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pytz = "*"
2424
pyyaml = "^6.0.2"
2525
sqlalchemy = "^2.0.36"
2626
tabulate = "^0.9.0"
27-
uvloop = "^0.21.0"
2827

2928
[tool.poetry.group.dev.dependencies]
3029
isort = "*"

src/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Still missing tests for main.py, so it's been ignored in the .coveragerc file
22

3+
import asyncio
34
import logging
45
import sys
56

6-
import uvloop
7-
87
import components.controller as controller
98
import components.executor as executor
109
import components.http_server as http_server
@@ -81,4 +80,4 @@ async def main() -> None:
8180

8281

8382
if __name__ == "__main__":
84-
uvloop.run(main())
83+
asyncio.run(main())

tests/conftest.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import alembic.config
1212
import pytest
1313
import pytest_asyncio
14-
import uvloop
1514
from _pytest.monkeypatch import MonkeyPatch
1615

1716
import components.monitors_loader.monitors_loader as monitors_loader
@@ -26,12 +25,6 @@
2625
from tests.message_queue.utils import get_queue_items
2726

2827

29-
@pytest.fixture(scope="session")
30-
def event_loop_policy():
31-
"""Set the event loop policy to uvloop's policy"""
32-
return uvloop.EventLoopPolicy()
33-
34-
3528
@pytest.fixture(scope="module")
3629
def monkeypatch_module():
3730
"""Monkeypatch objet to be used in "module" scoped fixture"""

tests/test_uvloop.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)