Skip to content

Commit

Permalink
Dynamically get author and copyright for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhannah committed Jan 17, 2025
1 parent d0c4d2d commit da0cc98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
import importlib.metadata
import os
import sys
from datetime import date

project = "budge"
copyright = "2025, Jesse Brooklyn Hannah"
author = "Jesse Brooklyn Hannah"
author = importlib.metadata.metadata(project)["Author-email"]
copyright = f"{date.today().year} {author}"
release = importlib.metadata.version(project)
version = ".".join(release.split(".")[:2])

Expand Down

0 comments on commit da0cc98

Please sign in to comment.