From a5e8650513ce1f5952b9e70eb61487260f2712c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Thu, 21 Mar 2024 09:26:32 -0400 Subject: [PATCH] ENH: Remove unnecessary `docs/requirements.txt` Remove unnecessary `docs/requirements.txt`: documentation dependencies are listed in the `[doc]` section of the `pyproject.toml` file. Use the `pip install .[doc]` command to install the package dependencies, including the documentation packages, in the GitHub workflow files. --- .github/workflows/docs-build-pr.yml | 2 +- .github/workflows/docs-build-update.yml | 2 +- docs/requirements.txt | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 docs/requirements.txt diff --git a/.github/workflows/docs-build-pr.yml b/.github/workflows/docs-build-pr.yml index fc96c4e2..b88ffad2 100644 --- a/.github/workflows/docs-build-pr.yml +++ b/.github/workflows/docs-build-pr.yml @@ -40,7 +40,7 @@ jobs: - name: Install dependencies run: | pip install -U build hatch pip - pip install -r docs/requirements.txt + pip install .[doc] python -m hatch version | tail -n1 - name: Build docs diff --git a/.github/workflows/docs-build-update.yml b/.github/workflows/docs-build-update.yml index a3be07b4..14c76204 100644 --- a/.github/workflows/docs-build-update.yml +++ b/.github/workflows/docs-build-update.yml @@ -43,7 +43,7 @@ jobs: - name: Install dependencies run: | pip install -U build hatch pip - pip install -r docs/requirements.txt + pip install .[doc] python -m hatch version | tail -n1 - name: Build docs diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 85f17b2c..00000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -attrs >= 20.1.0 -furo >= 2024.01.29 -matplotlib >= 2.2.0 -packaging -sphinx >= 4.5 -sphinxcontrib-apidoc -nireports