Skip to content

Commit

Permalink
fix datetime object
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Sep 20, 2022
1 parent 8c591a9 commit bae487e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def setup(app):
# values here:
with open(REPO_ROOT / "pyproject.toml", "rb") as configuration_file:
conf = tomli.load(configuration_file)
setup_cfg = conf['project']
setup_metadata = conf['project']

project = setup_cfg["name"]
author = f'{setup_cfg["authors"][0]["name"]} <{setup_cfg["authors"][0]["email"]}>'
copyright = f'{datetime.datetime.now().year}, {author}'
project = setup_metadata["name"]
author = f'{setup_metadata["authors"][0]["name"]} <{setup_metadata["authors"][0]["email"]}>'
copyright = f'{datetime.now().year}, {author}'

package = importlib.import_module(setup_metadata["name"])
version = package.__version__.split("-", 1)[0]
Expand Down

0 comments on commit bae487e

Please sign in to comment.