From ecb72f0cce073978190d36b9fdd534817a69dfb4 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:38:27 -0400 Subject: [PATCH 1/4] docs: setup uv for readthedocs --- .readthedocs.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 83a36032..7e8844a3 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,8 +4,11 @@ build: os: ubuntu-22.04 tools: python: "mambaforge-22.9" -conda: - environment: docs/rtd_environment.yml + build: + post_create_environment: + - pip install uv + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs] sphinx: configuration: docs/conf.py formats: all From c89edcd2750a830d5e2a7909f4fc9e2ad14dd7be Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:40:44 -0400 Subject: [PATCH 2/4] fix --- .readthedocs.yaml | 2 ++ docs/rtd_environment.yml | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 7e8844a3..1fc1b6c5 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -9,6 +9,8 @@ build: - pip install uv post_install: - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs] +conda: + environment: docs/rtd_environment.yml sphinx: configuration: docs/conf.py formats: all diff --git a/docs/rtd_environment.yml b/docs/rtd_environment.yml index 2752fc1c..8851d172 100644 --- a/docs/rtd_environment.yml +++ b/docs/rtd_environment.yml @@ -1,6 +1,4 @@ name: dpdata channels: - https://repo.mamba.pm/conda-forge -dependencies: - - pip: - - ..[docs] +dependencies: [] From 48431ebfb4e6cf8e67e8433d8bd79c88c1cc20a4 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:41:23 -0400 Subject: [PATCH 3/4] Update .readthedocs.yaml --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1fc1b6c5..39beeda0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -4,7 +4,7 @@ build: os: ubuntu-22.04 tools: python: "mambaforge-22.9" - build: + jobs: post_create_environment: - pip install uv post_install: From 6a1b74ccb22d3fa2d4ff9b2e4486bc9020c886fb Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:49:44 -0400 Subject: [PATCH 4/4] Update .readthedocs.yaml --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 39beeda0..3916dad2 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,7 @@ build: post_create_environment: - pip install uv post_install: - - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs] + - uv pip install .[docs] conda: environment: docs/rtd_environment.yml sphinx: