From 7f3c81042c6b54f5e9f16f972f4fa989e1e90d0b Mon Sep 17 00:00:00 2001 From: Abdou Seck Date: Fri, 29 Dec 2023 16:02:51 -0500 Subject: [PATCH] docs: Add an extra key in pyproject.toml and setup.py for dependencies related to docs --- .github/workflows/docs.yaml | 3 +-- pyproject.toml | 1 + setup.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 6e561d3..7950cd8 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -13,8 +13,7 @@ jobs: - uses: actions/setup-python@v4 - name: Install dependencies run: | - pip install -r requirements.txt - pip install -r requirements_dev.txt + pip install -e .[docs] - name: Sphinx build working-directory: ${{ github.workspace }}/docs run: | diff --git a/pyproject.toml b/pyproject.toml index 8516623..ac0a6c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ dynamic = ["version"] geoip = ["geoip2"] test = ["black", "isort", "pip-tools", "sphinx", "sphinx-material", "tox"] dev = ["black", "isort", "pip-tools", "sphinx", "sphinx-material", "tox"] +docs = ["sphinx", "sphinx-material"] [tool.setuptools.package-data] "simeon.upload" = ["schemas/*.json"] diff --git a/setup.py b/setup.py index d60353c..01b2888 100644 --- a/setup.py +++ b/setup.py @@ -42,6 +42,7 @@ "geoip": ["geoip2"], "test": ["black", "isort", "pip-tools", "sphinx", "sphinx-material", "tox"], "dev": ["black", "isort", "pip-tools", "sphinx", "sphinx-material", "tox"], + "docs": ["sphinx", "sphinx-material"], }, package_data={ "simeon.upload": ["schemas/*.json"],