From 5fe5a0143ccc611007ed2e7a2c3978f568f7cbda Mon Sep 17 00:00:00 2001 From: Soroosh Mani <77082694+SorooshMani-NOAA@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:51:28 -0500 Subject: [PATCH] Fix docs build error; update author and CR date (#119) --- docs/source/conf.py | 10 +++++----- pyproject.toml | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 07b5dd7f..c0dbf370 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,7 +16,7 @@ import sys from dunamai import Version -from setuptools import config +from importlib.metadata import metadata def repository_root(path: PathLike = None) -> Path: @@ -42,11 +42,11 @@ def repository_root(path: PathLike = None) -> Path: ) # -- Project information ----------------------------------------------------- -metadata = config.read_configuration('../../setup.cfg')['metadata'] +md = metadata('ensembleperturbation') -project = metadata['name'] -author = metadata['author'] -copyright = f'2021, {author}' +project = md['Name'] +author = md['Author'] +copyright = f'2023, {author}' # The full version, including alpha/beta/rc tags try: diff --git a/pyproject.toml b/pyproject.toml index f41511f6..ef68abfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = 'ensembleperturbation' version = '0.0.0' description = 'perturbation of coupled model input over a space of input variables' -authors = ['Zach Burnett '] +authors = ['Zach Burnett', 'Soroosh Mani '] license = 'CC0-1.0' readme = 'README.md' repository = 'https://github.com/noaa-ocs-modeling/EnsemblePerturbation.git' @@ -28,6 +28,7 @@ chaospy = '*' cmocean = { version = '*', optional = true } coupledmodeldriver = '>=1.5' dask = '*' +dunamai = { version = '*', optional = true } f90nml = '*' fiona = '*' geopandas = '*'