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 = '*'