From b43d11ed56a53161e394a8e0aea1d21018b2e3ab Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Fri, 11 Sep 2026 09:29:44 +0200 Subject: [PATCH 1/3] fix: moving to poetry 2 build --- CHANGELOG.md | 2 +- CONTRIBUTING.md | 2 +- README.rst | 22 +++++----- doc/source/conf.py | 4 +- .../getting_started/configure_visor.rst | 2 +- doc/source/getting_started/installation.rst | 2 +- .../user_guide/launching_visor/metadata.rst | 2 +- pyproject.toml | 43 +++++++++++-------- .../e2e/regressions/test_update_variables.py | 2 +- 9 files changed, 43 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2269b442..b428e2fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -This project uses [towncrier](https://towncrier.readthedocs.io/) and the changes for the upcoming release can be found in . +This project uses [towncrier](https://towncrier.readthedocs.io/) and the changes for the upcoming release can be found in . \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b2732105..5f8ff32d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ VISOR. The following contribution information is specific to VISOR. Additional information can be found in the -[VISOR Contributing](https://vigilant-lamp-162kw9z.pages.github.io/version/dev/contributing/index.html) +[VISOR Contributing](https://visor.docs.pyansys.com/version/dev/contributing/index.html) documentation. [Contributing]: https://dev.docs.pyansys.com/how-to/contributing.html diff --git a/README.rst b/README.rst index 646ad4fc..c77a7271 100644 --- a/README.rst +++ b/README.rst @@ -16,8 +16,8 @@ Visual Interactive Simulation Object Renderer (VISOR) :target: https://pypi.org/project/ansys-visor-viewer :alt: PyPI -.. |GH-CI| image:: https://github.com/ansys/visor/actions/workflows/build_and_release.yml/badge.svg?branch=main - :target: https://github.com/ansys/visor/actions/workflows/build_and_release.yml +.. |GH-CI| image:: https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/actions/workflows/build_and_release.yml/badge.svg?branch=main + :target: https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/actions/workflows/build_and_release.yml :alt: GH-CI .. |codecov| image:: https://codecov.io/gh/ansys/visor/branch/main/graph/badge.svg @@ -73,7 +73,7 @@ Installation ------------ To set up prerequisites and install VISOR, see -`Getting started `_ +`Getting started `_ in the VISOR documentation. @@ -81,7 +81,7 @@ Quick start ----------- For a basic usage example, see -`Quick start `_ +`Quick start `_ in the VISOR documentation. @@ -101,9 +101,9 @@ VISOR documentation. * **Standalone Python** * Launch a desktop VISOR app with the Python package ``ansys.visor.viewer`` to visualize files. - * See `VISOR Python API `_ + * See `VISOR Python API `_ for API usage examples. - * See `API reference `_ + * See `API reference `_ for details about the Python API. * **VISOR HTTP service** @@ -111,20 +111,20 @@ VISOR documentation. * Manage multiple VISOR instances through the VISOR HTTP API. * Integrate with `PIM (Product Instance Management) `_ to manage VISOR instances in SAF apps. - * See `VISOR HTTP service `_ + * See `VISOR HTTP service `_ for usage examples. - * See `HTTP API reference `_ + * See `HTTP API reference `_ for API details. * **Dash frontend app** * Connect to a VISOR instance from a Dash app with the VISOR Dash component in ``ansys.visor.dash.dash_visor_viewer``. - * See `VISOR Dash component `_ + * See `VISOR Dash component `_ for details. For advanced usage and configuration options, see the following VISOR documentation: -`User guide `_ and -`Examples `_ in the +`User guide `_ and +`Examples `_ in the VISOR sections. diff --git a/doc/source/conf.py b/doc/source/conf.py index c9cb87f0..c282df74 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -76,7 +76,7 @@ "json_url": "_static/versions.json", "version_match": switcher_version, }, - "github_url": "https://github.com/ansys/visor/", + "github_url": "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/", "show_prev_next": False, "show_breadcrumbs": True, "collapse_navigation": True, @@ -252,5 +252,5 @@ def setup(app): # available until the release is published. if switcher_version != "dev": linkcheck_ignore.append( - f"https://github.com/ansys/visor/releases/tag/v{__version__}" + f"https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/releases/tag/v{__version__}" ) \ No newline at end of file diff --git a/doc/source/getting_started/configure_visor.rst b/doc/source/getting_started/configure_visor.rst index 924b180d..7f77af6a 100644 --- a/doc/source/getting_started/configure_visor.rst +++ b/doc/source/getting_started/configure_visor.rst @@ -45,7 +45,7 @@ Settings defaults ================= You can use a ``.visor`` file to override the following default values from the -`Settings class `_: +`Settings class `_: .. code-block:: yaml diff --git a/doc/source/getting_started/installation.rst b/doc/source/getting_started/installation.rst index 3ad26300..e2dab143 100644 --- a/doc/source/getting_started/installation.rst +++ b/doc/source/getting_started/installation.rst @@ -59,7 +59,7 @@ Developer installation .. code:: console - git clone https://github.com/ansys/visor.git + git clone https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/.git cd visor #. Create a virtual environment: diff --git a/doc/source/user_guide/launching_visor/metadata.rst b/doc/source/user_guide/launching_visor/metadata.rst index c07b30df..78ee22f7 100644 --- a/doc/source/user_guide/launching_visor/metadata.rst +++ b/doc/source/user_guide/launching_visor/metadata.rst @@ -149,7 +149,7 @@ Only the initial opacity is supported as a per-part property. Reference ~~~~~~~~~ -Reference: ``Metadata`` class (`source code `_). +Reference: ``Metadata`` class (`source code `_). .. literalinclude:: ../../../../src/ansys/visor/viewer/core/metadata.py :pyobject: Metadata diff --git a/pyproject.toml b/pyproject.toml index dd8749c0..73860681 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["poetry-core>=1.0.0,<1.3.0", "setuptools>=65.0"] +requires = ["poetry-core>=2.0.0,<3.0.0", "setuptools>=65.0"] build-backend = "poetry.core.masonry.api" # The following lines were added to enforce the poetry version needed for the project. @@ -7,14 +7,17 @@ build-backend = "poetry.core.masonry.api" [build-system-requirements] build-system-version = "1.7.0" -[tool.poetry] +[project] name = "ansys-visor-viewer" version = "1.0.dev0" -description = "\"VISOR 3D visualization web component framework\"" -authors = ["VISOR Team "] +description = "VISOR 3D visualization web component framework" +requires-python = ">=3.11,<4.0" +dynamic = ["dependencies"] +authors = [ + { name = "VISOR Team", email = "visor@synopsys.com" }, +] readme = "README.rst" license = "Apache-2.0" -repository = "https://github.com/ansys/visor" classifiers = [ "Development Status :: 3 - Alpha", "Operating System :: OS Independent", @@ -28,6 +31,20 @@ classifiers = [ "Topic :: Multimedia :: Graphics :: 3D Rendering", "Topic :: Multimedia :: Graphics :: Viewers", ] + +[project.scripts] +visor-setup = "ansys.visor.viewer.utils.autosetup:main" +visor-cli = "ansys.visor.viewer.cli.visor_cli:main" + +[project.urls] +Bugs = "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/issues" +Documentation = "https://visor.docs.pyansys.com/" +Source = "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/" +Discussions = "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/discussions" +Releases = "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/releases" +Changelog = "https://github.com/ansys/Visual-Interactive-Simulation-Object-Renderer/blob/main/CHANGELOG.md" + +[tool.poetry] packages = [ { include = "ansys/visor/viewer", from = "src" }, { include = "visordash", from = "src/ansys/visor/dash" }, @@ -42,18 +59,6 @@ include = [ { path = "LICENSE", format = ["sdist", "wheel"] }, ] -[tool.poetry.scripts] -visor-setup = "ansys.visor.viewer.utils.autosetup:main" -visor-cli = "ansys.visor.viewer.cli.visor_cli:main" - -[tool.poetry.urls] -Bugs = "https://github.com/ansys/visor/issues" -Documentation = "https://github.com/pages/auth?nonce=d0e90489-388e-415e-a0ca-0dc8d2f3c1e3&page_id=60759470&path=L3ZlcnNpb24vZGV2L2luZGV4Lmh0bWw" -Source = "https://github.com/ansys/visor" -Discussions = "https://github.com/ansys/visor/discussions" -Releases = "https://github.com/ansys/visor/releases" -Changelog = "https://github.com/ansys/visor/blob/main/CHANGELOG.md" - [tool.poetry.dependencies] python = "^3.11" trame = "3.12.0" @@ -126,8 +131,8 @@ directory = "doc/changelog.d" filename = "doc/source/changelog.rst" start_string = ".. towncrier release notes start\n" template = "doc/changelog.d/changelog_template.jinja" -title_format = "`{version} `_ - {project_date}" -issue_format = "`#{issue} `_" +title_format = "`{version} `_ - {project_date}" +issue_format = "`#{issue} `_" [[tool.towncrier.type]] directory = "breaking" diff --git a/tests/e2e/regressions/test_update_variables.py b/tests/e2e/regressions/test_update_variables.py index cc1e34c2..bbe75206 100644 --- a/tests/e2e/regressions/test_update_variables.py +++ b/tests/e2e/regressions/test_update_variables.py @@ -43,7 +43,7 @@ def test_update_variables(visor_server, request): updates the variable values to constant values, and verifies the update took place. Test replicates example in documentation: - https://supreme-fiesta-v6v17mm.pages.github.io/version/dev/examples/03-updating-visor-scene + https://visor.docs.pyansys.com/version/dev/examples/03-updating-visor-scene """ visor = visor_server From dba070042387908e87a0c4efaa08e17ad7cfc233 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:31:18 +0000 Subject: [PATCH 2/3] chore: adding changelog file 99.fixed.md [dependabot-skip] --- doc/changelog.d/99.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/99.fixed.md diff --git a/doc/changelog.d/99.fixed.md b/doc/changelog.d/99.fixed.md new file mode 100644 index 00000000..5c1cf891 --- /dev/null +++ b/doc/changelog.d/99.fixed.md @@ -0,0 +1 @@ +Moving to poetry 2 build From 821dd6de7e966e5d50894e32444cc26810a19f87 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Fri, 11 Sep 2026 09:35:55 +0200 Subject: [PATCH 3/3] fix: lock file issue --- poetry.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7e0f6cfc..c083c87b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.4.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.3.2 and should not be changed by hand. [[package]] name = "accessible-pygments" @@ -4844,4 +4844,4 @@ type = ["pytest-mypy (>=1.0.1) ; platform_python_implementation != \"PyPy\""] [metadata] lock-version = "2.1" python-versions = "^3.11" -content-hash = "a93d7da0ef2070cf3bc9f5a6ab98d6a176ef98d65af89d84e36449ac489b3245" +content-hash = "62b8a9dd70649a4e2e0347aed933c708c0a81189394d7347ea0d0c57482e3577"