From 10205ba417e8a084f55a97c14d2ecbcbcddeb85e Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:35:02 -0400 Subject: [PATCH 1/3] docs: setup uv for readthedocs --- .readthedocs.yml | 9 ++++++--- doc/requirements.txt | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 6f3ff6be3f..e8b81a4109 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,7 +2,10 @@ version: 2 build: os: ubuntu-20.04 tools: - python: mambaforge-4.10 -conda: - environment: doc/environment.yml + python: "3.11" + jobs: + post_create_environment: + - pip install uv + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -r doc/requirements.txt formats: all diff --git a/doc/requirements.txt b/doc/requirements.txt index 1d39662bb4..4750c09e5e 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1 +1,4 @@ -.[docs,cpu] +.[docs,cpu,torch] +"exhale @ https://github.com/svenevs/exhale/archive/2759a394268307b88f5440487ae0920ee4ebf81e.zip" +# https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/309 +docutils!=0.18.*,!=0.19.* \ No newline at end of file From fd448addc08826eb5e5c1476187883ad6dac19ff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 20:35:52 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index 4750c09e5e..a0bc5695fb 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,4 +1,4 @@ .[docs,cpu,torch] "exhale @ https://github.com/svenevs/exhale/archive/2759a394268307b88f5440487ae0920ee4ebf81e.zip" # https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/309 -docutils!=0.18.*,!=0.19.* \ No newline at end of file +docutils!=0.18.*,!=0.19.* From 3b760d17eb0a057f0ecef7899c99ff0ed7335ca2 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 16:39:13 -0400 Subject: [PATCH 3/3] remove quotes Signed-off-by: Jinzhe Zeng --- doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index a0bc5695fb..b011900147 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,4 +1,4 @@ .[docs,cpu,torch] -"exhale @ https://github.com/svenevs/exhale/archive/2759a394268307b88f5440487ae0920ee4ebf81e.zip" +exhale @ https://github.com/svenevs/exhale/archive/2759a394268307b88f5440487ae0920ee4ebf81e.zip # https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/309 docutils!=0.18.*,!=0.19.*