Skip to content

Commit 755e562

Browse files
committed
Reset pins, use importlib_metadata to get version in conf.py.
1 parent d5750bb commit 755e562

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@
1515
from m2r import MdInclude
1616
from recommonmark.transform import AutoStructify
1717
from jinja2 import FileSystemLoader, Environment
18+
try:
19+
import importlib.metadata as importlib_metadata
20+
except ImportError:
21+
import importlib_metadata
1822

1923
# -- Project information (unique to each project) -------------------------------------
2024

2125
project = "labscript"
2226
copyright = "2020, labscript suite"
2327
author = "labscript suite contributors"
2428

25-
from labscript import __version__ as version # noqa: E402
29+
version = importlib_metadata.version('labscript')
2630

2731
release = version
2832

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ packages = find:
2727
python_requires = >=3.6
2828
install_requires =
2929
importlib_metadata
30-
labscript_utils==3.1.0
30+
labscript_utils>=3.0.0
3131
numpy>=1.15
3232
scipy
3333
matplotlib

0 commit comments

Comments
 (0)