diff --git a/aiokafka/producer/producer.py b/aiokafka/producer/producer.py index bd5ee669..98b10fb7 100644 --- a/aiokafka/producer/producer.py +++ b/aiokafka/producer/producer.py @@ -128,7 +128,7 @@ class AIOKafkaProducer: brokers or partitions. Default: 300000 request_timeout_ms (int): Produce request timeout in milliseconds. As it's sent as part of - :class:`~aiokafka.protocol.produce.ProduceRequest` (it's a blocking + :class:`~kafka.protocol.produce.ProduceRequest` (it's a blocking call), maximum waiting time can be up to ``2 * request_timeout_ms``. Default: 40000. diff --git a/docs/api.rst b/docs/api.rst index 164964d0..ec616db9 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -191,6 +191,6 @@ Structs Protocols ^^^^^^^^^ -.. autoclass:: aiokafka.protocol.produce.ProduceRequest +.. autoclass:: kafka.protocol.produce.ProduceRequest :member-order: alphabetical :members: diff --git a/setup.py b/setup.py index a89f6caa..6032aab6 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,20 @@ from setuptools import Extension, setup from setuptools.command.bdist_rpm import bdist_rpm as _bdist_rpm from setuptools.command.build_ext import build_ext -from setuptools.errors import CCompilerError, ExecError, PlatformError + + +try: + from setuptools.errors import CCompilerError, ExecError, PlatformError +except ImportError: + # RTD workaround until it ships setuptools>=v59.0.0 + # See: + # - https://github.com/pypa/setuptools/pull/2858 + # - https://docs.readthedocs.io/en/stable/builds.html#python + from distutils.errors import ( + CCompilerError, + DistutilsExecError as ExecError, + DistutilsPlatformError as PlatformError, + ) # Those are needed to build _hton for windows