From 92ecde3c3629a17a121fc6fdc1d9eefc5e648f6d Mon Sep 17 00:00:00 2001 From: sekyonda <127536312+sekyondaMeta@users.noreply.github.com> Date: Tue, 4 Nov 2025 18:07:41 -0800 Subject: [PATCH 1/2] Update requirements.txt Use Pypi pytorch_sphinx theme version --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 05ddbfd88..9701400db 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,7 +2,7 @@ docutils==0.18.1,<0.21 linkify-it-py myst-parser pillow -pytorch_sphinx_theme2 @ git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2 +pytorch_sphinx_theme2==0.2.0 sphinx==7.2.6 sphinx-autobuild sphinx-autodoc-typehints From 048d13253442371a3a975385031bc59bf2d0a8fd Mon Sep 17 00:00:00 2001 From: sekyonda <127536312+sekyondaMeta@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:41:25 -0800 Subject: [PATCH 2/2] Update build to come from pyproject --- .github/workflows/docs-deploy.yml | 3 +-- .github/workflows/docs-test.yml | 3 +-- docs/requirements.txt | 15 --------------- pyproject.toml | 17 +++++++++++++++++ 4 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 docs/requirements.txt diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 1bed6c301..327f0284b 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -48,8 +48,7 @@ jobs: - name: Install docs requirements and project run: | - pip install -r docs/requirements.txt - pip install -e . + pip install -e .[docs] - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 18b92abab..45b8c0d7d 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -36,8 +36,7 @@ jobs: - name: Install docs requirements and project run: | - pip install -r docs/requirements.txt - pip install -e . + pip install -e .[docs] - name: Build documentation run: | diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 9701400db..000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,15 +0,0 @@ -docutils==0.18.1,<0.21 -linkify-it-py -myst-parser -pillow -pytorch_sphinx_theme2==0.2.0 -sphinx==7.2.6 -sphinx-autobuild -sphinx-autodoc-typehints -sphinx-design==0.6.1 -sphinx-gallery==0.14.0 -sphinx-sitemap==2.7.1 -sphinxcontrib-mermaid==1.0.0 -sphinxcontrib.katex==0.9.10 -sphinxext-opengraph -torch diff --git a/pyproject.toml b/pyproject.toml index f51d88a68..3a317a070 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,23 @@ dev = [ "pytest", "pre-commit" ] +docs = [ + "docutils==0.18.1,<0.21", + "linkify-it-py", + "myst-parser", + "pillow", + "pytorch_sphinx_theme2==0.2.0", + "sphinx==7.2.6", + "sphinx-autobuild", + "sphinx-autodoc-typehints", + "sphinx-design==0.6.1", + "sphinx-gallery==0.14.0", + "sphinx-sitemap==2.7.1", + "sphinxcontrib-mermaid==1.0.0", + "sphinxcontrib.katex==0.9.10", + "sphinxext-opengraph", + "torch" +] [project.urls] Homepage = "https://github.com/pytorch/helion"