File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1515from m2r import MdInclude
1616from recommonmark .transform import AutoStructify
1717from 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
2125project = "labscript"
2226copyright = "2020, labscript suite"
2327author = "labscript suite contributors"
2428
25- from labscript import __version__ as version # noqa: E402
29+ version = importlib_metadata . version ( 'labscript' )
2630
2731release = version
2832
5155autodoc_typehints = 'description'
5256autosummary_generate = True
5357add_module_names = False
58+ autodoc_mock_imports = ['labscript_utils' ]
5459
5560# Prefix each autosectionlabel with the name of the document it is in and a colon
5661autosectionlabel_prefix_document = True
You can’t perform that action at this time.
0 commit comments