Skip to content

Commit f231bb2

Browse files
authored
Fix version number in built docs (#2044)
1 parent c72d0e2 commit f231bb2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/conf.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616
import os
1717
import sys
1818

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+
2421
import zarr
2522

2623
# If extensions (or modules to document with autodoc) are in another directory,
@@ -75,9 +72,8 @@
7572
copyright = "2024, Zarr Developers"
7673
author = "Zarr Developers"
7774

78-
version = zarr.__version__
79-
# The full version, including alpha/beta/rc tags.
80-
release = zarr.__version__
75+
version = get_version("zarr")
76+
release = get_version("zarr")
8177

8278
# The language for content autogenerated by Sphinx. Refer to documentation
8379
# for a list of supported languages.

0 commit comments

Comments
 (0)