diff --git a/docs/integrations/faststream.rst b/docs/integrations/faststream.rst index 3aedcdc6..c255128a 100644 --- a/docs/integrations/faststream.rst +++ b/docs/integrations/faststream.rst @@ -3,6 +3,13 @@ FastStream =========================================== +.. warning:: + The integration has been moved to the `dishka-faststream `_ package and will be removed in future versions. + .. code-block:: shell + + pip install dishka-faststream + + Though it is not required, you can use *dishka-faststream* integration. It features: * automatic *REQUEST* scope management using middleware diff --git a/docs/integrations/index.rst b/docs/integrations/index.rst index 5a492943..5609e94a 100644 --- a/docs/integrations/index.rst +++ b/docs/integrations/index.rst @@ -49,7 +49,7 @@ Some of the integrations are supported by a community, refer to their documentat * - :ref:`grpcio` - :ref:`Aiogram_dialog` - - :ref:`FastStream` + - `FastStream `_ (:abbr:`com (Community support)`) - `Flet `_ (:abbr:`com (Community support)`) * - :ref:`Fastapi` diff --git a/src/dishka/integrations/faststream/__init__.py b/src/dishka/integrations/faststream/__init__.py index c3a9401c..49f6610d 100644 --- a/src/dishka/integrations/faststream/__init__.py +++ b/src/dishka/integrations/faststream/__init__.py @@ -1,9 +1,20 @@ +import warnings + from faststream.__about__ import ( __version__ as FASTSTREAM_VERSION, # noqa: N812 ) from dishka import FromDishka +warnings.warn( + "The integration has been moved to the dishka-faststream package" + " and will be removed in future versions." + "\n`pip install dishka-faststream`" + "\nhttps://github.com/faststream-community/dishka-faststream", + DeprecationWarning, + stacklevel=2, +) + FASTSTREAM_05 = FASTSTREAM_VERSION.startswith("0.5") FASTSTREAM_06 = FASTSTREAM_VERSION.startswith("0.6")