Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc building #812

Merged
merged 2 commits into from
Dec 31, 2021
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 aiokafka/producer/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,6 @@ Structs
Protocols
^^^^^^^^^

.. autoclass:: aiokafka.protocol.produce.ProduceRequest
.. autoclass:: kafka.protocol.produce.ProduceRequest
:member-order: alphabetical
:members:
15 changes: 14 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down