Skip to content

Commit

Permalink
Fix version number in built docs (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby authored Aug 14, 2024
1 parent c72d0e2 commit f231bb2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
import os
import sys

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
from importlib.metadata import version as get_version

import zarr

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

version = zarr.__version__
# The full version, including alpha/beta/rc tags.
release = zarr.__version__
version = get_version("zarr")
release = get_version("zarr")

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

0 comments on commit f231bb2

Please sign in to comment.