File: Remove-docs-version-info.patch

package info (click to toggle)
cbor2 5.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 576 kB
  • sloc: ansic: 5,038; python: 3,261; makefile: 16; sh: 8
file content (26 lines) | stat: -rw-r--r-- 656 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: Bastian Germann <bage@debian.org>
Date: Sun, 11 Oct 2020 23:41:30 +0200
Forwarded: not-needed
Subject: Remove docs version info

The pkg_resources info is not available before install stage,
so do not try to get info from it.
---
 docs/conf.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 0ddeb07..0c8c6bd 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,10 +15,6 @@ project = 'cbor2'
 author = "Alex Grönholm"
 copyright = "2016, " + author
 
-v = pkg_resources.get_distribution(project).parsed_version
-version = v.base_version
-release = v.public
-
 language = None
 
 exclude_patterns = ["_build"]