From f0d3e6e89c90ee02e98e033a85b9d51dc411dba4 Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 13:05:48 -0500 Subject: [PATCH 01/11] Update dependencies. --- LICENSE | 42 +++++++++++++++---------------- doc/source/contributing/index.rst | 2 +- pyproject.toml | 12 ++++----- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/LICENSE b/LICENSE index e40f17b8..1eaa3696 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2022 - 2025 ANSYS, Inc. and/or its affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2022 - 2025 ANSYS, Inc. and/or its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/doc/source/contributing/index.rst b/doc/source/contributing/index.rst index efd5d6fb..4d71a082 100644 --- a/doc/source/contributing/index.rst +++ b/doc/source/contributing/index.rst @@ -123,7 +123,7 @@ for your operating system: :: .\doc\make.bat html - .\doc\build\html\index.html + .\doc\_build\html\index.html Post issues ----------- diff --git a/pyproject.toml b/pyproject.toml index c9d91e90..1708f583 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,23 +41,23 @@ dependencies = [ doc=[ "ansys-engineeringworkflow-api==0.1.0", "ansys-sphinx-theme==0.14.0", - "numpydoc==1.6.0", + "numpydoc==1.8.0", "pyansys-tools-variableinterop==0.1.1", "pytest-sphinx==0.6.3", - "Sphinx==7.2.6", + "Sphinx==8.1.3", "sphinx-copybutton==0.5.2", "sphinx-design==0.6.1", "sphinx-copybutton==0.5.2", - "sphinx-autoapi==3.4.0", - "sphinx-gallery==0.15.0", + "sphinx-autoapi==3.6.1", + "sphinx-gallery==0.19.0", "sphinx-notfound-page==1.0.4", ] tests = [ "ansys-engineeringworkflow-api==0.1.0", - "grpcio==1.59.0", + "grpcio==1.71.2", "pyansys-tools-variableinterop==0.1.1", "pytest==8.0.0", - "pytest-cov==4.1.0", + "pytest-cov==6.0.0", ] [tool.flit.module] From 1bde9f55b8709db61188f98c0807f14daad1f69d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 18:07:28 +0000 Subject: [PATCH 02/11] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- LICENSE | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/LICENSE b/LICENSE index 1eaa3696..e40f17b8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2022 - 2025 ANSYS, Inc. and/or its affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2022 - 2025 ANSYS, Inc. and/or its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 0b06d5d2c401a1ff64294bc46faf36c4ef570db0 Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 13:11:08 -0500 Subject: [PATCH 03/11] Update expected string in test to match new value returned by grpc. --- tests/test_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_engine.py b/tests/test_engine.py index fbe1a3d3..168c5bed 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py @@ -434,7 +434,7 @@ def test_get_channel(setup_function) -> None: channel = engine.channel # Assert - assert cast(Any, channel)._channel.target() == b"localhost:12345" + assert cast(Any, channel)._channel.target() == b"dns:///localhost:12345" def test_heartbeat_method_sends_grpc_calls_until_released(monkeypatch, setup_function) -> None: From df119711cdcf6f0a1dcb7705c319cb2e7b502571 Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 13:56:24 -0500 Subject: [PATCH 04/11] Trying to fix doc failures by upgrading some more sphinx related dependencies. --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1708f583..d11f8b66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,17 +40,16 @@ dependencies = [ [project.optional-dependencies] doc=[ "ansys-engineeringworkflow-api==0.1.0", - "ansys-sphinx-theme==0.14.0", + "ansys-sphinx-theme==1.6.3", "numpydoc==1.8.0", "pyansys-tools-variableinterop==0.1.1", "pytest-sphinx==0.6.3", "Sphinx==8.1.3", "sphinx-copybutton==0.5.2", "sphinx-design==0.6.1", - "sphinx-copybutton==0.5.2", "sphinx-autoapi==3.6.1", "sphinx-gallery==0.19.0", - "sphinx-notfound-page==1.0.4", + "sphinx-notfound-page==1.1.0", ] tests = [ "ansys-engineeringworkflow-api==0.1.0", From c870a09b7e5ac5c1d3b25c3d01ce42c96dc04c3b Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 14:21:18 -0500 Subject: [PATCH 05/11] Fix autoapi results not being included in docs. --- doc/source/conf.py | 2 +- doc/source/contributing/index.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 4c5988fd..8e32fe33 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -140,7 +140,7 @@ # Configuration for Sphinx autoapi autoapi_type = "python" -autoapi_dirs = ["../../src/ansys/"] +autoapi_dirs = ["../../src/ansys/modelcenter/workflow"] autoapi_root = "api" autoapi_options = [ "members", diff --git a/doc/source/contributing/index.rst b/doc/source/contributing/index.rst index 4d71a082..d81127c2 100644 --- a/doc/source/contributing/index.rst +++ b/doc/source/contributing/index.rst @@ -108,14 +108,14 @@ for your operating system: :: - make -C doc/ html && your_browser_name doc/build/html/index.html + make -C doc/ html && your_browser_name doc/_build/html/index.html .. tab-item:: macOS :sync: macos :: - make -C doc/ html && your_browser_name doc/build/html/index.html + make -C doc/ html && your_browser_name doc/_build/html/index.html .. tab-item:: Windows :sync: windows From e5542b0e442c20006167382deeff92629ab1bead Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 14:30:40 -0500 Subject: [PATCH 06/11] Attempt to fix fontawesome issue with doc-build task. --- .github/workflows/ci_cd.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index c6e8c43f..d8624465 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -105,10 +105,9 @@ jobs: needs: [doc-style] steps: - name: "Run Ansys documentation building action" - uses: ansys/actions/doc-build@v8 + uses: ansys/actions/doc-build@v10 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} - dependencies: "texlive-fonts-extra " package: name: "Package library" From 1738889f7f7c89048438382834a01363c3e7d8c1 Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 14:35:31 -0500 Subject: [PATCH 07/11] Add back texlive-fonts-extra. --- .github/workflows/ci_cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d8624465..5bddbc0b 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -108,6 +108,7 @@ jobs: uses: ansys/actions/doc-build@v10 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} + dependencies: "texlive-fonts-extra" package: name: "Package library" From 72990541952a8fee08c7cd9c865b0fb1926941da Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 15:39:07 -0500 Subject: [PATCH 08/11] Another attempt to fix doc build. --- .github/workflows/ci_cd.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 5bddbc0b..bb0e6061 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -104,11 +104,18 @@ jobs: runs-on: ubuntu-latest needs: [doc-style] steps: + - name: Temporary handle broken package dependencies + shell: bash + run: | + sudo apt-get update + sudo apt-get --fix-broken install -y + sudo apt-get install -y texlive-latex-extra latexmk texlive-fonts-extra + - name: "Run Ansys documentation building action" - uses: ansys/actions/doc-build@v10 + uses: ansys/actions/doc-build@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} - dependencies: "texlive-fonts-extra" + #dependencies: "texlive-fonts-extra" package: name: "Package library" From 59ef6662fe9c3258a8b27ba3e541347c52202599 Mon Sep 17 00:00:00 2001 From: phx-mpascale Date: Wed, 12 Nov 2025 15:44:32 -0500 Subject: [PATCH 09/11] Forgot the skip-install flag. --- .github/workflows/ci_cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index bb0e6061..e1aa4289 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -115,6 +115,7 @@ jobs: uses: ansys/actions/doc-build@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} + skip-install: true #dependencies: "texlive-fonts-extra" package: From 279d099903e9489017a8309e706de2d4a5447306 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 19 Nov 2025 04:54:04 +0100 Subject: [PATCH 10/11] fix: pdf build error --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 8e32fe33..c434a5b0 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -214,4 +214,4 @@ # change the preamble of latex with customized title page # variables are the title of pdf, watermark latex_elements = {"preamble": latex.generate_preamble(html_title)} -sd_fontawesome_latex = True +# sd_fontawesome_latex = True From 5db6b0061624b4379269742b2630a233d6d24db7 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Wed, 19 Nov 2025 05:01:17 +0100 Subject: [PATCH 11/11] fix: pdf build error --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c434a5b0..68a4ab51 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -150,7 +150,7 @@ "special-members", ] autoapi_template_dir = get_autoapi_templates_dir_relative_path(Path(__file__)) -suppress_warnings = ["autoapi.python_import_resolution"] +suppress_warnings = ["autoapi.python_import_resolution", "design.fa-build"] autoapi_python_use_implicit_namespaces = True autoapi_render_in_single_page = ["class", "enum", "exception"] autoapi_own_page_level = "class"