Skip to content

Commit

Permalink
Merge pull request #6 from GeoStat-Framework/develop
Browse files Browse the repository at this point in the history
Bugfix 1.1.1
  • Loading branch information
MuellerSeb authored Apr 2, 2020
2 parents fcd0fbf + bd78c19 commit 2bc4428
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ docs/build
#_static
#_templates
#docs/
ogs5py/_version.py
8 changes: 3 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
# pip install sphinx_rtd_theme
# is needed in order to build the documentation
import datetime
import os
import sys

sys.path.insert(0, os.path.abspath("../../"))
from ogs5py import __version__ as ver


Expand Down Expand Up @@ -173,7 +169,9 @@ def setup(app):

# Output file base name for HTML help builder.
htmlhelp_basename = "ogs5pydoc"

# logos for the page
html_logo = "pics/OGS_150.png"
html_favicon = "pics/OGS.ico"

# -- Options for LaTeX output ---------------------------------------------
# latex_engine = 'lualatex'
Expand Down
Binary file added docs/source/pics/OGS.ico
Binary file not shown.
7 changes: 6 additions & 1 deletion ogs5py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
PCS_TYP
PRIM_VAR_BY_PCS
"""
from ogs5py._version import __version__
from ogs5py.ogs import OGS
from ogs5py.fileclasses import (
ASC,
Expand Down Expand Up @@ -173,6 +172,12 @@
)
from ogs5py.tools.vtk_viewer import show_vtk

try:
from ogs5py._version import __version__
except ImportError: # pragma: nocover
# package is not installed
__version__ = "0.0.0.dev0"

# indentation of subkeywords
SUB_IND = " "
"""str: Indentation of subkeys."""
Expand Down
3 changes: 0 additions & 3 deletions ogs5py/_version.py

This file was deleted.

6 changes: 5 additions & 1 deletion ogs5py/fileclasses/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@
is_skey,
find_key_in_list,
)
from ogs5py._version import __version__ as version
try:
from ogs5py._version import __version__ as version
except ImportError: # pragma: nocover
# package is not installed
version = "0.0.0.dev0"

# current working directory
CWD = os.getcwd()
Expand Down

0 comments on commit 2bc4428

Please sign in to comment.