Skip to content

Commit 39f4d38

Browse files
Merge branch 'main' into feat/update-with-delta
2 parents cc59f6a + f3669e4 commit 39f4d38

File tree

24 files changed

+152
-144
lines changed

24 files changed

+152
-144
lines changed

.github/workflows/ci_cd.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
env:
12-
MAIN_PYTHON_VERSION: '3.12'
12+
MAIN_PYTHON_VERSION: '3.13'
1313
PACKAGE_NAME: 'ansys-geometry-core'
1414
DOCUMENTATION_CNAME: 'geometry.docs.pyansys.com'
1515
ANSRV_GEO_IMAGE: 'ghcr.io/ansys/geometry'
@@ -35,7 +35,7 @@ jobs:
3535
contents: write
3636
pull-requests: write
3737
steps:
38-
- uses: ansys/actions/doc-deploy-changelog@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
38+
- uses: ansys/actions/doc-deploy-changelog@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
3939
with:
4040
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
4141
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
@@ -45,7 +45,7 @@ jobs:
4545
name: Vulnerabilities
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: ansys/actions/check-vulnerabilities@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
48+
- uses: ansys/actions/check-vulnerabilities@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
4949
with:
5050
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5151
python-package-name: ${{ env.PACKAGE_NAME }}
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- name: Check commit name
61-
uses: ansys/actions/check-pr-title@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
61+
uses: ansys/actions/check-pr-title@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
6262
with:
6363
token: ${{ secrets.GITHUB_TOKEN }}
6464

@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
steps:
6969
- name: PyAnsys documentation style checks
70-
uses: ansys/actions/doc-style@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
70+
uses: ansys/actions/doc-style@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
7171
with:
7272
token: ${{ secrets.GITHUB_TOKEN }}
7373

@@ -86,7 +86,7 @@ jobs:
8686
os: macos-latest
8787
steps:
8888
- name: Build wheelhouse and perform smoke test
89-
uses: ansys/actions/build-wheelhouse@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
89+
uses: ansys/actions/build-wheelhouse@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
9090
with:
9191
library-name: ${{ env.PACKAGE_NAME }}
9292
operating-system: ${{ matrix.os }}
@@ -98,7 +98,7 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: PyAnsys documentation style checks
101-
uses: ansys/actions/docker-style@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
101+
uses: ansys/actions/docker-style@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
102102
with:
103103
directory: docker
104104
recursive: true
@@ -342,7 +342,7 @@ jobs:
342342
docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE_DOCS_TAG }}
343343
344344
- name: Run Ansys documentation building action
345-
uses: ansys/actions/doc-build@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
345+
uses: ansys/actions/doc-build@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
346346
with:
347347
python-version: ${{ env.MAIN_PYTHON_VERSION }}
348348
add-pdf-html-docs-as-assets: true
@@ -401,6 +401,12 @@ jobs:
401401
echo "SKIP_UNSTABLE=$Result" >> $GITHUB_ENV
402402
echo "SKIP_UNSTABLE will be: $Result"
403403
404+
- name: Set up headless display
405+
if: env.SKIP_UNSTABLE == 'false'
406+
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
407+
with:
408+
pyvista: false
409+
404410
- name: Login in Github Container registry
405411
if: env.SKIP_UNSTABLE == 'false'
406412
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
@@ -429,7 +435,7 @@ jobs:
429435

430436
- name: Run pytest
431437
if: env.SKIP_UNSTABLE == 'false'
432-
uses: ansys/actions/tests-pytest@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
438+
uses: ansys/actions/tests-pytest@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
433439
env:
434440
ALLOW_PLOTTING: true
435441
with:
@@ -474,6 +480,11 @@ jobs:
474480
matrix:
475481
python-version: ['3.10', '3.11', '3.12', '3.13']
476482
steps:
483+
- name: Set up headless display
484+
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
485+
with:
486+
pyvista: false
487+
477488
- name: Login in Github Container registry
478489
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
479490
with:
@@ -574,7 +585,7 @@ jobs:
574585
id-token: write
575586
steps:
576587
- name: Build library source and wheel artifacts
577-
uses: ansys/actions/build-library@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
588+
uses: ansys/actions/build-library@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
578589
with:
579590
library-name: ${{ env.PACKAGE_NAME }}
580591
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -769,6 +780,11 @@ jobs:
769780
with:
770781
python-version: ${{ env.MAIN_PYTHON_VERSION }}
771782

783+
- name: Set up headless display
784+
uses: pyvista/setup-headless-display-action@52bda06d59c0fc422fc2512c9c670bf6b66616f8 # v3.2
785+
with:
786+
pyvista: false
787+
772788
- name: Download Linux binaries
773789
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
774790
with:
@@ -798,14 +814,13 @@ jobs:
798814
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
799815

800816
- name: Run pytest
801-
uses: ansys/actions/tests-pytest@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
817+
uses: ansys/actions/tests-pytest@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
802818
env:
803819
ALLOW_PLOTTING: true
804820
with:
805821
python-version: ${{ env.MAIN_PYTHON_VERSION }}
806822
pytest-extra-args: "--use-existing-service=yes"
807823
checkout: false
808-
requires-xvfb: true
809824
randomize: true
810825

811826
- name: "Compressing Linux Dockerfile"
@@ -840,7 +855,7 @@ jobs:
840855
contents: write
841856
steps:
842857
- name: Release to GitHub
843-
uses: ansys/actions/release-github@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
858+
uses: ansys/actions/release-github@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
844859
with:
845860
token: ${{ secrets.GITHUB_TOKEN }}
846861
library-name: ${{ env.PACKAGE_NAME }}
@@ -880,7 +895,7 @@ jobs:
880895
needs: [package]
881896
steps:
882897
- name: Deploy the latest documentation
883-
uses: ansys/actions/doc-deploy-dev@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
898+
uses: ansys/actions/doc-deploy-dev@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
884899
with:
885900
cname: ${{ env.DOCUMENTATION_CNAME }}
886901
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -894,7 +909,7 @@ jobs:
894909
needs: [release, release-pypi]
895910
steps:
896911
- name: Deploy the stable documentation
897-
uses: ansys/actions/doc-deploy-stable@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
912+
uses: ansys/actions/doc-deploy-stable@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
898913
with:
899914
cname: ${{ env.DOCUMENTATION_CNAME }}
900915
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -911,7 +926,7 @@ jobs:
911926
pull-requests: write
912927
steps:
913928
- name: Automerge PRs
914-
uses: ansys/actions/hk-automerge-prs@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
929+
uses: ansys/actions/hk-automerge-prs@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
915930
with:
916931
approver: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
917932
approver-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

.github/workflows/docker_cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323

2424
- name: "Perform versions cleanup - except certain tags"
25-
uses: ansys/actions/hk-package-clean-except@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
25+
uses: ansys/actions/hk-package-clean-except@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
2626
with:
2727
package-name: 'geometry'
2828
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
pull-requests: write
101101
runs-on: ubuntu-latest
102102
steps:
103-
- uses: ansys/actions/doc-changelog@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
103+
- uses: ansys/actions/doc-changelog@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
104104
with:
105105
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
106106
use-conventional-commits: true

.github/workflows/nightly_docker_test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
- v*
2222

2323
env:
24-
MAIN_PYTHON_VERSION: '3.12'
24+
MAIN_PYTHON_VERSION: '3.13'
2525
ANSRV_GEO_IMAGE_WINDOWS_CORE_TAG: ghcr.io/ansys/geometry:core-windows-latest-unstable
2626
ANSRV_GEO_IMAGE_LINUX_CORE_TAG: ghcr.io/ansys/geometry:core-linux-latest-unstable
2727
ANSRV_GEO_PORT: 710
@@ -215,12 +215,11 @@ jobs:
215215
docker run --detach --name ${{ env.GEO_CONT_NAME }} -e LICENSE_SERVER=${{ env.ANSRV_GEO_LICENSE_SERVER }} -p ${{ env.ANSRV_GEO_PORT }}:50051 ${{ env.ANSRV_GEO_IMAGE_LINUX_CORE_TAG }}
216216
217217
- name: Run pytest
218-
uses: ansys/actions/tests-pytest@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
218+
uses: ansys/actions/tests-pytest@b753a73e0ac5d5b3f69811e860ca546a7488f98f # v9.0.3
219219
env:
220220
ALLOW_PLOTTING: true
221221
with:
222222
python-version: ${{ env.MAIN_PYTHON_VERSION }}
223-
requires-xvfb: true
224223

225224
- name: Stop the Geometry service
226225
if: always()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bump ansys/actions from 9.0.2 to 9.0.3 in the actions group
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bump PyVista and VTK versions (support Python 3.13)

doc/changelog.d/1925.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docstyle ordering

pyproject.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ all = [
5858
tests = [
5959
"ansys-platform-instancemanagement==1.1.2",
6060
"ansys-tools-path==0.7.1",
61-
"ansys-tools-visualization-interface==0.8.3",
61+
"ansys-tools-visualization-interface==0.9.1",
6262
"beartype==0.20.2",
6363
"docker==7.1.0",
6464
"geomdl==5.3.1",
@@ -72,24 +72,22 @@ tests = [
7272
"pytest==8.3.5",
7373
"pytest-cov==6.1.1",
7474
"pytest-pyvista==0.1.9",
75-
"pytest-xvfb==3.1.1",
76-
"pyvista[jupyter]==0.44.2",
75+
"pyvista[jupyter]==0.45.0",
7776
"requests==2.32.3",
7877
"scipy==1.15.2",
7978
"semver==3.0.4",
8079
"six==1.17.0",
81-
"vtk==9.3.1",
80+
"vtk==9.4.2",
8281
]
8382
tests-minimal = [
8483
"pytest==8.3.5",
8584
"pytest-cov==6.1.1",
8685
"pytest-pyvista==0.1.9",
87-
"pytest-xvfb==3.1.1",
8886
]
8987
doc = [
9088
"ansys-sphinx-theme[autoapi]==1.4.2",
9189
"ansys-tools-path==0.7.1",
92-
"ansys-tools-visualization-interface==0.8.3",
90+
"ansys-tools-visualization-interface==0.9.1",
9391
"beartype==0.20.2",
9492
"docker==7.1.0",
9593
"geomdl==5.3.1",
@@ -110,7 +108,7 @@ doc = [
110108
"Pint==0.24.4",
111109
"protobuf==5.29.3",
112110
"pygltflib==1.16.3",
113-
"pyvista[jupyter]==0.44.2",
111+
"pyvista[jupyter]==0.45.0",
114112
"quarto-cli==1.6.42",
115113
"requests==2.32.3",
116114
"scipy==1.15.2",
@@ -121,7 +119,7 @@ doc = [
121119
"sphinx-copybutton==0.5.2",
122120
"sphinx-jinja==2.0.2",
123121
"trame-vtk==2.8.15",
124-
"vtk==9.3.1",
122+
"vtk==9.4.2",
125123
]
126124

127125
[project.urls]

src/ansys/geometry/core/_grpc/_services/_service.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ class _GRPCServices:
3535
"""
3636
Placeholder for the gRPC services (i.e. stubs).
3737
38-
Notes
39-
-----
40-
This class provides a unified interface to access the different
41-
gRPC services available in the Geometry API. It allows for easy
42-
switching between different versions of the API by using the
43-
`version` parameter in the constructor. The services are lazy-loaded
44-
to avoid unnecessary imports and to improve performance.
45-
4638
Parameters
4739
----------
4840
channel : grpc.Channel
4941
The gRPC channel to the server.
5042
version : GeometryApiProtos | str | None
5143
The version of the gRPC API protocol to use. If None, the latest
5244
version is used.
45+
46+
Notes
47+
-----
48+
This class provides a unified interface to access the different
49+
gRPC services available in the Geometry API. It allows for easy
50+
switching between different versions of the API by using the
51+
`version` parameter in the constructor. The services are lazy-loaded
52+
to avoid unnecessary imports and to improve performance.
5353
"""
5454

5555
def __init__(self, channel: grpc.Channel, version: GeometryApiProtos | str | None = None):

src/ansys/geometry/core/_grpc/_services/base/conversions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ def from_measurement_to_server_angle(input: Measurement) -> float:
5959
def to_distance(value: float | int) -> Distance:
6060
"""Convert a server value to a Distance object.
6161
62-
Notes
63-
-----
64-
The value is converted to a Distance object using the default server length unit.
65-
The value should represent a length in the server's unit system.
66-
6762
Parameters
6863
----------
6964
value : float | int
@@ -73,5 +68,10 @@ def to_distance(value: float | int) -> Distance:
7368
-------
7469
Distance
7570
Converted distance.
71+
72+
Notes
73+
-----
74+
The value is converted to a Distance object using the default server length unit.
75+
The value should represent a length in the server's unit system.
7676
"""
7777
return Distance(value, DEFAULT_UNITS.SERVER_LENGTH)

0 commit comments

Comments
 (0)