Hi small_leek, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @zhujianwei001 , @hexiaowen , @Monday , @谢志鹏 , @Lv Ying , @HuBin95 , @gaoruoshu , @znzjugod , @陈子扬 , @陈棋德
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
【python-sphinx】
sphinx是一个文档构建工具,babel依赖sphinx进行文档构建:
make SPHINXBUILD=sphinx-build-3 BUILDDIR="$BUILDDIR" html
文档构建时报错:
[ 168s] Exception occurred:
[ 168s] File "/usr/lib/python3.11/site-packages/sphinx/ext/extlinks.py", line 103, in role
[ 168s] title = caption % part
[ 168s] ~~~~~~~~^~~~~~
babel构建失败原因:
https://github.com/sphinx-doc/sphinx/issues/11094 已知问题,sphinx社区修复bug时将相关代码段删除
删除后,openEuler社区也进行了同步升级:https://gitee.com/src-openeuler/python-sphinx/commit/8c5725cdd54e02c98bf0c042082588e25765a7c0
【babel】
sphinx社区变更之后,babel也适配了构建失败变更:https://github.com/python-babel/babel/pull/924
可以通过升级babel到最新版本2.12.1解决
升级到2.12.1解决构建失败后,发现测试用例失败如下:
上述失败的两处对应如下,babel社区已有补丁修复,回合该补丁解决测试用例失败的问题:
https://github.com/python-babel/babel/issues/988 解决测试用例中的时间格式问题
https://github.com/python-babel/babel/commit/8b152dbe47cb830f66ad12bd3057e6128aeac072
https://github.com/python-babel/babel/pull/1009 消除测试用例报警
https://github.com/python-babel/babel/commit/1747d2230a0294a07c99563cf50fb95a37b6ac0f
Sign in to comment