-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Local launcher fixes #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
AlejandroFernandezLuces
wants to merge
25
commits into
main
Choose a base branch
from
fix/local-launcher-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
66415bf
fix: Local launcher fixes
AlejandroFernandezLuces 3af92b0
Merge branch 'main' into fix/local-launcher-fixes
AlejandroFernandezLuces 4e30602
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 02ea621
chore: adding changelog file 118.miscellaneous.md [dependabot-skip]
pyansys-ci-bot fac6d45
fix: Doc issues
AlejandroFernandezLuces 75505cd
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces 8b568ef
chore: adding changelog file 118.documentation.md [dependabot-skip]
pyansys-ci-bot ac0d341
fix: Add readmes to the examples
AlejandroFernandezLuces e76271a
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces a8152ac
fix: PyPandoc warning
AlejandroFernandezLuces 288843c
fix: Examples
AlejandroFernandezLuces b1340b0
fixes
AlejandroFernandezLuces 909160e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9031914
fix: Remove unneeded files
AlejandroFernandezLuces 5c5bd2d
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces 2c694b4
fix: Examples
AlejandroFernandezLuces f2d93d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d40e767
Merge branch 'main' into fix/local-launcher-fixes
AlejandroFernandezLuces 1a48355
fix: Install doc dependency
AlejandroFernandezLuces e283ecd
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces 8063f82
fix: Matplotlib dep
AlejandroFernandezLuces b8918bb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 693bdac
fix: toml file
AlejandroFernandezLuces 57d755b
Merge branch 'fix/local-launcher-fixes' of https://github.com/ansys/a…
AlejandroFernandezLuces 4093e5b
fix: Warning messages as errors
AlejandroFernandezLuces File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,7 @@ celerybeat.pid | |
| .env | ||
| .venv | ||
| env/ | ||
| venv/ | ||
| *venv/ | ||
| ENV/ | ||
| env.bak/ | ||
| venv.bak/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix: Local launcher fixes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| :orphan: | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| This section shows how to use the local launcher. | ||
|
|
||
|
|
||
| .. raw:: html | ||
|
|
||
| <div class="sphx-glr-thumbnails"> | ||
|
|
||
| .. thumbnail-parent-div-open | ||
|
|
||
| .. thumbnail-parent-div-close | ||
|
|
||
| .. raw:: html | ||
|
|
||
| </div> | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| This section shows how to use the local launcher tool. | ||
|
|
||
|
|
||
| .. raw:: html | ||
|
|
||
| <div class="sphx-glr-thumbnails"> | ||
|
|
||
| .. thumbnail-parent-div-open | ||
|
|
||
| .. thumbnail-parent-div-close | ||
|
|
||
| .. raw:: html | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
| .. toctree:: | ||
| :hidden: | ||
| :includehidden: | ||
|
|
||
|
|
||
| /examples/local_launcher/index.rst | ||
|
|
||
|
|
||
|
|
||
| .. only:: html | ||
|
|
||
| .. rst-class:: sphx-glr-signature | ||
|
|
||
| `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
|
|
||
|
|
||
| .. _sphx_glr_examples_local_launcher: | ||
|
|
||
| Examples | ||
| ======== | ||
|
|
||
| This section shows how to use the local launcher tool. | ||
|
|
||
|
|
||
| .. raw:: html | ||
|
|
||
| <div class="sphx-glr-thumbnails"> | ||
|
|
||
| .. thumbnail-parent-div-open | ||
|
|
||
| .. thumbnail-parent-div-close | ||
|
|
||
| .. raw:: html | ||
|
|
||
| </div> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
|
|
||
| :orphan: | ||
|
|
||
| .. _sphx_glr_examples_local_launcher_sg_execution_times: | ||
|
|
||
|
|
||
| Computation times | ||
| ================= | ||
| **00:00.000** total execution time for 0 files **from examples\local_launcher**: | ||
|
|
||
| .. container:: | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <style scoped> | ||
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" /> | ||
| <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" /> | ||
| </style> | ||
| <script src="https://code.jquery.com/jquery-3.7.0.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script> | ||
| <script type="text/javascript" class="init"> | ||
| $(document).ready( function () { | ||
| $('table.sg-datatable').DataTable({order: [[1, 'desc']]}); | ||
| } ); | ||
| </script> | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :class: table table-striped sg-datatable | ||
|
|
||
| * - Example | ||
| - Time | ||
| - Mem (MB) | ||
| * - N/A | ||
| - N/A | ||
| - N/A | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
|
|
||
| :orphan: | ||
|
|
||
| .. _sphx_glr_examples_sg_execution_times: | ||
|
|
||
|
|
||
| Computation times | ||
| ================= | ||
| **00:00.000** total execution time for 0 files **from examples**: | ||
|
|
||
| .. container:: | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <style scoped> | ||
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" /> | ||
| <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" /> | ||
| </style> | ||
| <script src="https://code.jquery.com/jquery-3.7.0.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script> | ||
| <script type="text/javascript" class="init"> | ||
| $(document).ready( function () { | ||
| $('table.sg-datatable').DataTable({order: [[1, 'desc']]}); | ||
| } ); | ||
| </script> | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :class: table table-striped sg-datatable | ||
|
|
||
| * - Example | ||
| - Time | ||
| - Mem (MB) | ||
| * - N/A | ||
| - N/A | ||
| - N/A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
|
|
||
| :orphan: | ||
|
|
||
| .. _sphx_glr_sg_execution_times: | ||
|
|
||
|
|
||
| Computation times | ||
| ================= | ||
| **00:00.000** total execution time for 0 files **from all galleries**: | ||
|
|
||
| .. container:: | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <style scoped> | ||
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" /> | ||
| <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" /> | ||
| </style> | ||
| <script src="https://code.jquery.com/jquery-3.7.0.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script> | ||
| <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script> | ||
| <script type="text/javascript" class="init"> | ||
| $(document).ready( function () { | ||
| $('table.sg-datatable').DataTable({order: [[1, 'desc']]}); | ||
| } ); | ||
| </script> | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :class: table table-striped sg-datatable | ||
|
|
||
| * - Example | ||
| - Time | ||
| - Mem (MB) | ||
| * - N/A | ||
| - N/A | ||
| - N/A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Examples | ||
| ======== | ||
|
|
||
| This section shows how to use the local launcher. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Examples | ||
| ======== | ||
|
|
||
| This section shows how to use the local launcher tool. |
20 changes: 20 additions & 0 deletions
20
examples/local_launcher/example_httpserver_plugin/pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [build-system] | ||
| build-backend = "flit_core.buildapi" | ||
| requires = [ "flit-core>=3.2,<4" ] | ||
|
|
||
| [project] | ||
| name = "example-httpserver-plugin" | ||
| authors = [ { name = "ANSYS, Inc.", email = "[email protected]" } ] | ||
| classifiers = [ | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| ] | ||
| dynamic = [ "description", "version" ] | ||
| dependencies = [ "ansys-tools-local-product-launcher", "requests" ] | ||
|
|
||
| entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.__fallback__" = "example_httpserver_plugin:Launcher" | ||
| entry-points."ansys.tools.local_product_launcher.launcher"."example_httpserver.direct" = "example_httpserver_plugin:Launcher" |
28 changes: 28 additions & 0 deletions
28
examples/local_launcher/example_httpserver_plugin/src/example_httpserver_plugin/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Copyright (C) 2025 ANSYS, Inc. and/or its affiliates. | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # | ||
| # 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. | ||
|
|
||
| """Example plugin for ansys-tools-local-product-launcher.""" | ||
|
|
||
| from .launcher import Launcher, LauncherConfig | ||
|
|
||
| __version__ = "0.1.0" | ||
| __all__ = ["LauncherConfig", "Launcher"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an auto-generated file, I think it shouldn't be committed (also applies to some of the other files here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add it to the .gitignore