Skip to content

Commit

Permalink
option --aiomisc not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Feb 15, 2023
1 parent 69874d1 commit ccbc800
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
7 changes: 7 additions & 0 deletions aiomisc/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ def time_ns() -> int:
return int(time() * 1000000000)


try:
from typing import final
except ImportError:
from typing_extensions import final # type: ignore


class EventLoopMixin:
__slots__ = "_loop",

Expand Down Expand Up @@ -91,4 +97,5 @@ def set(self, value: T) -> None:
"sock_set_nodelay",
"sock_set_reuseport",
"time_ns",
"final",
)
3 changes: 1 addition & 2 deletions aiomisc/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
from concurrent.futures import Executor
from typing import (
Any, Callable, Coroutine, Iterable, MutableSet, Optional, TypeVar, Union,
final,
)
from weakref import WeakSet

import aiomisc_log
from aiomisc_log import LogLevel

from .compat import StrictContextVar, event_loop_policy, set_current_loop
from .compat import StrictContextVar, event_loop_policy, final, set_current_loop
from .context import Context, get_context
from .log import LogFormat, basic_config
from .service import Service
Expand Down
2 changes: 0 additions & 2 deletions examples/rpc/pytest.ini

This file was deleted.

2 changes: 0 additions & 2 deletions examples/rpc_udp/pytest.ini

This file was deleted.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ packages = [

[tool.poetry.dependencies]
python = "^3.7"
colorlog = "^6.0"
aiocarbon = { version = "^0.15", optional = true }
aiohttp = { version = ">3", optional = true }
aiohttp-asgi = { version = "^0.4.3", optional = true }
colorlog = "^6.0"
croniter = { version = "^1.3.8", optional = true }
logging-journald = [{ version = '*', platform = 'linux' }]
raven = { version = "*", optional = true }
rich = { version = "*", optional = true }
typing_extensions = [{ version = '*', python = "< 3.8" }]
uvloop = { version = ">=0.14, <1", optional = true }

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit ccbc800

Please sign in to comment.