From f20d8ec663706a5124404d87f3947b900623d2b5 Mon Sep 17 00:00:00 2001 From: Grigorii Date: Fri, 20 Nov 2026 22:43:35 +0300 Subject: [PATCH 1/3] chore(dependencies): set taskiq constraints to >=0.12.1,<0.14. Drop pydantic v1 support --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2c54ab..b2d6632 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,13 +34,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", ] From cc59306d1527a8da5ca7b49d11f3112d7dc9d7c6 Mon Sep 17 00:00:00 2001 From: Grigorii Date: Fri, 20 Nov 2026 22:44:21 +0300 Subject: [PATCH 2/3] fix(mypy): fix mypy errors for type annotations after updating version --- tests/test_kafka.py | 5 ++--- tests/test_nats.py | 5 ++--- tests/test_rabbit.py | 5 ++--- tests/test_redis.py | 5 ++--- tests/testcase.py | 3 +-- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/tests/test_kafka.py b/tests/test_kafka.py index 56e65ef..184284b 100644 --- a/tests/test_kafka.py +++ b/tests/test_kafka.py @@ -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 @@ -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()) diff --git a/tests/test_nats.py b/tests/test_nats.py index 7c7e8c4..a5780c1 100644 --- a/tests/test_nats.py +++ b/tests/test_nats.py @@ -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 @@ -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()) diff --git a/tests/test_rabbit.py b/tests/test_rabbit.py index f87f790..11b96bb 100644 --- a/tests/test_rabbit.py +++ b/tests/test_rabbit.py @@ -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 @@ -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()) diff --git a/tests/test_redis.py b/tests/test_redis.py index d98b9c0..01a63b8 100644 --- a/tests/test_redis.py +++ b/tests/test_redis.py @@ -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 @@ -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()) diff --git a/tests/testcase.py b/tests/testcase.py index b77e77e..a797882 100644 --- a/tests/testcase.py +++ b/tests/testcase.py @@ -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 @@ -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) From bd70377fe59d7a9a98a00e9aae2f35c22c52f2b5 Mon Sep 17 00:00:00 2001 From: Grigorii Date: Sat, 21 Nov 2026 15:23:16 +0300 Subject: [PATCH 3/3] chore(python): add python 3.15 version support --- .github/workflows/test.yml | 2 +- README.md | 2 ++ pyproject.toml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5b7ed8..3f8821f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/README.md b/README.md index e1c52e0..0b636cf 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index b2d6632..f4c7dc1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",