Skip to content

Commit 2bc4428

Browse files
authored
Merge pull request #6 from GeoStat-Framework/develop
Bugfix 1.1.1
2 parents fcd0fbf + bd78c19 commit 2bc4428

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ docs/build
99
#_static
1010
#_templates
1111
#docs/
12+
ogs5py/_version.py

docs/source/conf.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
# pip install sphinx_rtd_theme
2222
# is needed in order to build the documentation
2323
import datetime
24-
import os
25-
import sys
26-
27-
sys.path.insert(0, os.path.abspath("../../"))
2824
from ogs5py import __version__ as ver
2925

3026

@@ -173,7 +169,9 @@ def setup(app):
173169

174170
# Output file base name for HTML help builder.
175171
htmlhelp_basename = "ogs5pydoc"
176-
172+
# logos for the page
173+
html_logo = "pics/OGS_150.png"
174+
html_favicon = "pics/OGS.ico"
177175

178176
# -- Options for LaTeX output ---------------------------------------------
179177
# latex_engine = 'lualatex'

docs/source/pics/OGS.ico

4.19 KB
Binary file not shown.

ogs5py/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
PCS_TYP
126126
PRIM_VAR_BY_PCS
127127
"""
128-
from ogs5py._version import __version__
129128
from ogs5py.ogs import OGS
130129
from ogs5py.fileclasses import (
131130
ASC,
@@ -173,6 +172,12 @@
173172
)
174173
from ogs5py.tools.vtk_viewer import show_vtk
175174

175+
try:
176+
from ogs5py._version import __version__
177+
except ImportError: # pragma: nocover
178+
# package is not installed
179+
__version__ = "0.0.0.dev0"
180+
176181
# indentation of subkeywords
177182
SUB_IND = " "
178183
"""str: Indentation of subkeys."""

ogs5py/_version.py

-3
This file was deleted.

ogs5py/fileclasses/base.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
is_skey,
3232
find_key_in_list,
3333
)
34-
from ogs5py._version import __version__ as version
34+
try:
35+
from ogs5py._version import __version__ as version
36+
except ImportError: # pragma: nocover
37+
# package is not installed
38+
version = "0.0.0.dev0"
3539

3640
# current working directory
3741
CWD = os.getcwd()

0 commit comments

Comments
 (0)