ansys-saf-cli 4.1.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ansys/saf/cli/__init__.py +15 -0
- ansys/saf/cli/_cli/__init__.py +15 -0
- ansys/saf/cli/_cli/main.py +816 -0
- ansys/saf/cli/_cli/py.typed +0 -0
- ansys/saf/cli/_config/__init__.py +15 -0
- ansys/saf/cli/_config/const.py +45 -0
- ansys/saf/cli/_config/py.typed +0 -0
- ansys/saf/cli/_database/__init__.py +15 -0
- ansys/saf/cli/_database/manager.py +94 -0
- ansys/saf/cli/_database/models.py +53 -0
- ansys/saf/cli/_database/py.typed +0 -0
- ansys/saf/cli/_solutions/__init__.py +15 -0
- ansys/saf/cli/_solutions/add_step.py +256 -0
- ansys/saf/cli/_solutions/dependencies.py +162 -0
- ansys/saf/cli/_solutions/environment.py +1145 -0
- ansys/saf/cli/_solutions/plugins.py +254 -0
- ansys/saf/cli/_solutions/py.typed +0 -0
- ansys/saf/cli/_solutions/scaffolding.py +73 -0
- ansys/saf/cli/_solutions/templates/__init__.py +15 -0
- ansys/saf/cli/_solutions/templates/py.typed +0 -0
- ansys/saf/cli/_solutions/templates/solution/cookiecutter.json +18 -0
- ansys/saf/cli/_solutions/templates/solution/hooks/post_gen_project.py +54 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.codespell.ignore +2 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.devcontainer/devcontainer.json +26 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.env +5 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.flake8 +8 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.github/labeler.yml +9 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.github/labels.yml +27 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.github/workflows/build-release.yml +175 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.github/workflows/label.yml +89 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.gitignore +137 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.pre-commit-config.yaml +48 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.release-please-manifest.json +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.reuse/templates/copyright.jinja2 +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.vscode/extensions.json +8 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/.vscode/launch.json +28 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/AUTHORS +12 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/CHANGELOG.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/CODEOWNERS +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/CODE_OF_CONDUCT.md +65 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/CONTRIBUTING.md +2 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/CONTRIBUTORS.md +9 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/LICENSE.rst +41 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/README.md +69 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/Dockerfile +43 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/README.md +13 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/distributed-deployment-template/.env +27 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/distributed-deployment-template/compose.yaml +132 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone/.env +20 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone/compose.yaml +118 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone-with-hps/.env +28 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone-with-hps/compose.yaml +146 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone-with-minerva/.env +25 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/deployments/standalone-with-minerva/compose.yaml +122 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/.vale.ini +28 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/Makefile +30 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/changelog.d/changelog_template.jinja +17 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/make.bat +46 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/_static/css/custom.css +8 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/_static/images/repository-banner.png +0 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/_templates/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/changelog.rst +12 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/conf.py +253 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/examples.rst +8 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/getting_started/desktop_installation.rst +165 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/getting_started/docker_installation.rst +68 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/index.rst +51 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/user_guide/index.rst +6 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/styles/config/vocabularies/ANSYS/accept.txt +5 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/styles/config/vocabularies/ANSYS/reject.txt +0 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/examples/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/lock_files/dash/poetry.lock +7621 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/lock_files/no_ui/poetry.lock +7173 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/minerva/cli/README.md +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/minerva/oauth/App_Data/Certificates/README.md +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/minerva/oauth/oauth.config +9 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/pyproject.toml +192 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/release-please-config.json +9 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/sonar-project.properties +12 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/__init__.py +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/main.py +19 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/portal_assets/application.svg +36 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/portal_assets/description.json +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/portal_assets/project.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/definition.py +24 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/first_step.py +34 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/method_assets/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/scripts/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/scripts/assets/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/solution/second_step.py +12 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/app.py +30 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/css/all.css +9 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/css/bootstrap.min.css +6 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/css/style.css +47 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/carbon--ibm-engineering-workflow-mgmt.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/carbon--return.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/game-icons--crossed-air-flows.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/material-symbols--home.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/radix-icons--moon.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/radix-icons--sun.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/streamline--startup-solid.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/dark/teenyicons--doc-solid.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/carbon--ibm-engineering-workflow-mgmt.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/carbon--return.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/game-icons--crossed-air-flows.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/material-symbols--home.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/radix-icons--moon.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/radix-icons--sun.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/streamline--startup-solid.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/icons/light/teenyicons--doc-solid.svg +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/images/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/images/workflow-placeholder.png +0 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/installer/README.md +5 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/logos/dark/placeholder_logo.png +0 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/logos/light/placeholder_logo.png +0 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/orchestrator/README.md +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/pywebview/README.md +3 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/assets/scripts/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/components/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/pages/about_page.py +71 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/pages/first_page.py +147 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/pages/page.py +367 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/src/{{ cookiecutter.__solution_namespace_path }}/{{cookiecutter.__solution_module_name}}/ui/pages/second_page.py +32 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/tests/common_test_files/README.md +1 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/tests/conftest.py +37 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/tests/unit/test_solution_api.py +42 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/tests/unit/test_solution_ui.py +30 -0
- ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/tox.ini +56 -0
- ansys/saf/cli/_utilities/__init__.py +15 -0
- ansys/saf/cli/_utilities/archiver.py +67 -0
- ansys/saf/cli/_utilities/backup.py +181 -0
- ansys/saf/cli/_utilities/conversion.py +64 -0
- ansys/saf/cli/_utilities/platform.py +26 -0
- ansys/saf/cli/_utilities/py.typed +0 -0
- ansys/saf/cli/_utilities/solution_modules.py +173 -0
- ansys/saf/cli/integrations/solutions_manager.py +64 -0
- ansys/saf/cli/py.typed +0 -0
- ansys_saf_cli-4.1.dev0.dist-info/METADATA +201 -0
- ansys_saf_cli-4.1.dev0.dist-info/RECORD +143 -0
- ansys_saf_cli-4.1.dev0.dist-info/WHEEL +4 -0
- ansys_saf_cli-4.1.dev0.dist-info/entry_points.txt +3 -0
- ansys_saf_cli-4.1.dev0.dist-info/licenses/AUTHORS +12 -0
- ansys_saf_cli-4.1.dev0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
.. _desktop-installation:
|
|
2
|
+
|
|
3
|
+
Development environment installation
|
|
4
|
+
####################################
|
|
5
|
+
|
|
6
|
+
Prerequisites
|
|
7
|
+
=============
|
|
8
|
+
|
|
9
|
+
.. list-table:: Prerequisites
|
|
10
|
+
:header-rows: 1
|
|
11
|
+
|
|
12
|
+
* - Prerequisite
|
|
13
|
+
- Description
|
|
14
|
+
|
|
15
|
+
* - Operating system
|
|
16
|
+
- Windows 10 or Ubuntu
|
|
17
|
+
|
|
18
|
+
* - Python distribution
|
|
19
|
+
- Python 3.10 with the `SAF CLI installed <https://saf-cli.docs.solutions.ansys.com/version/stable/getting_started.html#install-saf-cli>`_
|
|
20
|
+
|
|
21
|
+
* - IDE
|
|
22
|
+
- `Visual Studio Code <https://code.visualstudio.com/download#>`_
|
|
23
|
+
|
|
24
|
+
Setup
|
|
25
|
+
=====
|
|
26
|
+
|
|
27
|
+
#. Navigate to the project root:
|
|
28
|
+
|
|
29
|
+
.. code-block:: bash
|
|
30
|
+
|
|
31
|
+
cd {{ cookiecutter.__solution_name }}
|
|
32
|
+
|
|
33
|
+
#. Install dependencies:
|
|
34
|
+
|
|
35
|
+
.. code-block:: bash
|
|
36
|
+
|
|
37
|
+
saf install
|
|
38
|
+
|
|
39
|
+
Follow all the instructions for credentials setup. These may require you to run the above command a second time in a new shell.
|
|
40
|
+
|
|
41
|
+
When executing third-party tools, use the ``saf execute`` command to ensure they run inside the correct solution environment.
|
|
42
|
+
For a complete list of available SAF CLI commands, see the `SAF CLI Cheat Sheet <https://saf-cli.docs.solutions.ansys.com/version/stable/cheat_sheet.html>`_.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Build and access the documentation
|
|
46
|
+
==================================
|
|
47
|
+
|
|
48
|
+
.. This section enables you to read this file in a friendly format in a browser.
|
|
49
|
+
|
|
50
|
+
#. Install the documentation dependencies:
|
|
51
|
+
|
|
52
|
+
.. code-block:: bash
|
|
53
|
+
|
|
54
|
+
saf install -d doc
|
|
55
|
+
|
|
56
|
+
#. Build the documentation:
|
|
57
|
+
|
|
58
|
+
(The following assumes that the current directory is the root of the solution.)
|
|
59
|
+
|
|
60
|
+
.. code-block:: bash
|
|
61
|
+
|
|
62
|
+
saf execute "sphinx-build doc/source doc/build/html --color -vW -bhtml"
|
|
63
|
+
|
|
64
|
+
#. Open the documentation in a web browser (Windows Only):
|
|
65
|
+
|
|
66
|
+
a. Open a file explorer on the ``{{cookiecutter.__solution_name}}`` root directory and navigate to the ``doc\build\html`` directory.
|
|
67
|
+
b. Double-click the ``index.html`` file to open it in the default web browser.
|
|
68
|
+
|
|
69
|
+
#. Navigate to this page:
|
|
70
|
+
|
|
71
|
+
a. Click **Getting Started**.
|
|
72
|
+
b. Click **Desktop Installation**.
|
|
73
|
+
|
|
74
|
+
Run the solution
|
|
75
|
+
================
|
|
76
|
+
|
|
77
|
+
To run the solution, execute the following command anywhere in the project:
|
|
78
|
+
|
|
79
|
+
.. code-block:: bash
|
|
80
|
+
|
|
81
|
+
saf run
|
|
82
|
+
|
|
83
|
+
The Solution UI starts in a desktop window with a new project.
|
|
84
|
+
|
|
85
|
+
.. list-table:: Some useful ``saf run`` options
|
|
86
|
+
:header-rows: 1
|
|
87
|
+
:stub-columns: 1
|
|
88
|
+
|
|
89
|
+
* - Option
|
|
90
|
+
- Description
|
|
91
|
+
- Usage
|
|
92
|
+
|
|
93
|
+
* - ``debug``
|
|
94
|
+
- Activate debug mode.
|
|
95
|
+
- ``saf run --debug``
|
|
96
|
+
|
|
97
|
+
* - ``project <project-name>``
|
|
98
|
+
- Bypass the SAF Portal UI and start a specific project.
|
|
99
|
+
- ``saf run --project <project-name>``
|
|
100
|
+
|
|
101
|
+
* - ``portal``
|
|
102
|
+
- Start the SAF Portal UI.
|
|
103
|
+
- ``saf run --portal``
|
|
104
|
+
|
|
105
|
+
Create a GitHub repository for ``{{ cookiecutter.__solution_display_name }}``
|
|
106
|
+
========================================================================================
|
|
107
|
+
|
|
108
|
+
If you have not yet created a GitHub repository for ``{{ cookiecutter.__solution_display_name }}`` then you need one
|
|
109
|
+
to enable the code checks to function.
|
|
110
|
+
|
|
111
|
+
.. note::
|
|
112
|
+
If you are already working in a clone of the ``{{cookiecutter.__solution_name}}`` source code repository, you can skip this section.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
Create a GitHub repository called ``{{cookiecutter.__solution_name}}`` within your organization follow this sequence of steps:
|
|
116
|
+
|
|
117
|
+
#. Open a browser at ``https://github.com/<your-organization>``.
|
|
118
|
+
#. Click the green :guilabel:`New` button to create a new repository.
|
|
119
|
+
#. Enter the repository name as ``{{cookiecutter.__solution_name}}``.
|
|
120
|
+
#. Enter a description.
|
|
121
|
+
#. Do not change any of the other settings (the generated solution contains ``.gitignore``, ``README.md`` and ``LICENSE.rst`` files).
|
|
122
|
+
#. Click the green :guilabel:`Create repository` button.
|
|
123
|
+
#. In the ``{{ cookiecutter.__solution_name }}`` root directory, execute the following sequence of commands to upload the solution source code to the GitHub repository and establish the ``{{ cookiecutter.__solution_name }}`` root directory as a clone of the GitHub repository in GitHub:
|
|
124
|
+
|
|
125
|
+
.. code-block::
|
|
126
|
+
|
|
127
|
+
git init
|
|
128
|
+
git add *
|
|
129
|
+
git commit -m "first commit"i
|
|
130
|
+
git branch -M main
|
|
131
|
+
git remote add origin https://github.com/<your-organization>/{{cookiecutter.__solution_name}}.git
|
|
132
|
+
git push -u origin main
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
Check the code style
|
|
136
|
+
====================
|
|
137
|
+
|
|
138
|
+
1. Install the tests dependencies:
|
|
139
|
+
|
|
140
|
+
.. code-block:: bash
|
|
141
|
+
|
|
142
|
+
saf install -d style
|
|
143
|
+
|
|
144
|
+
2. Run the checks:
|
|
145
|
+
|
|
146
|
+
.. code-block:: bash
|
|
147
|
+
|
|
148
|
+
saf execute "tox -e style"
|
|
149
|
+
|
|
150
|
+
Run unit tests
|
|
151
|
+
==============
|
|
152
|
+
|
|
153
|
+
1. Install the tests dependencies:
|
|
154
|
+
|
|
155
|
+
.. code-block:: bash
|
|
156
|
+
|
|
157
|
+
saf install -d tests
|
|
158
|
+
|
|
159
|
+
2. Run the tests:
|
|
160
|
+
|
|
161
|
+
.. code-block:: bash
|
|
162
|
+
|
|
163
|
+
saf execute "pytest"
|
|
164
|
+
|
|
165
|
+
You should see in on the console output indicating that all the tests in a test suite of several tests passed.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.. _docker-installation:
|
|
2
|
+
|
|
3
|
+
Docker installation
|
|
4
|
+
###################
|
|
5
|
+
|
|
6
|
+
Prerequisites
|
|
7
|
+
=============
|
|
8
|
+
|
|
9
|
+
.. list-table:: Prerequisites
|
|
10
|
+
:stub-columns: 1
|
|
11
|
+
:header-rows: 1
|
|
12
|
+
|
|
13
|
+
* - Prerequisite
|
|
14
|
+
- Description
|
|
15
|
+
|
|
16
|
+
* - Operating system
|
|
17
|
+
- Windows 10 or Ubuntu
|
|
18
|
+
|
|
19
|
+
* - IDE
|
|
20
|
+
- `Visual Studio Code <https://code.visualstudio.com/download#>`_
|
|
21
|
+
|
|
22
|
+
* - Virtualization
|
|
23
|
+
- `Docker <https://www.docker.com/>`_
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Set up and start {{ cookiecutter.__solution_display_name }} server
|
|
27
|
+
===========================================================================
|
|
28
|
+
|
|
29
|
+
#. Navigate to the project root:
|
|
30
|
+
|
|
31
|
+
.. code-block:: bash
|
|
32
|
+
|
|
33
|
+
cd {{ cookiecutter.__solution_name }}
|
|
34
|
+
|
|
35
|
+
#. Start the services:
|
|
36
|
+
|
|
37
|
+
.. code-block:: bash
|
|
38
|
+
|
|
39
|
+
docker compose -f deployments/standalone/compose.yaml up --build
|
|
40
|
+
|
|
41
|
+
.. important::
|
|
42
|
+
Wait for all services to start.
|
|
43
|
+
|
|
44
|
+
#. Open a web page and reach the GLOW API Swagger UI: ``http://localhost:8000/docs``
|
|
45
|
+
|
|
46
|
+
#. Create a project using the ``Create Project`` post request.
|
|
47
|
+
|
|
48
|
+
#. Copy the project name from the response.
|
|
49
|
+
|
|
50
|
+
It should be in the following syntax: ``projects/<project-id>``.
|
|
51
|
+
|
|
52
|
+
4. Open a web page and reach the Solution UI: ``http://localhost:8001/projects/<project-id>``.
|
|
53
|
+
|
|
54
|
+
Now you can walk through the solution workflow.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Stop {{ cookiecutter.__solution_display_name }} server
|
|
58
|
+
====================================================================
|
|
59
|
+
|
|
60
|
+
To shut down the application:
|
|
61
|
+
|
|
62
|
+
#. in the terminal where you executed the previous Docker command, press :kbd:`CTRL+C` .
|
|
63
|
+
|
|
64
|
+
#. Shut down the Docker containers:
|
|
65
|
+
|
|
66
|
+
.. code-block:: bash
|
|
67
|
+
|
|
68
|
+
docker compose -f deployments/standalone/compose.yaml down
|
ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/doc/source/index.rst
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.. image:: /_static/images/repository-banner.png
|
|
2
|
+
:align: center
|
|
3
|
+
:width: 100%
|
|
4
|
+
:alt: Ansys Solutions A
|
|
5
|
+
|
|
6
|
+
####################################################################################################
|
|
7
|
+
Ansys Solutions {{ cookiecutter.__solution_display_name }} |version|
|
|
8
|
+
####################################################################################################
|
|
9
|
+
|
|
10
|
+
.. grid:: 2
|
|
11
|
+
:gutter: 3
|
|
12
|
+
|
|
13
|
+
.. grid-item-card:: Getting started with desktop development
|
|
14
|
+
:link-type: doc
|
|
15
|
+
:link: getting_started/desktop_installation
|
|
16
|
+
|
|
17
|
+
Instructions for installing and using the {{ cookiecutter.__solution_display_name }} development environment.
|
|
18
|
+
|
|
19
|
+
.. grid-item-card:: Getting started with Docker deployment
|
|
20
|
+
:link-type: doc
|
|
21
|
+
:link: getting_started/docker_installation
|
|
22
|
+
|
|
23
|
+
Instructions for using the {{ cookiecutter.__solution_display_name }} Docker deployment.
|
|
24
|
+
|
|
25
|
+
.. grid-item-card:: User guide
|
|
26
|
+
:link-type: doc
|
|
27
|
+
:link: user_guide/index
|
|
28
|
+
|
|
29
|
+
Instructions for using the solution.
|
|
30
|
+
|
|
31
|
+
.. grid-item-card:: Examples
|
|
32
|
+
:link-type: doc
|
|
33
|
+
:link: examples
|
|
34
|
+
|
|
35
|
+
Examples of how to use the solution.
|
|
36
|
+
|
|
37
|
+
.. grid-item-card:: Release notes
|
|
38
|
+
:link-type: doc
|
|
39
|
+
:link: changelog
|
|
40
|
+
|
|
41
|
+
Information about the latest release.
|
|
42
|
+
|
|
43
|
+
.. toctree::
|
|
44
|
+
:hidden:
|
|
45
|
+
:maxdepth: 3
|
|
46
|
+
|
|
47
|
+
getting_started/desktop_installation
|
|
48
|
+
getting_started/docker_installation
|
|
49
|
+
user_guide/index
|
|
50
|
+
examples
|
|
51
|
+
changelog
|
|
File without changes
|
ansys/saf/cli/_solutions/templates/solution/{{cookiecutter.__solution_name}}/examples/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Examples
|