最近我开始通过我sphinx_autodoc_typehints的sphinx_autodoc_defaultargs项目的conf.py. 因为它似乎不是 readthedocs 上 sphinx 安装中的默认包(在那里 sphinx 在 v1.8.5 上)。因为我的构建失败并Extension error显示此处:
Could not import extension sphinx_autodoc_typehints (exception: No module named
'sphinx_autodoc_typehints')
我知道我必须以某种方式告诉 readthedocs 从 PyPI 获取 sphinx_autodoc_typehints (以及后来的 sphinx_autodoc_defaultargs )。或者有什么方法可以让我自己在 readthedocs 上安装软件包?
因为我pbr用于包管理,所以我使用 readthedocs 知道的 requirements.txt。我不想在那里指定 sphinx 扩展,因为我的包的每个用户都必须安装它们。没有其他方法可以告诉 readthedocs 使用哪些扩展?