首页 > 解决方案 > 如何将扩展块添加到 setup.cfg

问题描述

在我的 Python 项目中,我只有setup.cfgpyproject.toml配置文件,我不想添加setup.py。但我想使用 Sphinx 包,它需要将扩展​​块添加到setup.py(如回答here):

extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.autodoc']

那么如何将此部分添加到setup.cfg

标签: pythonpython-sphinx

解决方案


推荐阅读