File: build-uninstalled-docs.patch

package info (click to toggle)
python-django-contact-form 5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 412 kB
  • sloc: python: 839; makefile: 136
file content (26 lines) | stat: -rw-r--r-- 797 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
25
26
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 30 Nov 2025 15:47:08 +0000
Subject: Handle building docs without installation

Forwarded: not-needed
Last-Update: 2025-11-30
---
 docs/conf.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 1929c91..f13c049 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -37,7 +37,10 @@ source_suffix = {".rst": "restructuredtext"}
 master_doc = "index"
 project = "django-contact-form"
 copyright = "James Bennett and contributors"
-version = get_version("django-contact-form")
+if "DEB_VERSION_UPSTREAM" in os.environ:
+    version = os.environ["DEB_VERSION_UPSTREAM"]
+else:
+    version = get_version("django-contact-form")
 release = version
 exclude_trees = ["_build"]
 pygments_style = "sphinx"