Skip to content

Commit f541296

Browse files
authored
Merge pull request #592 from achaikou/readthedocs_version
Additional readthedocs fixes
2 parents 62c10d0 + d492f80 commit f541296

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

python/docs/conf.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,7 @@
9898
# built documents.
9999
#
100100
# The short X.Y version.
101-
version = segyio.__version__
102-
103-
# if the docs are built without actually building segyio (what readthedocs
104-
# does), the version string will fall back to '0.0.0'. but since readthedocs
105-
# (and maybe other jobs that builds doc) often fetch from git, they can fall
106-
# back to also trying git-describe themselves.
107-
if version == '0.0.0':
108-
try:
109-
# static analysis flags the subproces module as a potential security
110-
# problem, but this takes no user input and should be safe
111-
from subprocess import check_output # nosec
112-
version = str(check_output(['git', 'describe']).strip()) # nosec
113-
finally:
114-
# couldn't run git-describe - fall back to 0.0.0 and accept that we
115-
# won't get reasonable version numbers automatically
116-
pass
101+
version = "1.19.12"
117102

118103
# The full version, including alpha/beta/rc tags.
119104
release = version
@@ -415,6 +400,6 @@
415400

416401
# Example configuration for intersphinx: refer to the Python standard library.
417402
intersphinx_mapping = {
418-
'https://docs.python.org/': None,
419-
'https://docs.scipy.org/doc/numpy/': None,
403+
"python": ("https://docs.python.org/", None),
404+
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
420405
}

0 commit comments

Comments
 (0)