Skip to content

Commit 82ed470

Browse files
committed
Merge branch 'main' into release/0.5
2 parents 3a72bcb + 2b72a4f commit 82ed470

Some content is hidden

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

62 files changed

+1009
-230
lines changed

.github/workflows/ci_cd.yml

Lines changed: 66 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
contents: write
3939
pull-requests: write
4040
steps:
41-
- uses: ansys/actions/doc-deploy-changelog@main
41+
- uses: ansys/actions/doc-deploy-changelog@v6
4242
with:
4343
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
4444

@@ -48,15 +48,15 @@ jobs:
4848
steps:
4949
- name: PyAnsys Vulnerability check (on main)
5050
if: github.ref == 'refs/heads/main'
51-
uses: ansys/actions/check-vulnerabilities@main
51+
uses: ansys/actions/check-vulnerabilities@v6
5252
with:
5353
python-version: ${{ env.MAIN_PYTHON_VERSION }}
5454
python-package-name: ${{ env.PACKAGE_NAME }}
5555
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
5656

5757
- name: PyAnsys Vulnerability check (on dev mode)
5858
if: github.ref != 'refs/heads/main'
59-
uses: ansys/actions/check-vulnerabilities@main
59+
uses: ansys/actions/check-vulnerabilities@v6
6060
with:
6161
python-version: ${{ env.MAIN_PYTHON_VERSION }}
6262
python-package-name: ${{ env.PACKAGE_NAME }}
@@ -70,15 +70,15 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- name: Check branch name
73-
uses: ansys/actions/branch-name-style@v5
73+
uses: ansys/actions/branch-name-style@v6
7474

7575
commit-name:
7676
if: github.event_name == 'pull_request'
7777
name: Check the name of the commit
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: Check commit name
81-
uses: ansys/actions/commit-style@v5
81+
uses: ansys/actions/commit-style@v6
8282
with:
8383
token: ${{ secrets.GITHUB_TOKEN }}
8484

@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- name: PyAnsys documentation style checks
90-
uses: ansys/actions/doc-style@v5
90+
uses: ansys/actions/doc-style@v6
9191
with:
9292
token: ${{ secrets.GITHUB_TOKEN }}
9393

@@ -106,7 +106,7 @@ jobs:
106106
os: macos-latest
107107
steps:
108108
- name: Build wheelhouse and perform smoke test
109-
uses: ansys/actions/build-wheelhouse@v5
109+
uses: ansys/actions/build-wheelhouse@v6
110110
with:
111111
library-name: ${{ env.PACKAGE_NAME }}
112112
operating-system: ${{ matrix.os }}
@@ -117,7 +117,7 @@ jobs:
117117
runs-on: ubuntu-latest
118118
steps:
119119
- name: PyAnsys documentation style checks
120-
uses: ansys/actions/docker-style@v5
120+
uses: ansys/actions/docker-style@v6
121121
with:
122122
directory: docker
123123
recursive: true
@@ -404,7 +404,7 @@ jobs:
404404

405405
- name: Run pytest
406406
if: env.SKIP_UNSTABLE == 'false'
407-
uses: ansys/actions/tests-pytest@v5
407+
uses: ansys/actions/tests-pytest@v6
408408
env:
409409
ALLOW_PLOTTING: true
410410
with:
@@ -437,13 +437,61 @@ jobs:
437437
docker rm ${{ env.GEO_CONT_NAME }}
438438
fi
439439
440+
testing-min-reqs:
441+
name: Testing with minimum requirements
442+
needs: [smoke-tests]
443+
runs-on: ubuntu-latest
444+
env:
445+
ANSRV_GEO_IMAGE_MINREQS: 'ghcr.io/ansys/geometry:linux-latest'
446+
strategy:
447+
fail-fast: false
448+
matrix:
449+
python-version: ['3.9', '3.10', '3.11', '3.12']
450+
steps:
451+
- name: Login in Github Container registry
452+
uses: docker/login-action@v3
453+
with:
454+
registry: ghcr.io
455+
username: ${{ github.actor }}
456+
password: ${{ secrets.GITHUB_TOKEN }}
457+
458+
- name: Pull and launch geometry service
459+
run: |
460+
docker pull ${{ env.ANSRV_GEO_IMAGE_MINREQS }}
461+
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_MINREQS }}
462+
463+
- name: Checkout repository
464+
uses: actions/checkout@v4
465+
466+
- name: Setup Python ${{ matrix.python-version }}
467+
uses: actions/setup-python@v5
468+
with:
469+
python-version: ${{ matrix.python-version }}
470+
471+
- name: Install minimum requirements
472+
run: |
473+
python -m pip install --upgrade pip
474+
pip install -e .[all,tests-minimal]
475+
pip install pytest
476+
477+
- name: Run pytest
478+
run: |
479+
pytest -v
480+
481+
- name: Stop the Geometry service
482+
if: always()
483+
run: |
484+
docker stop ${{ env.GEO_CONT_NAME }}
485+
docker logs ${{ env.GEO_CONT_NAME }}
486+
docker rm ${{ env.GEO_CONT_NAME }}
487+
440488
package:
441489
name: Package library
442-
needs: [testing-windows, testing-linux, docs]
490+
needs: [testing-windows, testing-linux, testing-min-reqs, docs]
443491
runs-on: ubuntu-latest
444492
steps:
445493
- name: Build library source and wheel artifacts
446-
uses: ansys/actions/build-library@v5
494+
uses: ansys/actions/build-library@v6
447495
with:
448496
library-name: ${{ env.PACKAGE_NAME }}
449497
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -634,7 +682,7 @@ jobs:
634682
restore-keys: pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
635683

636684
- name: Run pytest
637-
uses: ansys/actions/tests-pytest@v5
685+
uses: ansys/actions/tests-pytest@v6
638686
env:
639687
ALLOW_PLOTTING: true
640688
with:
@@ -670,14 +718,14 @@ jobs:
670718
runs-on: ubuntu-latest
671719
steps:
672720
- name: Release to the public PyPI repository
673-
uses: ansys/actions/release-pypi-public@v5
721+
uses: ansys/actions/release-pypi-public@v6
674722
with:
675723
library-name: ${{ env.PACKAGE_NAME }}
676724
twine-username: "__token__"
677725
twine-token: ${{ secrets.PYPI_TOKEN }}
678726

679727
- name: Release to GitHub
680-
uses: ansys/actions/release-github@v5
728+
uses: ansys/actions/release-github@v6
681729
with:
682730
library-name: ${{ env.PACKAGE_NAME }}
683731
additional-artifacts: windows-dockerfile.zip linux-dockerfile.zip
@@ -689,8 +737,7 @@ jobs:
689737
needs: [package]
690738
steps:
691739
- name: Deploy the latest documentation
692-
# TODO: testing SEO improvements. This branch reuses the "index.html" from the stable version
693-
uses: ansys/actions/doc-deploy-dev@feat/seo-improvements
740+
uses: ansys/actions/doc-deploy-dev@v6
694741
with:
695742
cname: ${{ env.DOCUMENTATION_CNAME }}
696743
token: ${{ secrets.GITHUB_TOKEN }}
@@ -702,7 +749,7 @@ jobs:
702749
needs: upload_dev_docs
703750
steps:
704751
- name: "Deploy the latest documentation index"
705-
uses: ansys/actions/doc-deploy-index@v5
752+
uses: ansys/actions/doc-deploy-index@v6
706753
with:
707754
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
708755
index-name: pyansys-geometry-vdev
@@ -717,9 +764,7 @@ jobs:
717764
needs: [release]
718765
steps:
719766
- name: Deploy the stable documentation
720-
# TODO: testing SEO improvements. This branch avoids creating a
721-
# sitemap.xml pages in opposite to v5.
722-
uses: ansys/actions/doc-deploy-stable@feat/seo-improvements
767+
uses: ansys/actions/doc-deploy-stable@v6
723768
with:
724769
cname: ${{ env.DOCUMENTATION_CNAME }}
725770
token: ${{ secrets.GITHUB_TOKEN }}
@@ -745,7 +790,7 @@ jobs:
745790
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
746791
747792
- name: "Deploy the latest documentation index"
748-
uses: ansys/actions/doc-deploy-index@v5
793+
uses: ansys/actions/doc-deploy-index@v6
749794
with:
750795
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
751796
index-name: pyansys-geometry-v${{ env.VERSION_MEILI }}

.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@v5
25+
uses: ansys/actions/hk-package-clean-except@v6
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
@@ -96,6 +96,6 @@ jobs:
9696
pull-requests: write
9797
runs-on: ubuntu-latest
9898
steps:
99-
- uses: ansys/actions/doc-changelog@main
99+
- uses: ansys/actions/doc-changelog@v6
100100
with:
101101
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

.github/workflows/nightly_docker_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
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_TAG }}
123123
124124
- name: Run pytest
125-
uses: ansys/actions/tests-pytest@v5
125+
uses: ansys/actions/tests-pytest@v6
126126
env:
127127
ALLOW_PLOTTING: true
128128
with:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
rev: v2.2.6
3838
hooks:
3939
- id: codespell
40-
args: ["--ignore-words", "doc/styles/Vocab/ANSYS/accept.txt", "-w"]
40+
args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt", "-w"]
4141

4242
- repo: https://github.com/pycqa/pydocstyle
4343
rev: 6.3.0
@@ -55,7 +55,7 @@ repos:
5555
- id: trailing-whitespace
5656

5757
- repo: https://github.com/ansys/pre-commit-hooks
58-
rev: v0.2.9
58+
rev: v0.3.1
5959
hooks:
6060
- id: add-license-headers
6161
files: '(src|examples|tests|docker)/.*\.(py)|\.(proto)'

CHANGELOG.md

Lines changed: 3 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,7 @@
11
# CHANGELOG
22

3-
This project uses [towncrier](https://towncrier.readthedocs.io/) to generate changelogs. You can see the changes for the upcoming release in the [changelog fragment directory](https://github.com/ansys/pyansys-geometry/tree/main/doc/changelog.d).
3+
This project uses [towncrier](https://towncrier.readthedocs.io/) to generate changelogs.
44

5-
<!-- towncrier release notes start -->
5+
Refer to the [raw release notes](doc/source/changelog.rst) for more information.
66

7-
## [0.5.0](https://github.com/ansys/pyansys-geometry/releases/tag/v0.5.0) - 2024-04-17
8-
9-
10-
### Added
11-
12-
- feat: inserting document into existing design [#930](https://github.com/ansys/pyansys-geometry/pull/930)
13-
- feat: add changelog action [#1023](https://github.com/ansys/pyansys-geometry/pull/1023)
14-
- feat: create a sphere body on the backend [#1035](https://github.com/ansys/pyansys-geometry/pull/1035)
15-
- feat: mirror a body [#1055](https://github.com/ansys/pyansys-geometry/pull/1055)
16-
- feat: sweeping chains and profiles [#1056](https://github.com/ansys/pyansys-geometry/pull/1056)
17-
- feat: vulnerability checks [#1071](https://github.com/ansys/pyansys-geometry/pull/1071)
18-
- feat: loft profiles [#1075](https://github.com/ansys/pyansys-geometry/pull/1075)
19-
- feat: accept bandit advisories in-line for subprocess [#1077](https://github.com/ansys/pyansys-geometry/pull/1077)
20-
- feat: adding containers to automatic launcher [#1090](https://github.com/ansys/pyansys-geometry/pull/1090)
21-
- feat: minor changes to Linux Dockerfile [#1111](https://github.com/ansys/pyansys-geometry/pull/1111)
22-
- feat: avoid error if folder exists [#1125](https://github.com/ansys/pyansys-geometry/pull/1125)
23-
24-
### Changed
25-
26-
- build: changing sphinx-autoapi from 3.1.a2 to 3.1.a4 [#1038](https://github.com/ansys/pyansys-geometry/pull/1038)
27-
- chore: add pre-commit.ci configuration [#1065](https://github.com/ansys/pyansys-geometry/pull/1065)
28-
- chore: dependabot PR automatic approval [#1067](https://github.com/ansys/pyansys-geometry/pull/1067)
29-
- ci: bump the actions group with 1 update [#1082](https://github.com/ansys/pyansys-geometry/pull/1082)
30-
- chore: update docker tags to be kept [#1085](https://github.com/ansys/pyansys-geometry/pull/1085)
31-
- chore: update pre-commit versions [#1094](https://github.com/ansys/pyansys-geometry/pull/1094)
32-
- build: use ansys-sphinx-theme autoapi target [#1097](https://github.com/ansys/pyansys-geometry/pull/1097)
33-
- fix: removing @PipKat from *.md files - changelog fragments [#1098](https://github.com/ansys/pyansys-geometry/pull/1098)
34-
- ci: dashboard upload does not apply anymore [#1099](https://github.com/ansys/pyansys-geometry/pull/1099)
35-
- chore: pre-commit.ci not working properly [#1108](https://github.com/ansys/pyansys-geometry/pull/1108)
36-
- chore: update and adding pre-commit.ci config hook [#1109](https://github.com/ansys/pyansys-geometry/pull/1109)
37-
- ci: main Python version update to 3.12 [#1112](https://github.com/ansys/pyansys-geometry/pull/1112)
38-
- ci: skip Linux tests with common approach [#1113](https://github.com/ansys/pyansys-geometry/pull/1113)
39-
- ci: build changelog on release [#1118](https://github.com/ansys/pyansys-geometry/pull/1118)
40-
- chore: update CHANGELOG for v0.5.0 [#1119](https://github.com/ansys/pyansys-geometry/pull/1119)
41-
42-
### Fixed
43-
44-
- feat: re-enable open file on Linux [#817](https://github.com/ansys/pyansys-geometry/pull/817)
45-
- fix: adapt export and download tests to new hoops [#1057](https://github.com/ansys/pyansys-geometry/pull/1057)
46-
- fix: linux Dockerfile - replace .NET6.0 references by .NET8.0 [#1069](https://github.com/ansys/pyansys-geometry/pull/1069)
47-
- fix: misleading docstring for sweep_chain() [#1070](https://github.com/ansys/pyansys-geometry/pull/1070)
48-
- fix: prepare_and_start_backend is only available on Windows [#1076](https://github.com/ansys/pyansys-geometry/pull/1076)
49-
- fix: unit tests failing after dms update [#1087](https://github.com/ansys/pyansys-geometry/pull/1087)
50-
- build: beartype upper limit on v0.18 [#1095](https://github.com/ansys/pyansys-geometry/pull/1095)
51-
- fix: improper types being passed for Face and Edge ctor. [#1096](https://github.com/ansys/pyansys-geometry/pull/1096)
52-
- fix: return type should be dict and not ``ScalarMapContainer`` (grpc type) [#1103](https://github.com/ansys/pyansys-geometry/pull/1103)
53-
- fix: env version for Dockerfile Windows [#1120](https://github.com/ansys/pyansys-geometry/pull/1120)
54-
- fix: changelog description ill-formatted [#1121](https://github.com/ansys/pyansys-geometry/pull/1121)
55-
- fix: solve issues with intersphinx when releasing [#1123](https://github.com/ansys/pyansys-geometry/pull/1123)
56-
57-
### Dependencies
58-
59-
- build: bump the docs-deps group with 2 updates [#1062](https://github.com/ansys/pyansys-geometry/pull/1062), [#1093](https://github.com/ansys/pyansys-geometry/pull/1093), [#1105](https://github.com/ansys/pyansys-geometry/pull/1105)
60-
- build: bump ansys-api-geometry from 0.3.13 to 0.4.0 [#1066](https://github.com/ansys/pyansys-geometry/pull/1066)
61-
- build: bump the docs-deps group with 1 update [#1080](https://github.com/ansys/pyansys-geometry/pull/1080)
62-
- build: bump pytest-cov from 4.1.0 to 5.0.0 [#1081](https://github.com/ansys/pyansys-geometry/pull/1081)
63-
- build: bump ansys-api-geometry from 0.4.0 to 0.4.1 [#1092](https://github.com/ansys/pyansys-geometry/pull/1092)
64-
- build: bump beartype from 0.17.2 to 0.18.2 [#1106](https://github.com/ansys/pyansys-geometry/pull/1106)
65-
- build: bump ansys-tools-path from 0.4.1 to 0.5.1 [#1107](https://github.com/ansys/pyansys-geometry/pull/1107)
66-
- build: bump panel from 1.4.0 to 1.4.1 in the docs-deps group [#1114](https://github.com/ansys/pyansys-geometry/pull/1114)
67-
- build: bump scipy from 1.12.0 to 1.13.0 [#1115](https://github.com/ansys/pyansys-geometry/pull/1115)
68-
69-
70-
### Miscellaneous
71-
72-
- [pre-commit.ci] pre-commit autoupdate [#1063](https://github.com/ansys/pyansys-geometry/pull/1063)
73-
- docs: add examples on new methods [#1089](https://github.com/ansys/pyansys-geometry/pull/1089)
74-
- chore: pre-commit automatic update [#1116](https://github.com/ansys/pyansys-geometry/pull/1116)
7+
[Published release notes](https://geometry.docs.pyansys.com/version/stable/changelog.html) can be found in the online documentation.

LICENSE

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
MIT License
22

3-
Copyright (c) 2022 ANSYS, Inc. All rights reserved.
3+
Copyright (c) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ SOFTWARE.
2828

2929
| Version | Supported |
3030
| ------- | ------------------ |
31-
| <= 0.2 | :x: |
32-
| 0.3.x | :white_check_mark: |
31+
| <= 0.3 | :x: |
3332
| 0.4.x | :white_check_mark: |
33+
| 0.5.x | :white_check_mark: |
3434
| dev | :white_check_mark: |
3535

3636
## Reporting a Vulnerability

doc/.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ Vocab = ANSYS
2727
# Apply the following styles
2828
BasedOnStyles = Vale, Google
2929
Google.Headings = NO
30+
Vale.Terms = NO

doc/changelog.d/1126.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: security updates dropped for v0.3 or earlier

0 commit comments

Comments
 (0)