Skip to content

Commit f5bacea

Browse files
committed
Single-source the version number.
This shouldn't be duplicated in `conf.py`.
1 parent 39e8df9 commit f5bacea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import labthings_fastapi
3+
import importlib.metadata
34

45
# Configuration file for the Sphinx documentation builder.
56
#
@@ -12,7 +13,7 @@
1213
project = "labthings-fastapi"
1314
copyright = "2024, Richard Bowman"
1415
author = "Richard Bowman"
15-
release = "0.0.10"
16+
release = importlib.metadata.version("labthings-fastapi")
1617

1718
# -- General configuration ---------------------------------------------------
1819
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

0 commit comments

Comments
 (0)