We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c72d0e2 commit f231bb2Copy full SHA for f231bb2
docs/conf.py
@@ -16,11 +16,8 @@
16
import os
17
import sys
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.
+from importlib.metadata import version as get_version
+
24
import zarr
25
26
# If extensions (or modules to document with autodoc) are in another directory,
@@ -75,9 +72,8 @@
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__
+version = get_version("zarr")
+release = get_version("zarr")
81
82
# The language for content autogenerated by Sphinx. Refer to documentation
83
# for a list of supported languages.
0 commit comments