Skip to content

Commit c4dcf11

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 5b1fe25 + 77af8a4 commit c4dcf11

35 files changed

+3716
-217
lines changed

.github/workflows/ci_cd.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: PyAnsys code style checks
27-
uses: ansys/actions/code-style@v5
27+
uses: ansys/actions/code-style@v7
2828
with:
2929
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3030

@@ -33,9 +33,10 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: PyAnsys documentation style checks
36-
uses: ansys/actions/doc-style@v5
36+
uses: ansys/actions/doc-style@v7
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
39+
vale-version: "3.4.1"
3940

4041
smoke-tests:
4142
name: Build and Smoke tests
@@ -53,7 +54,7 @@ jobs:
5354
os: macos-latest
5455
steps:
5556
- name: Build wheelhouse and perform smoke test
56-
uses: ansys/actions/build-wheelhouse@v5
57+
uses: ansys/actions/build-wheelhouse@v7
5758
with:
5859
library-name: ${{ env.PACKAGE_NAME }}
5960
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
@@ -115,7 +116,7 @@ jobs:
115116
runs-on: ubuntu-latest
116117
steps:
117118
- name: Run documentation building action
118-
uses: ansys/actions/doc-build@v5
119+
uses: ansys/actions/doc-build@v7
119120
with:
120121
python-version: ${{ env.MAIN_PYTHON_VERSION }}
121122

@@ -125,7 +126,7 @@ jobs:
125126
runs-on: ubuntu-latest
126127
steps:
127128
- name: Build library source and wheel artifacts
128-
uses: ansys/actions/build-library@v5
129+
uses: ansys/actions/build-library@v7
129130
with:
130131
library-name: ${{ env.PACKAGE_NAME }}
131132
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -137,14 +138,14 @@ jobs:
137138
runs-on: ubuntu-latest
138139
steps:
139140
- name: Release to the public PyPI repository
140-
uses: ansys/actions/release-pypi-public@v5
141+
uses: ansys/actions/release-pypi-public@v7
141142
with:
142143
library-name: ${{ env.PACKAGE_NAME }}
143144
twine-username: "__token__"
144145
twine-token: ${{ secrets.PYPI_TOKEN }}
145146

146147
- name: Release to GitHub
147-
uses: ansys/actions/release-github@v5
148+
uses: ansys/actions/release-github@v7
148149
with:
149150
library-name: ${{ env.PACKAGE_NAME }}
150151

@@ -155,7 +156,7 @@ jobs:
155156
needs: [ package ]
156157
steps:
157158
- name: Deploy the latest documentation
158-
uses: ansys/actions/doc-deploy-dev@v5
159+
uses: ansys/actions/doc-deploy-dev@v7
159160
with:
160161
cname: ${{ env.DOCUMENTATION_CNAME }}
161162
token: ${{ secrets.GITHUB_TOKEN }}
@@ -167,7 +168,7 @@ jobs:
167168
needs: [ release ]
168169
steps:
169170
- name: Deploy the stable documentation
170-
uses: ansys/actions/doc-deploy-stable@v5
171+
uses: ansys/actions/doc-deploy-stable@v7
171172
with:
172173
cname: ${{ env.DOCUMENTATION_CNAME }}
173174
token: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
repos:
22

33
- repo: https://github.com/psf/black
4-
rev: 23.3.0 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
4+
rev: 24.4.2 # IF VERSION CHANGES --> MODIFY "blacken-docs" MANUALLY AS WELL!!
55
hooks:
66
- id: black
77

88
- repo: https://github.com/adamchainz/blacken-docs
9-
rev: 1.13.0
9+
rev: 1.18.0
1010
hooks:
1111
- id: blacken-docs
1212
additional_dependencies: [black==23.3.0]
1313

1414
- repo: https://github.com/pycqa/isort
15-
rev: 5.12.0
15+
rev: 5.13.2
1616
hooks:
1717
- id: isort
1818

1919
- repo: https://github.com/PyCQA/flake8
20-
rev: 6.0.0
20+
rev: 7.1.0
2121
hooks:
2222
- id: flake8
2323
args: [src, tests, doc]
2424

2525
- repo: https://github.com/codespell-project/codespell
26-
rev: v2.2.4
26+
rev: v2.3.0
2727
hooks:
2828
- id: codespell
29-
args: ["--toml", "pyproject.toml"]
29+
args: ["--toml", "pyproject.toml", "--ignore-words",
30+
"doc/styles/config/vocabularies/ANSYS/accept.txt"]
3031
additional_dependencies: ["tomli"]
3132

3233
- repo: https://github.com/pycqa/pydocstyle
@@ -37,7 +38,7 @@ repos:
3738
files: ^src/
3839

3940
- repo: https://github.com/pre-commit/pre-commit-hooks
40-
rev: v4.4.0
41+
rev: v4.6.0
4142
hooks:
4243
- id: check-merge-conflict
4344
- id: debug-statements
@@ -46,6 +47,6 @@ repos:
4647

4748
# this validates our github workflow files
4849
- repo: https://github.com/python-jsonschema/check-jsonschema
49-
rev: 0.22.0
50+
rev: 0.29.1
5051
hooks:
5152
- id: check-github-workflows

README.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,26 @@ You must have a licensed copy of `Ansys Sherlock <https://www.ansys.com/products
6161
installed either on your local machine or a remote machine. To use a remote session, a connection to the
6262
remote machine must be available from your Python program.
6363

64+
Getting Started
65+
---------------
66+
PySherlock uses an environment variable called ``AWP_ROOT<ver>``, where ``<ver>`` is the Sherlock release number,
67+
such as 242 for release 2024 R2. Each release version should have its own environment variable. This variable
68+
is how PySherlock finds a Sherlock installation for a specific version. If there are multiple versions,
69+
PySherlock will pick the latest.
70+
71+
On a Windows System, the environment variable ``AWP_ROOT<ver>`` is configured by the Ansys installer.
72+
73+
On a Linux system, the ``AWP_ROOT<ver>`` environment variable must be configured by the user. It must point
74+
to the absolute path of an Ansys installation directory. For example, if Sherlock 24R2 is installed
75+
in the following location ``/opt/ansys_inc/v242/sherlock/`` , then an environment variable named ``AWP_ROOT242``
76+
must be created and set to ``/opt/ansys_inc/v242/``. If there are multiple versions of Ansys tools installed,
77+
similar environment variables must be created for those versions.
78+
79+
For the rest of the setup please refer to the tutorial videos below.
80+
81+
* `PySherlock Installation and Usage Demo | Step-by-Step Guide for Beginners <https://www.youtube.com/watch?v=ugiueYuNEKk>`_
82+
* `PySherlock Installation and Usage Demo | Advanced Setup Guide <https://www.youtube.com/watch?v=06s_tNvlOTM>`_
83+
6484
Documentation and issues
6585
------------------------
6686
For comprehensive information on PySherlock, see the latest release

doc/.vale.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ Vocab = ANSYS
2525
[*.{md,rst}]
2626

2727
# Apply the following styles
28+
[*.{rst}]
2829
BasedOnStyles = Vale, Google
30+
Vale.Terms = NO

doc/source/api/analysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Analysis
88
.. autosummary::
99
:toctree: _autosummary
1010

11-
ansys.sherlock.core.analysis.Analysis
11+
Analysis

doc/source/api/common.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Common
88
.. autosummary::
99
:toctree: _autosummary
1010

11-
ansys.sherlock.core.common.Common
11+
Common

doc/source/api/launcher.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Launcher
99
.. autosummary::
1010
:toctree: _autosummary
1111

12-
ansys.sherlock.core.launcher.launch_sherlock
13-
ansys.sherlock.core.launcher.connect_grpc_channel
12+
launch_sherlock
13+
connect_grpc_channel
1414

doc/source/api/layer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Layer
99
.. autosummary::
1010
:toctree: _autosummary
1111

12-
ansys.sherlock.core.layer.Layer
12+
Layer

doc/source/api/lifecycle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Lifecycle
99
.. autosummary::
1010
:toctree: _autosummary
1111

12-
ansys.sherlock.core.lifecycle.Lifecycle
12+
Lifecycle

doc/source/api/model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Model
88
.. autosummary::
99
:toctree: _autosummary
1010

11-
ansys.sherlock.core.model.Model
11+
Model

0 commit comments

Comments
 (0)