Skip to content

Commit

Permalink
update documentation and pyproject file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengp0 committed Apr 9, 2024
1 parent cf94542 commit 2e813d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 6 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

0 comments on commit 2e813d7

Please sign in to comment.