From dde92124b572f78b457905e677f829698493a2a2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 6 Sep 2021 22:30:02 +0800 Subject: admin/doc-requirements: use funcparserlib from github funcparserlib is pulled in as a dependency by blockdiag. the latest version of funcparserlib available on pypi is v0.3.6 which is not compatible with Python3.8. in this change, funcparserlib is installed from github instead to address the build failure like: File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/sphinxcontrib/seqdiag.py", line 26, in import seqdiag.utils.rst.nodes File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/seqdiag/utils/rst/nodes.py", line 16, in from blockdiag.utils.rst import nodes File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/blockdiag/utils/rst/nodes.py", line 21, in import blockdiag.builder File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/blockdiag/builder.py", line 16, in from blockdiag import parser File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/blockdiag/parser.py", line 43, in from funcparserlib.parser import (a, finished, forward_decl, many, maybe, skip, File "/home/docs/checkouts/readthedocs.org/user_builds/ceph/envs/41855/lib/python3.8/site-packages/funcparserlib/parser.py", line 123 except NoParseError, e: ^ SyntaxError: invalid syntax once https://github.com/vlasovskikh/funcparserlib/issues/65 is addressed, we should drop this change. Signed-off-by: Kefu Chai --- admin/doc-requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'admin') diff --git a/admin/doc-requirements.txt b/admin/doc-requirements.txt index fef7b6590c9..1570b52438c 100644 --- a/admin/doc-requirements.txt +++ b/admin/doc-requirements.txt @@ -1,5 +1,6 @@ Sphinx == 3.5.4 git+https://github.com/ceph/sphinx-ditaa.git@py3#egg=sphinx-ditaa +git+https://github.com/vlasovskikh/funcparserlib.git breathe >= 4.20.0 Jinja2 pyyaml >= 5.1.2 -- cgit v1.2.3