Skip to content

Commit df1b74d

Browse files
committed
Updated structure. Fixed deps.
Signed-off-by: Pavel Kirilin <[email protected]>
1 parent 4dab5c5 commit df1b74d

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
[tool.poetry]
22
name = "taskiq-redis"
33
version = "0.1.0"
4-
description = ""
5-
authors = ["taskiq-team"]
4+
description = "Redis integration for taskiq"
5+
authors = ["taskiq-team <[email protected]>"]
66
packages = [{ include = "taskiq", from = "taskiq_redis" }]
77

88
[tool.poetry.dependencies]
99
python = "^3.7"
1010
taskiq = { git = "https://github.com/taskiq-python/taskiq", branch = "master" }
1111
redis = "4.3.4"
12-
flake8 = "^4.0.1"
1312

1413
[tool.poetry.dev-dependencies]
1514
pytest = "^7.0"
@@ -37,9 +36,7 @@ allow_untyped_decorators = true
3736
warn_return_any = false
3837

3938
[[tool.mypy.overrides]]
40-
module = [
41-
'redis.asyncio'
42-
]
39+
module = ['redis.asyncio']
4340
ignore_missing_imports = true
4441

4542
[tool.isort]

taskiq/result_backends/redis/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

taskiq_redis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Package for redis integration."""
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Redis AsyncResultBackend."""
2+
from taskiq_redis.taskiq.result_backends.redis.redis_backend import (
3+
RedisAsyncResultBackend,
4+
)
5+
6+
__all__ = ["RedisAsyncResultBackend"]

taskiq/result_backends/redis/redis_backend.py renamed to taskiq_redis/taskiq/result_backends/redis/redis_backend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
from typing import TypeVar
33

44
from redis.asyncio import ConnectionPool, Redis
5-
from taskiq.abc.result_backend import TaskiqResult
6-
75
from taskiq import AsyncResultBackend
6+
from taskiq.abc.result_backend import TaskiqResult
87

98
_ReturnType = TypeVar("_ReturnType")
109

0 commit comments

Comments
 (0)