Skip to content

Commit 2589ce0

Browse files
committed
Do not use setuptools-scm to define version at runtime for RTD builds
1 parent 1a1c053 commit 2589ce0

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
@@ -14,6 +14,7 @@
1414
import os
1515
from pathlib import Path
1616
from jinja2 import FileSystemLoader, Environment
17+
import importlib.metadata
1718

1819
# -- Project information (unique to each project) -------------------------------------
1920

@@ -22,7 +23,7 @@
2223
author = "labscript suite contributors"
2324

2425
# The full version, including alpha/beta/rc tags
25-
from labscript_utils import __version__ as version # noqa: E402
26+
version = importlib.metadata.version('labscript-utils')
2627

2728
release = version
2829

0 commit comments

Comments
 (0)