File: Directly-take-the-version-from-the-package.patch

package info (click to toggle)
astroplan 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 4,411; makefile: 126
file content (29 lines) | stat: -rw-r--r-- 754 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
From: Ole Streicher <olebole@debian.org>
Date: Fri, 27 Oct 2023 12:53:11 +0200
Subject: Directly take the version from the package

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

diff --git a/docs/conf.py b/docs/conf.py
index f971ddd..341fd6b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,7 +14,6 @@
 from configparser import ConfigParser
 import sys
 import datetime
-from importlib import metadata
 
 try:
     from sphinx_astropy.conf.v2 import *  # noqa
@@ -78,7 +77,7 @@ package = sys.modules[project]
 # built documents.
 
 # The full version, including alpha/beta/rc tags.
-release = metadata.version(project)
+release = package.__version__
 # The short X.Y version.
 version = ".".join(release.split(".")[:2])