Skip to content

Commit 6a97a9a

Browse files
Merge pull request #162 from noaa-ocs-modeling/bugfix/doc
Bugfix/doc
2 parents 2e98fc1 + 34c41ed commit 6a97a9a

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ build:
88
os: ubuntu-20.04
99
tools:
1010
python: "3.10"
11+
apt_packages:
12+
- libgeos-dev
13+
- libproj-dev
14+
- libudunits2-dev
1115

1216
sphinx:
1317
configuration: docs/source/conf.py

coupledmodeldriver/client/unqueued_runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from argparse import ArgumentParser
2-
from collections import Collection
2+
from collections.abc import Collection
33
import os
44
from pathlib import Path
55
from typing import Any, Dict, List

docs/source/conf.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
# If extensions (or modules to document with autodoc) are in another directory,
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
from datetime import datetime
1213
import os
1314
from os import PathLike
1415
from pathlib import Path
1516
import subprocess
1617
import sys
1718

1819
from dunamai import Version
19-
from setuptools import config
20+
from importlib.metadata import metadata
2021

2122

2223
def repository_root(path: PathLike = None) -> Path:
@@ -42,11 +43,11 @@ def repository_root(path: PathLike = None) -> Path:
4243
)
4344

4445
# -- Project information -----------------------------------------------------
45-
metadata = config.read_configuration('../../setup.cfg')['metadata']
46+
md = metadata('coupledmodeldriver')
4647

47-
project = metadata['name']
48-
author = metadata['author']
49-
copyright = f'2021, Office of Coast Survey (OCS), National Oceanic and Atmospheric Administration (NOAA)'
48+
project = md['name']
49+
author = md['author']
50+
copyright = f'{datetime.now().year}, Office of Coast Survey (OCS), National Oceanic and Atmospheric Administration (NOAA)'
5051

5152
# The full version, including alpha/beta/rc tags
5253
try:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ enable = true
2424
[tool.poetry.dependencies]
2525
python = '<3.11' # due to numba
2626
adcircpy = '>=1.2.5'
27+
dunamai = { version = '*', optional = true }
2728
file-read-backwards = '*'
2829
nemspy = '>=1.0.4'
2930
numpy = '*'

0 commit comments

Comments
 (0)