File: Remove-dependency-on-sphinx-asdf.patch

package info (click to toggle)
python-asdf 5.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,976 kB
  • sloc: python: 24,019; makefile: 123
file content (36 lines) | stat: -rw-r--r-- 991 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
27
28
29
30
31
32
33
34
35
36
From: Ole Streicher <olebole@debian.org>
Date: Sat, 29 Oct 2022 09:55:20 +0200
Subject: Remove dependency on sphinx-asdf

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

diff --git a/docs/conf.py b/docs/conf.py
index d43c621..3d760c2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,5 +1,6 @@
 import datetime
 import sys
+import os
 from pathlib import Path
 
 if sys.version_info < (3, 11):
@@ -29,7 +30,7 @@ project = configuration["name"]
 author = configuration["authors"][0]["name"]
 copyright = f"{datetime.datetime.now().year}, {author}"
 
-release = distribution(configuration["name"]).version
+release = os.environ['DEB_VERSION_UPSTREAM']
 # for example take major/minor
 version = ".".join(release.split(".")[:2])
 
@@ -88,7 +89,6 @@ extensions = [
     "sphinx_inline_tabs",
     "sphinx.ext.intersphinx",
     "sphinx.ext.extlinks",
-    "sphinx_asdf",
     "sphinx.ext.autodoc",
     "sphinx.ext.coverage",
     "sphinx.ext.inheritance_diagram",