Skip to content

0.4.2: setuptools<>sphinx integration does not work #21

Open
@kloczek

Description

@kloczek

Looks like setuptools<>sphinx integration does not work.

+ /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx
running build_sphinx
Running Sphinx v4.3.2

Configuration error:
config directory doesn't contain a conf.py file (/home/tkloczko/rpmbuild/BUILD/pyproject-parser-0.4.2)

All because docuemntation source is stored in doc-source/ when setuptools<>sphinx integration by default is looking for docs/conf.py.
Thre are two possible solutions:

  • rename doc-source/ to docs/
  • apply below patch
--- a/setup.cfg~        2021-08-11 12:25:07.000000000 +0100
+++ b/setup.cfg 2022-01-14 09:51:52.648856535 +0000
@@ -55,3 +55,6 @@
     pyproject-parser=pyproject_parser.__main__:main
     check-pyproject=pyproject_parser.__main__:main
     pyproject-fmt=pyproject_parser.__main__:main
+
+[build_sphinx]
+source-dir = doc-source

https://www.sphinx-doc.org/en/master/usage/advanced/setuptools.html

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions