From c3c0bf8ebc1e2b6125462bf781697c2cb16d76f1 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sun, 8 Dec 2024 10:47:44 +0000 Subject: [PATCH] Fix version in stable docs --- .readthedocs.yaml | 3 +++ docs/conf.py | 2 +- pyproject.toml | 5 ++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d7190b4771..d407808e78 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,6 +4,9 @@ build: os: ubuntu-20.04 tools: python: "3.11" + jobs: + post_checkout: + - git fetch --unshallow || true sphinx: configuration: docs/conf.py diff --git a/docs/conf.py b/docs/conf.py index 136fcf32d6..9e24a57dfe 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -72,8 +72,8 @@ copyright = "2024, Zarr Developers" author = "Zarr Developers" -version = get_version("zarr") release = get_version("zarr") +version = get_version("zarr") # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyproject.toml b/pyproject.toml index c5ff73a102..cbaff5e741 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=64.0.0", "setuptools-scm>1.5.4"] +requires = ["setuptools>=64", "setuptools-scm>8"] build-backend = "setuptools.build_meta" @@ -67,9 +67,8 @@ packages = ["zarr", "zarr._storage", "zarr.tests"] license-files = ["LICENSE.txt"] [tool.setuptools_scm] -version_scheme = "guess-next-dev" local_scheme = "dirty-tag" -write_to = "zarr/version.py" +version_file = "zarr/version.py" [tool.ruff] line-length = 100