Skip to content

Commit 10a4629

Browse files
authored
Fix doc version in stable doc build (#2543)
1 parent 8cb3837 commit 10a4629

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ build:
44
os: ubuntu-20.04
55
tools:
66
python: "3.11"
7+
jobs:
8+
post_checkout:
9+
- git fetch --unshallow || true
710

811
sphinx:
912
configuration: docs/conf.py

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
copyright = "2024, Zarr Developers"
7474
author = "Zarr Developers"
7575

76-
version = get_version("zarr")
7776
release = get_version("zarr")
77+
version = get_version("zarr")
7878

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

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=64.0.0", "setuptools-scm>1.5.4"]
2+
requires = ["setuptools>=64", "setuptools-scm>8"]
33
build-backend = "setuptools.build_meta"
44

55

@@ -68,9 +68,8 @@ packages = ["zarr", "zarr._storage", "zarr.tests"]
6868
license-files = ["LICENSE.txt"]
6969

7070
[tool.setuptools_scm]
71-
version_scheme = "guess-next-dev"
7271
local_scheme = "dirty-tag"
73-
write_to = "zarr/version.py"
72+
version_file = "zarr/version.py"
7473

7574
[tool.ruff]
7675
line-length = 100

0 commit comments

Comments
 (0)