1 Star 0 Fork 3

白光磊/python-sphinxcontrib-fulltoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Don-t-invoke-Python-to-check-version.patch 788 Bytes
一键复制 编辑 原始数据 按行查看 历史
白光磊 提交于 2021-07-09 17:25 +08:00 . 添加python-sphinxcontrib-fulltoc-1.2.0-1
From 7cbf4782858908f3d182468653a9b473cb58020c Mon Sep 17 00:00:00 2001
From: Jeremy Cline <jcline@redhat.com>
Date: Wed, 19 Sep 2018 10:36:39 -0400
Subject: [PATCH] Don't invoke Python to check version
Signed-off-by: Jeremy Cline <jcline@redhat.com>
---
docs/source/conf.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index b37cee2..48e6212 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -51,8 +51,7 @@ copyright = u'2012, Doug Hellmann'
# built documents.
#
# The short X.Y version.
-version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
-version = version.strip()
+version = "1.2"
# The full version, including alpha/beta/rc tags.
release = version
--
2.19.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bai-guanglei/python-sphinxcontrib-fulltoc.git
git@gitee.com:bai-guanglei/python-sphinxcontrib-fulltoc.git
bai-guanglei
python-sphinxcontrib-fulltoc
python-sphinxcontrib-fulltoc
master

搜索帮助