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

package info (click to toggle)
python-asdf 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,032 kB
  • sloc: python: 24,068; makefile: 123
file content (32 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (2)
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
From: Ole Streicher <olebole@debian.org>
Date: Sat, 29 Oct 2022 09:55:20 +0200
Subject: Remove dependency on sphinx-asdf

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

diff --git a/docs/conf.py b/docs/conf.py
index c36894b..ea24c20 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -7,7 +7,9 @@ if sys.version_info < (3, 11):
 else:
     import tomllib
 
-from sphinx_asdf.conf import *  # noqa: F403
+from sphinx_astropy.conf import *  # noqa: F403
+import os
+import datetime
 
 # The standard library importlib.metadata returns duplicate entrypoints
 # for all python versions up to and including 3.11
@@ -31,7 +33,7 @@ project = configuration["name"]
 author = f"{configuration['authors'][0]['name']} <{configuration['authors'][0]['email']}>"
 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])