From 0a506d940aaf097b6de792c05b0b2bd3547edb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Tue, 25 Jun 2024 21:22:15 -0300 Subject: [PATCH 1/2] Handle doc dependencies via pyproject.toml --- .github/workflows/docs.yml | 3 ++- pyproject.toml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9254092..366cef7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,7 +10,8 @@ jobs: - uses: actions/setup-python@v3 - name: Install dependencies run: | - pip install sphinx sphinx_rtd_theme + python -m pip install --upgrade pip + pip install '.[doc]' - name: Sphinx build run: | sphinx-build -b html docs/source docs/build/html diff --git a/pyproject.toml b/pyproject.toml index 755cc96..2a7eea0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,3 +17,9 @@ authors = [ ] description = "Bot de telegram para organizar pycamp" readme = "README.md" + +[project.optional-dependencies] +doc = [ + "sphinx==7.3.7", + "sphinx_rtd_theme==2.0.0", +] From 6628b088a243b29ab0ac9c3ac17c53fbf5c2c1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Tue, 25 Jun 2024 21:44:57 -0300 Subject: [PATCH 2/2] Handle doc dependencies via pyproject.toml --- .readthedocs.yaml | 3 ++- docs/requirements.txt | 0 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 docs/requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2b52f96..954d1e0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,9 +7,10 @@ build: python: install: - - requirements: docs/requirements.txt - method: pip path: . + extra_requirements: + - doc system_packages: true sphinx: diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index e69de29..0000000