diff --git a/poetry.lock b/poetry.lock index 073e387..43cb339 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "aio-pika" @@ -1614,4 +1614,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.8.1" -content-hash = "0b0a5f744ac36f28183c85b590551a1256700f2f689958e9abc1547cbb27833b" +content-hash = "7cb5e09a26034c045229a87da96c10dee492f19fabba4029d77ebc538020bf5b" diff --git a/pyproject.toml b/pyproject.toml index a80e600..c9137b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,6 @@ keywords = ["taskiq", "tasks", "distributed", "async", "aio-pika"] python = "^3.8.1" taskiq = ">=0.6.0,<1" aio-pika = "^9.0" -importlib-metadata = {version = "^4.0.0", python = "<3.8"} [tool.poetry.dev-dependencies] pytest = "^7.0" diff --git a/taskiq_aio_pika/__init__.py b/taskiq_aio_pika/__init__.py index 9f5b8dc..4b40666 100644 --- a/taskiq_aio_pika/__init__.py +++ b/taskiq_aio_pika/__init__.py @@ -1,12 +1,7 @@ """Taskiq integration with aio-pika.""" -from taskiq_aio_pika.broker import AioPikaBroker +from importlib.metadata import version -try: - # Python 3.8+ - from importlib.metadata import version # noqa: WPS433 -except ImportError: - # Python 3.7 - from importlib_metadata import version # noqa: WPS433, WPS440 +from taskiq_aio_pika.broker import AioPikaBroker __version__ = version("taskiq-aio-pika")