diff --git a/docs/conf.py b/docs/conf.py index 6568bf6..e1b4a60 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,6 +30,8 @@ import datetime from importlib import import_module +from mmtwfs.version import version as __version__ + try: from sphinx_astropy.conf.v1 import * # noqa except ImportError: @@ -80,9 +82,9 @@ package = sys.modules[setup_cfg['name']] # The short X.Y version. -version = package.__version__.split('-', 1)[0] +version = __version__.split('-', 1)[0] # The full version, including alpha/beta/rc tags. -release = package.__version__ +release = __version__ # -- Options for HTML output --------------------------------------------------