Skip to content

Commit

Permalink
use importlib.metadata in sphinx conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerber48 committed Jul 21, 2024
1 parent dcda6f4 commit 78dead6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import sys
import os
from importlib.metadata import version

sys.path.insert(0, os.path.abspath(".."))
import uncertainties
Expand Down Expand Up @@ -53,7 +54,7 @@
# The short X.Y version.
version = "1"
# The full version, including alpha/beta/rc tags.
release = uncertainties.__version__
release = version("uncertainties")

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 78dead6

Please sign in to comment.