From 9cc0faa85102a1571b71b209b4354b0e56df1f0a Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Mon, 4 Mar 2024 22:06:44 +0300 Subject: [PATCH] CI: Use requirements/doc.txt --- .github/workflows/documentation.yml | 5 +---- Makefile | 1 + doc/Makefile | 1 - requirements/doc.txt | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index abd1a81bc..a4df1aaf9 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -57,10 +57,7 @@ jobs: - name: Install Package shell: bash run: | - pip install git+https://github.com/has2k1/quartodoc.git@main - python -m pip install ".[doc]" - pip install -r requirements/doc.txt - pushd doc; make install-filters; popd + make doc-deps - name: Environment Information shell: bash diff --git a/Makefile b/Makefile index 45625d323..990c13dd4 100644 --- a/Makefile +++ b/Makefile @@ -92,6 +92,7 @@ install: clean doc-deps: pip install -e ".[doc]" pip install -r requirements/doc.txt + cd doc && make deps develop: clean-cache pip install -e ".[all]" diff --git a/doc/Makefile b/doc/Makefile index 737fc5e5a..789973676 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -51,7 +51,6 @@ extensions: ## Install quarto/pandoc extensions quarto add --no-prompt has2k1/interlinks deps: extensions download_qrenderer_style ## Install build dependencies - cd ..; make doc-deps interlinks: ## Gather interlinks quartodoc interlinks diff --git a/requirements/doc.txt b/requirements/doc.txt index 13ee3a312..52348bfa4 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -1,3 +1,4 @@ # These cannot be in pyproject.toml, pypi does not install git packages +quartodoc @ git+https://github.com/machow/quartodoc#egg=quartodoc plotnine-examples @ git+https://github.com/has2k1/plotnine-examples#egg=plotnine_examples qrenderer @ git+https://github.com/has2k1/qrenderer#egg=qrenderer