From 4d55380fda583a34bf7f8d08c7afd05eb3643b91 Mon Sep 17 00:00:00 2001 From: Simone Manti Date: Tue, 23 Jun 2026 11:07:12 +0200 Subject: [PATCH] Fixed readthedocs tag. --- .readthedocs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 4a9c5b9..a587ba1 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -20,6 +20,12 @@ build: os: "ubuntu-20.04" tools: python: "mambaforge-4.10" + jobs: + # RTD does a shallow clone without tags, which makes setuptools-scm fall + # back to 0.0.0. Fetch full history and tags so the real version is used. + post_checkout: + - git fetch --unshallow || true + - git fetch --tags || true conda: environment: docs/environment.yml