From 98266c64a7f5d3beba0a1f5faeb7c564aba77dde Mon Sep 17 00:00:00 2001 From: rwijtvliet Date: Fri, 5 Jul 2024 10:01:44 +0200 Subject: [PATCH] fixed issue with readthedocs not working well with poetry --- .readthedocs.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index bac2e57..132b8c5 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,20 +5,27 @@ build: tools: python: "3.10" jobs: - post_create_environment: - # Install poetry - # https://python-poetry.org/docs/#installing-manually + post_install: - pip install poetry # Tell poetry to not use a virtual environment - - poetry config virtualenvs.create false - post_install: # Install dependencies with 'docs' dependency group # https://python-poetry.org/docs/managing-dependencies/#dependency-groups - - poetry install --with docs + - poetry export -f requirements.txt --without-hashes --without-urls --with docs -o requirements.txt + - pip install -r requirements.txt + #- pip list + #post_create_environment: + # # Install poetry + # # https://python-poetry.org/docs/#installing-manually + # - pip install poetry + # # Tell poetry to not use a virtual environment + # - poetry config virtualenvs.create false + # post_install: + # # Install dependencies with 'docs' dependency group + # # https://python-poetry.org/docs/managing-dependencies/#dependency-groups + # - poetry install --with docs sphinx: configuration: docs/conf.py submodules: include: all -