File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 16
16
import os
17
17
import sys
18
18
19
- # The version info for the project you're documenting, acts as replacement for
20
- # |version| and |release|, also used in various other places throughout the
21
- # built documents.
22
- #
23
- # The short X.Y version.
19
+ from importlib .metadata import version as get_version
20
+
24
21
import zarr
25
22
26
23
# If extensions (or modules to document with autodoc) are in another directory,
75
72
copyright = "2024, Zarr Developers"
76
73
author = "Zarr Developers"
77
74
78
- version = zarr .__version__
79
- # The full version, including alpha/beta/rc tags.
80
- release = zarr .__version__
75
+ version = get_version ("package-name" )
76
+ release = get_version ("package-name" )
81
77
82
78
# The language for content autogenerated by Sphinx. Refer to documentation
83
79
# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments