Skip to content

Commit

Permalink
Merge pull request #27 from dimastbk/remove-importlib-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius authored Jan 31, 2024
2 parents 8b9466b + 97b802b commit 9e3c689
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 2 additions & 7 deletions taskiq_aio_pika/__init__.py
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit 9e3c689

Please sign in to comment.