File: 0002-Fix-links-to-source-in-docs.patch

package info (click to toggle)
pystac 1.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,232 kB
  • sloc: python: 24,489; makefile: 124; sh: 7
file content (34 lines) | stat: -rw-r--r-- 955 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
33
34
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 2 Jul 2023 10:29:03 +0000
Subject: Fix links to source in docs

Forwarded: not-needed
---
 docs/conf.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index dd16ad3..739b941 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,7 +12,6 @@
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #
 import os
-import subprocess
 import sys
 from typing import Any
 
@@ -20,11 +19,7 @@ sys.path.insert(0, os.path.abspath("."))
 sys.path.insert(0, os.path.abspath("../"))
 from pystac.version import STACVersion, __version__  # noqa:E402
 
-git_branch = (
-    subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"])
-    .decode("utf-8")
-    .strip()
-)
+git_branch = os.environ.get("UPSTREAM_VERSION", "master")
 
 # -- Project information -----------------------------------------------------