From 106e6d5cddea74a8ceacbf6e5267653092b7a49f Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 23 Jan 2023 16:05:46 +0100 Subject: [PATCH 1/7] upgrade the os --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index cf263cc666a..418bb8568f2 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,7 +1,7 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: mambaforge-4.10 From 2a7fc80c91eb4cf3b39488856c251700a1745689 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 23 Jan 2023 16:09:35 +0100 Subject: [PATCH 2/7] get the correct version in builds Even if we don't display it in the built documentation anymore, some functionality like `pandas.DataFrame.to_xarray` have a version check. --- .readthedocs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 418bb8568f2..d77d63b958d 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,6 +4,11 @@ build: os: ubuntu-22.04 tools: python: mambaforge-4.10 + jobs: + post_checkout: + - git fetch --unshallow --tags # to allow setuptools_scm to work properly + pre_install: + - git update-index --assume-unchanged doc/conf.py ci/requirements/doc.yml conda: environment: ci/requirements/doc.yml From 97cf7c309f45d670de6d8a7074799c7d7158d559 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Tue, 24 Jan 2023 17:17:11 +0100 Subject: [PATCH 3/7] print the last 5 commits [skip-rtd] [skip-ci] --- .readthedocs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 9f9cd2843cc..8efe2d22266 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,6 +6,7 @@ build: python: mambaforge-4.10 jobs: post_checkout: + - git log --pretty=oneline HEAD~5.. - git fetch --unshallow --tags # to allow setuptools_scm to work properly - (git --no-pager log --pretty="tformat:%s" -1 | grep -viq "[skip-rtd]") || exit 183 pre_install: From 9d42e7e68834212adfe1aa8aed503643d76955d4 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Wed, 25 Jan 2023 15:21:39 +0100 Subject: [PATCH 4/7] remove the "unshallow" apparently, it does not make sense for complete repos, so git fails. --- .readthedocs.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8efe2d22266..4a8484521b3 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,7 +7,6 @@ build: jobs: post_checkout: - git log --pretty=oneline HEAD~5.. - - git fetch --unshallow --tags # to allow setuptools_scm to work properly - (git --no-pager log --pretty="tformat:%s" -1 | grep -viq "[skip-rtd]") || exit 183 pre_install: - git update-index --assume-unchanged doc/conf.py ci/requirements/doc.yml From e15ff813ff644dd30cbd838b02a4ddc292f44781 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Wed, 25 Jan 2023 15:22:24 +0100 Subject: [PATCH 5/7] also remove the history print The idea was to check whether there was a special commit on top of the most recent commit of the PR (this seems to be the case on GH actions). There's none, so we don't need the print. --- .readthedocs.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 4a8484521b3..101bddef2c1 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,7 +6,6 @@ build: python: mambaforge-4.10 jobs: post_checkout: - - git log --pretty=oneline HEAD~5.. - (git --no-pager log --pretty="tformat:%s" -1 | grep -viq "[skip-rtd]") || exit 183 pre_install: - git update-index --assume-unchanged doc/conf.py ci/requirements/doc.yml From 17938f407a9a3cb5d2568894a48776b9a32f4eea Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Wed, 25 Jan 2023 15:24:07 +0100 Subject: [PATCH 6/7] [skip-ci] [skip-rtd] From 4d3704e64152e4ccc9774a562403b3121a50bd20 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Wed, 25 Jan 2023 15:27:56 +0100 Subject: [PATCH 7/7] [skip-ci] [skip-rtd]