From ad4cb7366bc0321d9ffcc038d92e8fb227fcfdaf Mon Sep 17 00:00:00 2001 From: Jannis Necker Date: Sat, 11 Jan 2025 18:52:37 +0100 Subject: [PATCH] Fix `readthedocs` deployment (#139) * fix myst parser version print * follow readthedocs instructions * add setuptools to install SciServer * install setuptools in correct venv --- .github/workflows/continous_integration.yml | 1 + .readthedocs.yaml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continous_integration.yml b/.github/workflows/continous_integration.yml index 4936756..5e482a3 100644 --- a/.github/workflows/continous_integration.yml +++ b/.github/workflows/continous_integration.yml @@ -51,6 +51,7 @@ jobs: python -m pip install --upgrade pip python -m pip install poetry python -m poetry install + poetry run pip install setuptools cd SciScript-Python poetry run python Install.py sciserver-v2.1.0 cd .. diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8a26df5..ead40e7 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -15,11 +15,9 @@ build: # Install poetry # https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions - pip install poetry - # Tell poetry to not use a virtual environment - - poetry config virtualenvs.create false post_install: # Install project's dependencies - - poetry install --with docs + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs - python -c "import myst_parser; print(myst_parser.__version__)" # Build documentation in the docs/ directory with Sphinx