Skip to content

Commit dee2ec9

Browse files
authored
Merge branch 'main' into ci/pin-versions-and-cleanup-workflow
2 parents 2067b1b + 8c47b38 commit dee2ec9

File tree

17 files changed

+776
-54
lines changed

17 files changed

+776
-54
lines changed

.github/workflows/ci_cd.yml

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,76 @@ jobs:
6161
runs-on: ubuntu-latest
6262
needs: doc-build
6363
steps:
64+
65+
- name: "Download HTML documentation artifacts"
66+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
67+
with:
68+
name: documentation-html
69+
path: documentation-html
70+
71+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
72+
with:
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
publish_dir: documentation-html
75+
cname: ${{ env.DOCUMENTATION_CNAME }}
76+
full_commit_message: ${{ github.event.head_commit.message }}
77+
force_orphan: true
78+
79+
release-github:
80+
name: "Release to GitHub"
81+
runs-on: ubuntu-latest
82+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
83+
needs: doc-build
84+
steps:
85+
86+
- name: "Download HTML documentation"
87+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
88+
with:
89+
name: documentation-html
90+
path: documentation-html
91+
92+
- name: "Zip HTML documentation"
93+
uses: vimtor/action-zip@1379ea20d4c5705669ba81fd626dd01b1c738f26 # v1.2
94+
with:
95+
files: documentation-html
96+
dest: documentation-html.zip
97+
98+
- name: "Download PDF documentation"
99+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
100+
with:
101+
name: documentation-pdf
102+
path: documentation-pdf
64103

65-
- name: Download HTML documentation artifacts
66-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
104+
- name: "Zip PDF documentation"
105+
uses: vimtor/action-zip@1379ea20d4c5705669ba81fd626dd01b1c738f26 # v1.2
106+
with:
107+
files: documentation-pdf
108+
dest: documentation-pdf
109+
110+
- name: "Display the structure of downloaded files"
111+
shell: bash
112+
run: ls -R
113+
114+
- name: "Release to GitHub"
115+
uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2
116+
with:
117+
files: |
118+
documentation-html.zip
119+
documentation-pdf
120+
121+
doc-deploy-github-release:
122+
name: "Deploy documentation (stable)"
123+
runs-on: ubuntu-latest
124+
needs: [release-github]
125+
steps:
126+
127+
- name: "Download HTML documentation artifacts"
128+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
67129
with:
68130
name: documentation-html
69131
path: documentation-html
70132

71-
- uses: peaceiris/actions-gh-pages@v4
133+
- uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
72134
with:
73135
github_token: ${{ secrets.GITHUB_TOKEN }}
74136
publish_dir: documentation-html

.github/workflows/labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Syncer
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717
- uses: micnncim/action-label-syncer@v1
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -29,7 +29,7 @@ jobs:
2929

3030
# Label based on modified files
3131
- name: Label based on changed files
32-
uses: actions/labeler@v5
32+
uses: actions/labeler@v6
3333
with:
3434
repo-token: "${{ secrets.GITHUB_TOKEN }}"
3535

.github/workflows/nightly-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: Setup headless display
1717
uses: pyvista/setup-headless-display-action@v4
1818

19-
- uses: actions/checkout@v5
19+
- uses: actions/checkout@v6
2020

2121
- name: Set up Python
22-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@v6
2323
with:
2424
python-version: ${{ env.MAIN_PYTHON_VERSION }}
2525

@@ -45,22 +45,22 @@ jobs:
4545
make -C doc pdf
4646
4747
- name: Upload HTML documentation
48-
uses: actions/upload-artifact@v4.6.2
48+
uses: actions/upload-artifact@v5.0.0
4949
with:
5050
name: HTML-Documentation
5151
path: doc/_build/html
5252
retention-days: 7
5353

5454
- name: Upload PDF Documentation
55-
uses: actions/upload-artifact@v4.6.2
55+
uses: actions/upload-artifact@v5.0.0
5656
with:
5757
name: PDF-Documentation
5858
path: doc/_build/latex/pyansys*.pdf
5959
retention-days: 7
6060

6161
- name: Deploy to gh-pages
6262
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
63-
uses: JamesIves/[email protected].3
63+
uses: JamesIves/[email protected].4
6464
with:
6565
token: ${{ secrets.GITHUB_TOKEN }}
6666
branch: gh-pages

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ repos:
22

33

44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.12.9
5+
rev: v0.14.7
66
hooks:
77
- id: ruff-check
88
- id: ruff-format
99

1010
- repo: https://github.com/adamchainz/blacken-docs
11-
rev: 1.19.1
11+
rev: 1.20.0
1212
hooks:
1313
- id: blacken-docs
1414
additional_dependencies: [black==24.8.0]
@@ -26,7 +26,7 @@ repos:
2626
- id: debug-statements
2727

2828
- repo: https://github.com/python-jsonschema/check-jsonschema
29-
rev: 0.33.3
29+
rev: 0.35.0
3030
hooks:
3131
- id: check-github-workflows
3232
name: "Check GitHub workflows"

CODE_OF_CONDUCT.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributor covenant code of conduct
2+
3+
## Pledge
4+
5+
In the interest of fostering an open and welcoming environment,
6+
all contributors and maintainers pledge to making participation
7+
in the Ansys project and community a harassment-free experience
8+
for everyone, regardless of age, body size, disability, ethnicity,
9+
sex characteristics, gender identity and expression, level of
10+
experience, education, socioeconomic status, nationality, personal
11+
appearance, race, religion, or sexual identity and orientation.
12+
13+
## Standards
14+
15+
Examples of behavior that contribute to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
* The use of sexualized language or imagery and unwelcome sexual
27+
attention or advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or reject
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project email
52+
address, posting using an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
## Attribution
57+
58+
This code of conduct is adapted from the [Contributor Covenant][homepage],
59+
version 1.4, available at
60+
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
61+
62+
[homepage]: https://www.contributor-covenant.org
63+
64+
For answers to common questions about this code of conduct, see
65+
<https://www.contributor-covenant.org/faq>

CONTRIBUTING.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# Contributing
1+
# Contribute
22

3-
We absolutely welcome any code contributions and we hope that this
4-
guide will facilitate an understanding of the PyAnsys-dev-guide code
5-
repository. It is important to note that while the PyAnsys-dev-guide software
6-
package is maintained by ANSYS and any submissions will be reviewed
7-
thoroughly before merging, we still seek to foster a community that can
8-
support user questions and develop new features to make this software
9-
a useful tool for all users. As such, we welcome and encourage any
10-
questions or submissions to this repository.
3+
Overall guidance on contributing to a PyAnsys library appears in the
4+
[Contributing] topic in the *PyAnsys developer's guide*. Ensure that you
5+
are thoroughly familiar with this guide before attempting to contribute to
6+
{project-name}.
117

12-
For further information about contributing to PyAnsys projects,
13-
refer to the [PyAnsys Developer's Guide](https://dev.docs.pyansys.com/).
8+
The following contribution information is specific to the PyAnsys Developer's Guide.
149

10+
[Contributing]: https://dev.docs.pyansys.com/how-to/contributing.html
11+
12+
<!-- Begin content specific to your library here. -->

doc/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ help:
1919
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2020

2121

22-
# customized clean due to examples gallery
22+
# customized clean
2323
clean:
24-
rm -rf build
25-
rm -rf source/examples/
24+
rm -rf _build
2625

2726
# customized pdf fov svg format images
2827
pdf:

doc/source/getting-started/administration.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ This form lets the different parties involved in the public release process know
2121
there is a request to release a project. If your intent is to release an Ansys open
2222
source project, then continue to the next section.
2323

24+
For more information, see
25+
:ref:`Questions asked on the OSS approval request form`.
26+
27+
2428
Approval process
2529
----------------
2630

@@ -61,13 +65,6 @@ When releasing a project to the public, you must perform these tasks:
6165
* Maintain the project by means of fixing bugs and providing support for new releases.
6266
* Uphold Ansys' reputation in the open source community.
6367

64-
Once all three approvals have been awarded, project leads must then complete
65-
the `open source request form`_.
66-
67-
This form serves as a final checklist to verify that all approvals have been processed
68-
and to formalize the OSS approval process as a final record. For more information, see
69-
:ref:`Questions asked on the OSS approval request form`.
70-
7168
Managerial
7269
^^^^^^^^^^
7370

@@ -110,9 +107,9 @@ Legal
110107
Legal review approval ensures that the entire project complies with Ansys'
111108
legal policies.
112109

113-
Click the following button to complete the legal review request form for open sourcing the code:
110+
Click the following button to complete the Chain of liability:
114111

115-
.. button-link:: https://github.com/ansys-internal/oss-approval-tracklist/issues/new?assignees=MaxJPRey%2C+RobPasMue%2C+jorgepiloto%2C+&labels=&projects=&template=oss_final_signature.yml&title=Name+of+the+package+to+release
112+
.. button-link:: https://forms.office.com/Pages/ResponsePage.aspx?id=Z87GNLgV_06A6VLai-iXBlohdWpH-0xMs83xmsDFYEBUNEZNM0dBS0taWlMzWlpDRklIQ0tFVEVSTC4u
116113
:color: black
117114
:expand:
118115

doc/source/how-to/compatibility.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ introduced in an earlier version are also supported in later versions. Suppressi
3434
a feature would lead to a backward compatibility issue.
3535

3636
Because the same type of issues can happen with the PyAnsys servers wrapping
37-
Ansys products, creating a similar *maximum version* data structure is
38-
is necessary. While there are no such implementations yet, it should work
39-
in the same way as the minimum version data structure.
37+
Ansys products, creating a similar *maximum version* data structure is necessary.
38+
While there are no such implementations yet, it should work in the same way as the
39+
minimum version data structure.
4040

4141
``version_requires`` decorator
4242
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/source/how-to/grpc-api-packages.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,23 @@ underlying implementations.
276276
For each client library release, only a single gRPC API version should be wrapped
277277
to maintain a consistent API abstraction expectation for the supporting server instances.
278278

279+
Securing connections
280+
~~~~~~~~~~~~~~~~~~~~
281+
282+
It is possible to secure connections between the Python client library and the
283+
product servers.
284+
285+
For developers, use the `cyberchannel`_ module provided in the
286+
`ansys-tools-common`_ to implement secure connections. This ensures compliance
287+
with the latest security standards defined by PyAnsys.
288+
289+
For users, refer to the `certificates`_ section for creating and managing
290+
all necessary certificates for secure connections.
291+
292+
.. _cyberchannel: https://tools.docs.pyansys.com/version/stable/user_guide/secure_grpc.html#the-cyberchannel-module
293+
.. _ansys-tools-common: https://tools.docs.pyansys.com
294+
.. _certificates: https://tools.docs.pyansys.com/version/0.3/user_guide/secure_grpc.html#generating-certificates-for-mtls
295+
279296
Public versus private Python API package
280297
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
281298

0 commit comments

Comments
 (0)