Skip to content

Commit ff7e3af

Browse files
authored
Merge pull request #549 from ansys/maint/release_0.6.2
Merge changes for release 0.6.2
2 parents 3ae71d1 + 43c5867 commit ff7e3af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2584
-2099
lines changed

.github/workflows/ci_cd.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
inputs:
1313

1414
env:
15-
MAIN_PYTHON_VERSION: '3.12'
15+
MAIN_PYTHON_VERSION: '3.13'
1616
CONTAINER_TAG: 'latest'
1717
PACKAGE_NAME: 'ansys-dpf-composites'
1818
DOCUMENTATION_CNAME: 'composites.dpf.docs.pyansys.com'
@@ -45,7 +45,7 @@ jobs:
4545
name: "Documentation style"
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: ansys/actions/doc-style@v7
48+
- uses: ansys/actions/doc-style@v8
4949
with:
5050
token: ${{ secrets.GITHUB_TOKEN }}
5151

@@ -58,7 +58,7 @@ jobs:
5858
# docker images on the windows agents. See the issue
5959
# https://github.com/actions/runner-images/issues/1143
6060
os: [ubuntu-latest]
61-
python-version: ['3.9', '3.10', '3.11', '3.12']
61+
python-version: ['3.10', '3.11', '3.12', '3.13']
6262
fail-fast: false
6363
steps:
6464
- name: "Login in Github Container registry"
@@ -134,7 +134,7 @@ jobs:
134134
- name: Set up Python
135135
uses: actions/setup-python@v5
136136
with:
137-
python-version: 3.9
137+
python-version: '3.10'
138138
- name: Install dependencies
139139
run: |
140140
python -m pip install --upgrade pip tox tox-gh-actions
@@ -212,7 +212,7 @@ jobs:
212212
needs: [doc-style, doc-build, code-style, tests, tests_minimal_version]
213213
steps:
214214
- name: "Build library source and wheel artifacts"
215-
uses: ansys/actions/build-library@v7
215+
uses: ansys/actions/build-library@v8
216216
with:
217217
library-name: ${{ env.PACKAGE_NAME }}
218218

@@ -223,10 +223,10 @@ jobs:
223223
strategy:
224224
matrix:
225225
os: [ubuntu-latest, windows-latest]
226-
python-version: ['3.9', '3.10', '3.11', '3.12']
226+
python-version: ['3.10', '3.11', '3.12', '3.13']
227227
steps:
228228
- name: "Build a wheelhouse of the Python library"
229-
uses: ansys/actions/build-wheelhouse@v7
229+
uses: ansys/actions/build-wheelhouse@v8
230230
with:
231231
library-name: "ansys-dpf-composites"
232232
operating-system: ${{ matrix.os }}
@@ -238,11 +238,13 @@ jobs:
238238
runs-on: ubuntu-latest
239239
needs: [build-library, build-wheelhouse]
240240
steps:
241-
- uses: ansys/actions/doc-deploy-dev@v7
241+
- uses: ansys/actions/doc-deploy-dev@v8
242242
with:
243243
cname: ${{ env.DOCUMENTATION_CNAME }}
244-
token: ${{ secrets.GITHUB_TOKEN }}
244+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
245245
force-orphan: false
246+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
247+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
246248

247249
release:
248250
name: "Release project"
@@ -252,14 +254,14 @@ jobs:
252254
steps:
253255

254256
- name: "Release to the public PyPI repository"
255-
uses: ansys/actions/release-pypi-public@v7
257+
uses: ansys/actions/release-pypi-public@v8
256258
with:
257259
library-name: ${{ env.PACKAGE_NAME }}
258260
twine-username: "__token__"
259261
twine-token: ${{ secrets.PYPI_TOKEN }}
260262

261263
- name: "Release to GitHub"
262-
uses: ansys/actions/release-github@v7
264+
uses: ansys/actions/release-github@v8
263265
with:
264266
library-name: ${{ env.PACKAGE_NAME }}
265267

@@ -269,8 +271,10 @@ jobs:
269271
needs: [release]
270272
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
271273
steps:
272-
- uses: ansys/actions/doc-deploy-stable@v7
274+
- uses: ansys/actions/doc-deploy-stable@v8
273275
with:
274276
cname: ${{ env.DOCUMENTATION_CNAME }}
275-
token: ${{ secrets.GITHUB_TOKEN }}
277+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
276278
force-orphan: false
279+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
280+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

.github/workflows/package_cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: "Delete untagged package versions"
17-
uses: ansys/actions/hk-package-clean-untagged@v7
17+
uses: ansys/actions/hk-package-clean-untagged@v8
1818
with:
1919
package-name: 'pydpf-composites'
2020
allow-last-days: '14'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
rev: v3.15.2
2222
hooks:
2323
- id: pyupgrade
24-
args: [--py39-plus]
24+
args: [--py310-plus]
2525

2626
- repo: https://github.com/PyCQA/flake8
2727
rev: 7.0.0

AUTHORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# For contributions made under a Corporate CLA, the organization is
66
# added to this file.
77
#
8-
# If you have contributed to the repository and wish to be added to this file
9-
# please submit a request.
8+
# If you have contributed to the repository and want to be added to this file,
9+
# submit a request.
1010
#
1111
#
1212
ANSYS, Inc.

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributors
22

3-
## Project Lead or Owner
3+
## Project Lead
44

55
* [Jan von Rickenbach](https://github.com/janvonrickenbach)
66

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PyDPF Composites
88
:target: https://docs.pyansys.com/
99
:alt: PyAnsys
1010

11-
.. |python| image:: https://img.shields.io/badge/Python-%3E%3D3.9-blue
11+
.. |python| image:: https://img.shields.io/badge/Python-%3E%3D3.10-blue
1212
:target: https://pypi.org/project/ansys-dpf-composites/
1313
:alt: Python
1414

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Here are some key features of PyDPF Composites:
7474
Limitations
7575
'''''''''''
7676
- Only the Mechanical APDL solver is supported.
77+
- The post-processing of expanded cyclic symmetry models is not implemented.
7778
- The following operators and features are only supported if the model was
7879
preprocessed with ACP and if the corresponding lay-up definition file is passed to the :class:`.CompositeModel` class.
7980

doc/source/intro.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ Install the ``ansys-dpf-composites`` package with ``pip``:
1313
1414
pip install ansys-dpf-composites
1515
16-
Specific versions can be installed by specifying the version in the pip command. For example: Ansys 2023 R1 requires ansys-dpf-composites version 0.1.0:
16+
17+
To install the optional dependencies used in the examples, add the ``[examples]`` suffix when installing the package:
18+
19+
.. code::
20+
21+
pip install ansys-dpf-composites[examples]
22+
23+
Specific versions can be installed by specifying the version in the pip command. For example, Ansys 2023 R1 requires ansys-dpf-composites version 0.1.0:
1724

1825
.. code::
1926

examples/001_failure_operator_example.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
allows you to assess different type of materials and failure modes at once.
3939
The scoping enables you to evaluate the minimum and maximum failures per element
4040
or select a list of materials or plies.
41+
42+
.. note::
43+
44+
When using a Workbench project,
45+
use the :func:`.get_composite_files_from_workbench_result_folder`
46+
method to obtain the input files.
47+
4148
"""
4249
# %%
4350
# Set up analysis

examples/002_sampling_point_example.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
This example uses the :class:`Composite Model <.CompositeModel>` to scope a
3737
Sampling Point to a certain element and to visualize the laminate.
3838
39+
.. note::
40+
41+
When using a Workbench project,
42+
use the :func:`.get_composite_files_from_workbench_result_folder`
43+
method to obtain the input files.
44+
3945
"""
4046

4147
# %%

0 commit comments

Comments
 (0)