From b4dee87b562db106e22ef2cd1c6034f61329b44b Mon Sep 17 00:00:00 2001 From: Gabe Joseph Date: Wed, 14 Sep 2022 10:20:27 -0600 Subject: [PATCH] Fix docs build for PDM again (#175) --- .readthedocs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 4ff236f..2d1ba30 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,7 +9,9 @@ build: python: "3.8" jobs: post_install: - - pip install --upgrade pdm + # Install PDM in its own isolated environment, so docs deps don't trample its deps + - curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 - + # TODO how to get `pdm` on the $PATH? # https://github.com/pdm-project/pdm/discussions/1365#discussioncomment-3581356 # NOTE: pandoc fails in isolation mode - - VIRTUAL_ENV=$(dirname $(dirname $(which python))) pdm install --no-isolation -G viz -dG docs + - VIRTUAL_ENV=$(dirname $(dirname $(which python))) $HOME/.local/bin/pdm sync --no-isolation -G viz -dG docs