Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
fail-fast: false

steps:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

The current package is just a wrapper for [**FastStream**](https://faststream.airt.ai/0.2/?utm_source=github&utm_medium=acquisition&utm_campaign=measure) objects to make them compatible with [**Taskiq**](https://taskiq-python.github.io/) library.

**Supported Python versions:** 3.10–3.15.

The main goal of it - provide **FastStream** with a great **Taskiq** tasks [scheduling](https://taskiq-python.github.io/guide/scheduling-tasks.html) feature.

## Installation
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
Expand All @@ -34,13 +35,12 @@ classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Framework :: Pydantic",
"Framework :: Pydantic :: 1",
"Framework :: Pydantic :: 2",
]


dependencies = [
"taskiq>=0.12.1,<0.13.0",
"taskiq>=0.12.1,<0.14.0",
"faststream>=0.3.14,<0.8",
]

Expand Down
5 changes: 2 additions & 3 deletions tests/test_kafka.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from faststream import FastStream
from faststream.kafka import KafkaBroker, TestKafkaBroker
from taskiq import AsyncBroker

from taskiq_faststream import AppWrapper

Expand All @@ -20,13 +19,13 @@ class TestBroker(SchedulerTestcase):

class TestApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: KafkaBroker) -> AsyncBroker:
def build_taskiq_broker(broker: KafkaBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker))


class TestAsgiApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: KafkaBroker) -> AsyncBroker:
def build_taskiq_broker(broker: KafkaBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker).as_asgi())
5 changes: 2 additions & 3 deletions tests/test_nats.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from faststream import FastStream
from faststream.nats import NatsBroker, TestNatsBroker
from taskiq import AsyncBroker

from taskiq_faststream import AppWrapper

Expand All @@ -20,13 +19,13 @@ class TestBroker(SchedulerTestcase):

class TestApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: NatsBroker) -> AsyncBroker:
def build_taskiq_broker(broker: NatsBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker))


class TestAsgiApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: NatsBroker) -> AsyncBroker:
def build_taskiq_broker(broker: NatsBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker).as_asgi())
5 changes: 2 additions & 3 deletions tests/test_rabbit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from faststream import FastStream
from faststream.rabbit import RabbitBroker, TestRabbitBroker
from taskiq import AsyncBroker

from taskiq_faststream import AppWrapper

Expand All @@ -20,13 +19,13 @@ class TestBroker(SchedulerTestcase):

class TestApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: RabbitBroker) -> AsyncBroker:
def build_taskiq_broker(broker: RabbitBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker))


class TestAsgiApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: RabbitBroker) -> AsyncBroker:
def build_taskiq_broker(broker: RabbitBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker).as_asgi())
5 changes: 2 additions & 3 deletions tests/test_redis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from faststream import FastStream
from faststream.redis import RedisBroker, TestRedisBroker
from taskiq import AsyncBroker

from taskiq_faststream import AppWrapper

Expand All @@ -20,13 +19,13 @@ class TestBroker(SchedulerTestcase):

class TestApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: RedisBroker) -> AsyncBroker:
def build_taskiq_broker(broker: RedisBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker))


class TestAsgiApp(TestBroker):
@staticmethod
def build_taskiq_broker(broker: RedisBroker) -> AsyncBroker:
def build_taskiq_broker(broker: RedisBroker) -> AppWrapper:
"""Build AppWrapper."""
return AppWrapper(FastStream(broker).as_asgi())
3 changes: 1 addition & 2 deletions tests/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import pytest
from faststream.types import SendableMessage
from freezegun import freeze_time
from taskiq import AsyncBroker
from taskiq.cli.scheduler.args import SchedulerArgs
from taskiq.cli.scheduler.run import run_scheduler
from taskiq.schedule_sources import LabelScheduleSource
Expand All @@ -23,7 +22,7 @@ class SchedulerTestcase:
subj_name: str

@staticmethod
def build_taskiq_broker(broker: Any) -> AsyncBroker:
def build_taskiq_broker(broker: Any) -> BrokerWrapper:
"""Build Taskiq compatible object."""
return BrokerWrapper(broker)

Expand Down
Loading