From d756a171ca44b3c922375782288356dc9043207f Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 13:54:41 -0500 Subject: [PATCH 01/11] Update .readthedocs.yml --- .readthedocs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 38e6c02..b009a73 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,14 +1,14 @@ version: 2 sphinx: - configuration: doc/conf.py + configuration: doc/conf.py python: install: - requirements: requirements-ci.txt - requirements: doc/requirements.txt - method: pip - path: . + path: . build: os: ubuntu-22.04 From 2fe9bb91193623b2e71bf172c29fa3b56c44dbfe Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:14:27 -0500 Subject: [PATCH 02/11] Update .readthedocs.yml --- .readthedocs.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index b009a73..da55fc5 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,19 +1,17 @@ version: 2 sphinx: - configuration: doc/conf.py + configuration: doc/conf.py python: - install: - - requirements: requirements-ci.txt - - requirements: doc/requirements.txt - - method: pip - path: . + install: + - requirements: doc/requirements.txt + - method: pip + path: . build: - os: ubuntu-22.04 - tools: - python: "3.8" - jobs: - pre_install: - - echo "setuptools~=66.0\npip~=22.0" >> requirements-ci.txt + os: ubuntu-22.04 + tools: + python: "3.9" + apt_packages: + - graphviz From 5ffbe22778bf78ff0e3a684866cff16504988d5d Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:16:02 -0500 Subject: [PATCH 03/11] remove graphviz --- .readthedocs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index da55fc5..acec301 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,5 +13,3 @@ build: os: ubuntu-22.04 tools: python: "3.9" - apt_packages: - - graphviz From 05ea162a65c0113c9e1ccf4f3facb2ac21b5b3c9 Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:20:38 -0500 Subject: [PATCH 04/11] Add sphinxcontrib-applehelp --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 60e00b3..c583549 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -13,6 +13,7 @@ docutils==0.16 StrawberryFields==0.23.0 sphinx==3.5; python_version < "3.10" sphinx==4.2; python_version == "3.10" +sphinxcontrib-applehelp==1.0.4 sphinx-automodapi==0.13 sphinx-copybutton sphinxcontrib-bibtex==2.4.2 From dd8a349b01a68ac021b5a8cc582cb83f06d7972c Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:23:41 -0500 Subject: [PATCH 05/11] Add sphinxcontrib-devhelp --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index c583549..19cb583 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -14,6 +14,7 @@ StrawberryFields==0.23.0 sphinx==3.5; python_version < "3.10" sphinx==4.2; python_version == "3.10" sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-devhelp==1.0.2 sphinx-automodapi==0.13 sphinx-copybutton sphinxcontrib-bibtex==2.4.2 From 9cf3c044feda6b72405d6d448aef1d2b7f587752 Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:38:27 -0500 Subject: [PATCH 06/11] Add sphinxcontrib-htmlhelp --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 19cb583..71f497d 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -15,6 +15,7 @@ sphinx==3.5; python_version < "3.10" sphinx==4.2; python_version == "3.10" sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-htmlhelp==2.0.1 sphinx-automodapi==0.13 sphinx-copybutton sphinxcontrib-bibtex==2.4.2 From 1a0efbfff1d7a8aa8283215e724bfd14da618dcb Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:43:27 -0500 Subject: [PATCH 07/11] Add sphinxcontrib-serializinghtml --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 71f497d..ed9dd6c 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -16,6 +16,7 @@ sphinx==4.2; python_version == "3.10" sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 +sphinxcontrib-serializinghtml==1.1.5 sphinx-automodapi==0.13 sphinx-copybutton sphinxcontrib-bibtex==2.4.2 From 06aa22b9997916f711c5e5a9e33206191ffae455 Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:46:12 -0500 Subject: [PATCH 08/11] Add sphinxcontrib-qthelp --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index ed9dd6c..c9e62b3 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -16,6 +16,7 @@ sphinx==4.2; python_version == "3.10" sphinxcontrib-applehelp==1.0.4 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==2.0.1 +sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphinx-automodapi==0.13 sphinx-copybutton From 836e10097a8eba9fba32615339648b0dd17d95b2 Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:54:52 -0500 Subject: [PATCH 09/11] Update .readthedocs.yml --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index acec301..8b8be0e 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -12,4 +12,4 @@ python: build: os: ubuntu-22.04 tools: - python: "3.9" + python: "3.10" From b8b408f482ead31c5100506067bc7e6754174e6d Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Tue, 14 Jan 2025 14:57:34 -0500 Subject: [PATCH 10/11] Update .readthedocs.yml --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8b8be0e..acec301 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -12,4 +12,4 @@ python: build: os: ubuntu-22.04 tools: - python: "3.10" + python: "3.9" From a60416c949cf800e37f8af39a421e16b29c57f63 Mon Sep 17 00:00:00 2001 From: Andrew Gardhouse Date: Mon, 20 Jan 2025 09:14:59 -0500 Subject: [PATCH 11/11] Disable tests and formatting if only docs are updated --- .github/workflows/format.yml | 10 +++++++++- .github/workflows/tests.yml | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 544bfad..ca56468 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,6 +1,14 @@ name: Formatting check on: -- pull_request + pull_request: + paths: + - pennylane_sf/** + - tests/** + - .pylintrc + - Makefile + - requirements-ci.txt + - requirements.txt + - setup.py jobs: black: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1fd2034..6803fc3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,14 @@ on: branches: - master pull_request: + paths: + - pennylane_sf/** + - tests/** + - .pylintrc + - Makefile + - requirements-ci.txt + - requirements.txt + - setup.py jobs: tests: