Skip to content

Commit 42d0b00

Browse files
committed
Merge branch 'main' into release/2024.1
2 parents 4347e40 + 93021ac commit 42d0b00

File tree

18 files changed

+199
-210
lines changed

18 files changed

+199
-210
lines changed

.github/workflows/ci-build.yml

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: PyAnsys documentation style checks
40-
uses: ansys/actions/doc-style@v4
40+
uses: ansys/actions/doc-style@v5
4141
with:
4242
token: ${{ secrets.GITHUB_TOKEN }}
4343

@@ -48,13 +48,13 @@ jobs:
4848
fail-fast: false
4949
matrix:
5050
os: [windows-latest, ubuntu-latest]
51-
python-version: ['3.8', '3.9', '3.10', '3.11']
51+
python-version: ['3.9', '3.10', '3.11', '3.12']
5252

5353
steps:
5454
- uses: actions/checkout@v4
5555

5656
- name: Set up Python ${{ matrix.python-version }}
57-
uses: actions/setup-python@v4
57+
uses: actions/setup-python@v5
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060
cache: 'pip'
@@ -75,14 +75,14 @@ jobs:
7575
fail-fast: false
7676
matrix:
7777
os: [windows-latest, ubuntu-latest]
78-
python-version: ['3.8', '3.9', '3.10', '3.11']
78+
python-version: ['3.9', '3.10', '3.11', '3.12']
7979
extras-version: ['fluent-all', 'mapdl-all', 'tools']
8080

8181
steps:
8282
- uses: actions/checkout@v4
8383

8484
- name: Set up Python ${{ matrix.python-version }}
85-
uses: actions/setup-python@v4
85+
uses: actions/setup-python@v5
8686
with:
8787
python-version: ${{ matrix.python-version }}
8888
cache: 'pip'
@@ -103,11 +103,11 @@ jobs:
103103
fail-fast: false
104104
matrix:
105105
os: [windows-latest, ubuntu-latest, macos-latest]
106-
python-version: ['3.8', '3.9', '3.10', '3.11']
106+
python-version: ['3.9', '3.10', '3.11', '3.12']
107107

108108
steps:
109109
- name: Build wheelhouse and perform smoke test
110-
uses: ansys/actions/build-wheelhouse@v4
110+
uses: ansys/actions/build-wheelhouse@v5
111111
with:
112112
library-name: ${{ env.PACKAGE_NAME }}
113113
operating-system: ${{ runner.os }}
@@ -120,7 +120,7 @@ jobs:
120120
cat all-deps-${{ runner.os }}-${{ matrix.python-version }}.txt
121121
122122
- name: Upload dependencies list
123-
uses: actions/upload-artifact@v3
123+
uses: actions/upload-artifact@v4
124124
with:
125125
name: all-deps-${{ runner.os }}-${{ matrix.python-version }}
126126
path: all-deps-${{ runner.os }}-${{ matrix.python-version }}.txt
@@ -133,24 +133,39 @@ jobs:
133133

134134
steps:
135135
- name: Build documentation
136-
uses: ansys/actions/doc-build@v4
136+
uses: ansys/actions/doc-build@v5
137137
with:
138138
python-version: ${{ env.MAIN_PYTHON_VERSION }}
139139
dependencies: "build-essential zip pandoc texlive-latex-extra latexmk texlive-pstricks"
140140

141-
- name: Deploy the dev documentation
142-
uses: ansys/actions/doc-deploy-dev@v4
143-
if: github.ref == 'refs/heads/main'
144-
with:
145-
cname: ${{ env.DOCUMENTATION_CNAME }}
146-
token: ${{ secrets.GITHUB_TOKEN }}
147-
141+
doc-deploy-dev:
142+
name: "Deploy development docs"
143+
if: github.ref == 'refs/heads/main'
144+
runs-on: ubuntu-latest
145+
needs: [package]
146+
steps:
147+
- name: Deploy the latest documentation
148+
uses: ansys/actions/doc-deploy-dev@v5
149+
with:
150+
cname: ${{ env.DOCUMENTATION_CNAME }}
151+
token: ${{ secrets.GITHUB_TOKEN }}
152+
153+
adapt-landing-page-dev:
154+
uses: ./.github/workflows/update-gh-pages.yml
155+
needs: [doc-deploy-dev]
156+
secrets: inherit
157+
158+
doc-index-dev:
159+
name: "Deploy dev docs index"
160+
if: github.ref == 'refs/heads/main'
161+
runs-on: ubuntu-latest
162+
needs: [doc-deploy-dev]
163+
steps:
148164
- name: "Deploy the dev documentation index"
149-
uses: ansys/actions/doc-deploy-index@v4
150-
if: github.ref == 'refs/heads/main'
165+
uses: ansys/actions/doc-deploy-index@v5
151166
with:
152167
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
153-
index-name: "pyansys-vdev"
168+
index-name: pyansys-vdev
154169
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
155170
api-key: ${{ env.MEILISEARCH_API_KEY }}
156171

@@ -160,7 +175,7 @@ jobs:
160175
needs: [docs-build, smoke-tests-core]
161176
steps:
162177
- name: Build library source and wheel artifacts
163-
uses: ansys/actions/build-library@v4
178+
uses: ansys/actions/build-library@v5
164179
with:
165180
library-name: ${{ env.PACKAGE_NAME }}
166181
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -172,29 +187,34 @@ jobs:
172187
runs-on: ubuntu-latest
173188
steps:
174189
- name: Release to PyPI repository
175-
uses: ansys/actions/release-pypi-public@v4
190+
uses: ansys/actions/release-pypi-public@v5
176191
with:
177192
library-name: ${{ env.PACKAGE_NAME }}
178193
twine-username: __token__
179194
twine-token: ${{ secrets.PYPI_TOKEN }}
180195

181196
- name: Release to GitHub
182-
uses: ansys/actions/release-github@v4
197+
uses: ansys/actions/release-github@v5
183198
with:
184199
library-name: ${{ env.PACKAGE_NAME }}
185-
additional-artifacts: 'all-deps-Linux-3.8 all-deps-Linux-3.9 all-deps-Linux-3.10 all-deps-Linux-3.11 all-deps-Windows-3.8 all-deps-Windows-3.9 all-deps-Windows-3.10 all-deps-Windows-3.11 all-deps-macOS-3.8 all-deps-macOS-3.9 all-deps-macOS-3.10 all-deps-macOS-3.11'
200+
additional-artifacts: 'all-deps-Linux-3.9 all-deps-Linux-3.10 all-deps-Linux-3.11 all-deps-Linux-3.12 all-deps-Windows-3.9 all-deps-Windows-3.10 all-deps-Windows-3.11 all-deps-Windows-3.12 all-deps-macOS-3.9 all-deps-macOS-3.10 all-deps-macOS-3.11 all-deps-macOS-3.12'
186201

187202
docs-release:
188203
name: Deploy release docs
189204
runs-on: ubuntu-latest
190205
needs: [release]
191206
steps:
192207
- name: Deploy the latest release documentation
193-
uses: ansys/actions/doc-deploy-stable@v4
208+
uses: ansys/actions/doc-deploy-stable@v5
194209
with:
195210
cname: ${{ env.DOCUMENTATION_CNAME }}
196211
token: ${{ secrets.GITHUB_TOKEN }}
197212

213+
adapt-landing-page-release:
214+
uses: ./.github/workflows/update-gh-pages.yml
215+
needs: [docs-release]
216+
secrets: inherit
217+
198218
doc-index-release:
199219
name: "Deploy release docs index"
200220
runs-on: ubuntu-latest
@@ -218,7 +238,7 @@ jobs:
218238
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
219239
220240
- name: "Deploy the latest documentation index"
221-
uses: ansys/actions/doc-deploy-index@v4
241+
uses: ansys/actions/doc-deploy-index@v5
222242
with:
223243
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
224244
index-name: pyansys-v${{ env.VERSION_MEILI }}

.github/workflows/create-milestone.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,31 @@ jobs:
1919
matrix:
2020
pyansys-projects:
2121
[
22-
"ansys/pydpf-composites",
22+
"ansys/pyadditive",
23+
"ansys/pyaedt",
24+
"ansys/pyansys-geometry",
25+
"ansys/pyansys-math",
2326
"ansys/pydpf-core",
2427
"ansys/pydpf-post",
28+
"ansys/pydpf-composites",
2529
"ansys/pydyna",
2630
"ansys/pydynamicreporting",
27-
"ansys/pyansys-geometry",
28-
"ansys/grantami-bomanalytics",
29-
"ansys/grantami-recordlists",
31+
"ansys/pyensight",
3032
"ansys/pyfluent",
3133
"ansys/pymapdl",
32-
"ansys/pyansys-math",
3334
"ansys/pymechanical",
34-
"ansys/pyprimemesh",
3535
"ansys/pymotorcad",
36-
"ansys/pypim",
37-
"ansys/pyensight",
38-
"ansys/openapi-common",
3936
"ansys/pyoptislang",
37+
"ansys/pypim",
38+
"ansys/pyprimemesh",
4039
"ansys/pyseascape",
4140
"ansys/pysherlock",
4241
"ansys/pysystem-coupling",
43-
"ansys/pyaedt",
42+
"ansys/pyturbogrid",
4443
"ansys/pytwin",
44+
"ansys/grantami-bomanalytics",
45+
"ansys/grantami-recordlists",
46+
"ansys/openapi-common",
4547
# MAPDL - ALL
4648
"ansys/pymapdl-reader",
4749
# FLUENT - ALL
@@ -58,7 +60,7 @@ jobs:
5860
- uses: actions/checkout@v4
5961

6062
- name: Set up Python ${{ env.MAIN_PYTHON_VERSION }}
61-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v5
6264
with:
6365
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6466

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
name: Update index.html in GH Pages
3+
4+
on:
5+
workflow_dispatch:
6+
workflow_call:
7+
8+
jobs:
9+
update-gh-pages:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
ref: gh-pages
17+
18+
- name: Replace 'version/stable' with 'version/dev' in index.html
19+
run: |
20+
sed -i 's/version\/stable/version\/dev/g' index.html
21+
22+
- name: "Commit changes"
23+
uses: EndBug/add-and-commit@v9
24+
with:
25+
default_author: github_actions
26+
message: "update index.html"

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22

33
- repo: https://github.com/psf/black
4-
rev: 23.9.1
4+
rev: 23.12.1
55
hooks:
66
- id: black
77

88
- repo: https://github.com/pycqa/isort
9-
rev: 5.12.0
9+
rev: 5.13.2
1010
hooks:
1111
- id: isort
1212

@@ -16,7 +16,7 @@ repos:
1616
- id: flake8
1717

1818
- repo: https://github.com/codespell-project/codespell
19-
rev: v2.2.5
19+
rev: v2.2.6
2020
hooks:
2121
- id: codespell
2222
args: ["--ignore-words=ignore_words.txt"]
@@ -29,7 +29,7 @@ repos:
2929
exclude: "tests/"
3030

3131
- repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v4.4.0
32+
rev: v4.5.0
3333
hooks:
3434
- id: check-merge-conflict
3535
- id: debug-statements
@@ -38,6 +38,6 @@ repos:
3838

3939
# this validates our github workflow files
4040
- repo: https://github.com/python-jsonschema/check-jsonschema
41-
rev: 0.26.3
41+
rev: 0.27.3
4242
hooks:
4343
- id: check-github-workflows

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ of these packages amongst themselves and the Ansys product release that they are
3636

3737
The ``pyansys`` metapackage ensures compatibility between these PyAnsys packages:
3838

39+
- `PyAdditive <https://additive.docs.pyansys.com/>`_: Pythonic interface to the Ansys Additive service.
3940
- `PyAEDT <https://aedt.docs.pyansys.com/>`_: Pythonic interface to AEDT (Ansys Electronics Desktop).
4041
- `PyAnsys Geometry <https://geometry.docs.pyansys.com/>`_: Pythonic interface to the Ansys Geometry service.
4142
- `PyAnsys Math <https://math.docs.pyansys.com/>`_: Pythonic interface to PyAnsys Math libraries.
@@ -58,6 +59,7 @@ The ``pyansys`` metapackage ensures compatibility between these PyAnsys packages
5859
- `PySeascape <https://seascape.docs.pyansys.com/>`_: Pythonic interface to communicate with Ansys RedHawkSC and TotemSC.
5960
- `PySherlock <https://sherlock.docs.pyansys.com/>`_: Pythonic interface to communicate with Ansys Sherlock.
6061
- `PySystemCoupling <https://systemcoupling.docs.pyansys.com/>`_: Pythonic interface to communicate with Ansys System Coupling.
62+
- `PyTurboGrid <https://turbogrid.docs.pyansys.com/>`_: Pythonic interface to Ansys TurboGrid, a high-quality turbomachinery meshing software app.
6163
- `PyTwin <https://twin.docs.pyansys.com/>`_: Pythonic interface to communicate with consumption workflows for Ansys digital twins.
6264
- `Granta MI BoM Analytics <https://bomanalytics.grantami.docs.pyansys.com/>`_: Pythonic interface to Ansys Granta MI BoM Analytics services.
6365
- `Granta MI RecordLists <https://recordlists.grantami.docs.pyansys.com/>`_: Pythonic interface to Ansys Granta MI Lists API.
@@ -78,6 +80,7 @@ free to post a question on the `Ansys Developer Forums <https://discuss.ansys.co
7880

7981
By default, the PyAnsys metapackage installs these core modules:
8082

83+
- `PyAdditive`_
8184
- `PyAEDT`_
8285
- `PyAnsys Geometry`_
8386
- `PyAnsys Math`_
@@ -97,6 +100,7 @@ By default, the PyAnsys metapackage installs these core modules:
97100
- `PySeascape`_
98101
- `PySherlock`_
99102
- `PySystemCoupling`_
103+
- `PyTurboGrid`_
100104
- `PyTwin`_
101105
- `Granta MI BoM Analytics`_
102106
- `Granta MI RecordLists`_
@@ -153,15 +157,15 @@ the ``pyansys`` metapackage is downloading the wheelhouse archive from the
153157
`Releases Page <https://github.com/ansys/pyansys/releases>`_ for your corresponding machine architecture.
154158

155159
Each wheelhouse archive contains all the Python wheels necessary to install the ``pyansys`` metapackage from
156-
scratch on Windows, Linux, and MacOS from Python 3.8 to 3.11. You can install this on an isolated system with
160+
scratch on Windows, Linux, and MacOS from Python 3.9 to 3.11. You can install this on an isolated system with
157161
a fresh Python installation or on a virtual environment.
158162

159-
For example, on Linux with Python 3.8, unzip the wheelhouse archive and install it with the following
163+
For example, on Linux with Python 3.9, unzip the wheelhouse archive and install it with the following
160164
commands:
161165

162166
.. code:: bash
163167
164-
unzip pyansys-v2024.1rc1-wheelhouse-Linux-3.8-core.zip wheelhouse
168+
unzip pyansys-v2024.1rc1-wheelhouse-Linux-3.9-core.zip wheelhouse
165169
pip install pyansys -f wheelhouse --no-index --upgrade --ignore-installed
166170
167171
If you're on Windows with Python 3.9, unzip to a wheelhouse directory and then install using
1.01 MB
Loading

0 commit comments

Comments
 (0)