python - 如何将扩展块添加到 setup.cfg
问题描述
在我的 Python 项目中,我只有setup.cfg和pyproject.toml配置文件,我不想添加setup.py。但我想使用 Sphinx 包,它需要将扩展块添加到setup.py(如回答here):
extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.autodoc']
那么如何将此部分添加到setup.cfg?
解决方案
推荐阅读
- python - 递归到 NLTK 脚本的迭代变换
- lda - Adam' 对象没有属性 'zero_grads'
- c# - 在 MVC 中,在 POST 期间,如何遍历模型状态中的模型对象列表?
- c - 用户退出时如何关闭控制台窗口?
- c++ - 有什么东西可以阻止 std::optional::value_or() 有条件地为 noexcept 吗?
- python - 在我的基于数组的列表实现中为 append 方法编写单元测试
- python - PyQt 使用适当的抗锯齿调整 QMovie 的大小
- node.js - 无法从 fetch 中获取所有响应数据
- javascript - 试图在 Node 环境中使用 babel JavaScript 或 TypeScript 文件
- python - 如何扫描 json 文件中的某个字符串?使用 Python