1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 17 Apr 2022 23:53:18 -0400
Subject: Docs: Python 3 & Sphinx 4 support
Forwarded: https://github.com/grisha/mod_python/pull/115
---
Doc/conf.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Doc/conf.py b/Doc/conf.py
index f3a3c40..7596fae 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -26,10 +26,14 @@ copyright = '1990-%s, Apache Software Foundation, Gregory Trubetskoy' % time.str
# release = '2.6a0'
# version
-import commands
-v, r = commands.getoutput("../dist/version.sh").rsplit('.', 1)
+import subprocess
+v, r = subprocess.check_output(
+ os.path.dirname(__file__) + "/../dist/version.sh", encoding='ASCII'
+).rsplit('.', 1)
version, release = v, v+'.'+r
+root_doc = 'contents'
+
# Ignore .rst in Sphinx its self.
exclude_trees = ['tools/sphinx']
|