File: 0003-Handle-building-docs-without-installation.patch

package info (click to toggle)
python-sybil 10.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,200 kB
  • sloc: python: 5,194; makefile: 40; sh: 12
file content (24 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Andrey Rakhmatullin <wrar@debian.org>
Date: Fri, 27 Mar 2026 21:41:50 +0500
Subject: Handle building docs without installation

---
 docs/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 8c76a3e..032fbce 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -34,7 +34,10 @@ source_suffix = '.rst'
 master_doc = 'index'
 project = 'sybil'
 copyright = '2017 onwards Chris Withers'
-version = release = metadata.version(project)
+if "DEB_VERSION_UPSTREAM" in os.environ:
+    version = release = os.environ["DEB_VERSION_UPSTREAM"]
+else:
+    version = release = metadata.version(project)
 exclude_patterns = [
     '_build',
     'example*',