Skip to content

Commit

Permalink
Get release and version for docs from importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhannah committed Dec 26, 2024
1 parent d4d6798 commit 6352ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
project = "budge"
copyright = "2024, Jesse Brooklyn Hannah"
author = "Jesse Brooklyn Hannah"
release = importlib.metadata.version("budge")
release = importlib.metadata.version(project)
version = ".".join(release.split(".")[:2])

sys.path.insert(0, os.path.abspath("../src"))

Expand Down

0 comments on commit 6352ab2

Please sign in to comment.