diff --git a/docs/conf.py b/docs/conf.py index c1dd8cd..9e69e4c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,17 +10,19 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # +import datetime + import tomllib with open("../pyproject.toml", "rb") as f: - meta = tomllib.load(f)["tool"]["sphinx"] + meta = tomllib.load(f)["project"] # -- Project information ----------------------------------------------------- -project = meta["project"] -author = meta["author"] -copyright = meta["copyright"] +project = meta["name"] +author = ", ".join([info["name"] for info in meta["authors"]]) +copyright = f"2019-{datetime.datetime.today().year}, {author}" # The full version, including alpha/beta/rc tags diff --git a/pyproject.toml b/pyproject.toml index 09a5ba8..55fdc91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "xspline" -version = "0.1.0" +version = "0.1.1" description = "Advanced spline package that provides b-spline bases, their derivatives and integrals" readme = "README.rst" requires-python = ">=3.10" @@ -20,9 +20,3 @@ docs = ["sphinx", "sphinx-autodoc-typehints", "furo"] [project.urls] github = "https://github.com/ihmeuw-msca/xspline" - -[tool.sphinx] -project = "xspline" -author = "IHME Math Sciences" -copyright = "2024, IHME Math Sciences" -version = "0.1.0" \ No newline at end of file