Skip to content

Commit

Permalink
read python version from file to replace in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Feb 27, 2024
1 parent d0e635a commit f29dd22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
print(sys.path)

from metplus import __version__, __release_date__
from metplus import __python_version__ as python_version

# -- Project information -----------------------------------------------------

project = 'METplus'

python_version = '3.10.4'

met_version = '12.0.0'

author = 'UCAR/NCAR, NOAA, CSU/CIRA, and CU/CIRES'
Expand Down Expand Up @@ -221,6 +220,7 @@
# -- Intersphinx control ---------------------------------------------------------------
intersphinx_mapping = {'numpy':("https://docs.scipy.org/doc/numpy/", None)}

# -- Replace values in docs ------------------------------------------------------------
rst_epilog = f"""
.. |copyright| replace:: {copyright}
.. |author_list| replace:: {author_list}
Expand Down
1 change: 1 addition & 0 deletions metplus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def get_metplus_info(info_rel_path):

__version__ = get_metplus_version()
__release_date__ = get_metplus_release_date()
__python__version = get_python_version()

# import util and wrappers
from .util import *
Expand Down

0 comments on commit f29dd22

Please sign in to comment.