Skip to content

Commit

Permalink
Read docs version number from module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Nov 20, 2023
1 parent 89e9c3d commit fb381d0
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 @@ -5,6 +5,7 @@
"""
import sys
from importlib.metadata import version as get_version

extensions = [
"notfound.extension",
Expand All @@ -20,8 +21,8 @@
master_doc = "index"
project = "akismet"
copyright = "2005-2023, Michael Foord and James Bennett"
version = "1.3a1"
release = "1.3a1"
version = get_version("akismet")
release = version
exclude_trees = ["_build"]
pygments_style = "sphinx"
htmlhelp_basename = "akismetdoc"
Expand Down

0 comments on commit fb381d0

Please sign in to comment.