From e9e851b53759809d961d4d6f1e211ebe2a5ae7ef Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Mon, 3 Nov 2025 21:06:12 -0800 Subject: [PATCH 1/4] rtd unshallow --- .readthedocs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 3060350..a373c21 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,6 +4,10 @@ build: os: ubuntu-24.04 tools: python: "3.12" + jobs: + post_checkout: + # ensure that a tagged version is fetched + - git fetch --unshallow || true sphinx: configuration: docs/conf.py From ce1f96b6311f545ba05338f38ceaacd5639bfe36 Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Mon, 3 Nov 2025 21:09:24 -0800 Subject: [PATCH 2/4] attempt 2 --- .readthedocs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index a373c21..61311af 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,6 +8,8 @@ build: post_checkout: # ensure that a tagged version is fetched - git fetch --unshallow || true + - git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true + - git fetch --all --tags || true sphinx: configuration: docs/conf.py From 835e25aa0fee5cbb99354a97c6017a69f85dc308 Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Mon, 3 Nov 2025 21:12:34 -0800 Subject: [PATCH 3/4] Attempt uv --- .readthedocs.yml | 15 ++++++++------- docs/conf.py | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 61311af..c777358 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,13 +10,14 @@ build: - git fetch --unshallow || true - git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true - git fetch --all --tags || true + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + create_environment: + - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" + install: + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen sphinx: configuration: docs/conf.py - -python: - install: - - method: pip - path: . - extra_requirements: - - dev \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 451fcf5..b00d3c0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,6 @@ import re # scheil must be importable to build API documentation and for version retreiva -sys.path.insert(0, os.path.abspath('../scheil')) from scheil import __version__ as scheil_version # Remove the local version date from the end if there is one scheil_version = re.sub('\\.d[0-9]{8}', '', scheil_version) From a833cd68a9601b16fdd44c4386acdbee14f8f49c Mon Sep 17 00:00:00 2001 From: Brandon Bocklund Date: Mon, 3 Nov 2025 21:13:29 -0800 Subject: [PATCH 4/4] uv 2 --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index c777358..48ce6bf 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -17,7 +17,7 @@ build: create_environment: - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" install: - - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --frozen + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync sphinx: configuration: docs/conf.py