Skip to content

Add python 3.13 support #740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f784f32
Update spelling of PyDPF - Composites (#755)
greschd Jan 8, 2025
5a38a4d
Improve error message on inexistent files with local server (#754)
greschd Jan 9, 2025
f7a7b17
Add PyACP logo (#756)
greschd Jan 9, 2025
d47183c
Set LIBGL_ALWAYS_SOFTWARE env variable in doc build (#762)
greschd Jan 13, 2025
b944c2c
Bump the dependencies group across 1 directory with 6 updates (#766)
dependabot[bot] Jan 20, 2025
3a1e323
Bump the dependencies group across 1 directory with 4 updates (#769)
dependabot[bot] Jan 22, 2025
9574b0f
Bump jinja2 from 3.1.4 to 3.1.5 (#773)
dependabot[bot] Jan 27, 2025
f1924cb
Bump hypothesis from 6.124.2 to 6.124.7 in the dependencies group (#772)
dependabot[bot] Jan 27, 2025
8bbe922
Getting Started update (#774)
SRaimondi Jan 30, 2025
0f68286
Bump the dependencies group across 1 directory with 6 updates (#776)
dependabot[bot] Feb 17, 2025
3513298
Bump the dependencies group across 1 directory with 4 updates (#778)
dependabot[bot] Feb 17, 2025
f51fd62
Use main branch for logo link (#780)
greschd Feb 17, 2025
411c749
Always orphan the gh-pages branch (#781)
greschd Feb 17, 2025
a0585cc
Update pre-commit hooks, use poetry 2.x (#779)
greschd Feb 17, 2025
be2170c
Bump the dependencies group with 2 updates (#785)
dependabot[bot] Feb 24, 2025
d9be303
Bump the dependencies group with 4 updates (#786)
dependabot[bot] Mar 3, 2025
2debb93
Bump the dependencies group with 3 updates (#787)
dependabot[bot] Mar 10, 2025
95f6840
Bump the dependencies group with 4 updates (#789)
dependabot[bot] Mar 17, 2025
5c874d8
Bump jinja2 from 3.1.5 to 3.1.6 (#790)
dependabot[bot] Mar 17, 2025
a78a5ab
Add retry to launch_acp in benchmark tests (#783)
greschd Mar 19, 2025
2f29ca2
Edit documentation build instructions (#784)
greschd Mar 20, 2025
8573823
Fix title in PyMAPDL (basic) workflow example (#782)
greschd Mar 20, 2025
d66a2a9
Enable sensor by solid model (#788)
greschd Mar 20, 2025
1889e9c
Bump the dependencies group with 2 updates (#791)
dependabot[bot] Mar 24, 2025
d1f2777
Bump the dependencies group with 2 updates (#796)
dependabot[bot] Mar 31, 2025
f4d8c17
chore: deprecate "plotting" target in favor of "graphics" (#797)
RobPasMue Mar 31, 2025
730fc31
Add missing analysis ply access on solid model entities (#792)
greschd Apr 2, 2025
200c1d1
Bump the dependencies group with 4 updates (#800)
dependabot[bot] Apr 7, 2025
751abcb
Fix modeling ply clear() method (#808)
greschd Apr 14, 2025
8166a93
Bump ansys/actions from 8 to 9 (#806)
dependabot[bot] Apr 14, 2025
8b162a7
Improve getting started (#810)
greschd Apr 14, 2025
c479cf0
Fix ACPInstance restart behavior (#809)
greschd Apr 14, 2025
5c3620b
Show edges in getting started (#811)
greschd Apr 14, 2025
56d6932
Fix indentation errors in examples (#813)
greschd Apr 15, 2025
8f05e47
Regenerate poetry lockfile (#814)
greschd Apr 15, 2025
3fda638
Explicitly set the plot theme in all examples (#812)
greschd Apr 15, 2025
f103cb1
Add note about missing output in examples (#815)
greschd Apr 15, 2025
d9106e3
Linearize ISM mesh for plotting (#817)
greschd Apr 16, 2025
9379d7c
Getting started: show fiber direction instead of reference direction …
greschd Apr 16, 2025
5222628
docs: Update ``CONTRIBUTORS.md`` with the latest contributors (#805)
pyansys-ci-bot Apr 16, 2025
640f22d
Update dependencies, fix PyVista incompatibility (#824)
greschd Apr 22, 2025
be87062
Add Python 3.13 support
greschd Nov 28, 2024
0ab98f5
[TO REVERT] Exclude ansys-mapdl-core and ansys-mechanical-core in Pyt…
greschd Dec 10, 2024
d2ad2fd
Exclude PyVista 0.44.2
greschd Dec 10, 2024
77b08d1
Remove environment marker on ansys-mechanical-core
greschd Apr 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- name: Install library, with all optional groups
run: |
pip install -U pip
pip install 'poetry!=1.7.0'
poetry install --with dev,test --all-extras
pip install poetry
poetry install --all-groups --all-extras

- name: Build API package from custom branch
if: "${{ env.API_BRANCH != '' }}"
Expand All @@ -82,7 +82,7 @@ jobs:
name: "Documentation style"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/doc-style@v8
- uses: ansys/actions/doc-style@v9
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -92,15 +92,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
exclude:
- should-release: false
os: macos-latest
steps:
- name: "Build wheelhouse and perform smoke test"
uses: ansys/actions/build-wheelhouse@v8
uses: ansys/actions/build-wheelhouse@v9
with:
library-name: ${{ env.PACKAGE_NAME }}
operating-system: ${{ matrix.os }}
Expand All @@ -110,13 +110,13 @@ jobs:
name: "Check library vulnerabilities"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/check-vulnerabilities@v8.1
- uses: ansys/actions/check-vulnerabilities@v9
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
python-package-name: 'ansys-acp-core'
dev-mode: ${{ github.ref != 'refs/heads/main' }}
extra-targets: "plotting"
extra-targets: "graphics"

testing-direct-launch:
name: Testing with direct launch mode
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", '3.13']
server-version: ["latest"]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
working-directory: tests/unittests
run: |
docker pull $IMAGE_NAME
poetry run pytest -v --license-server=1055@$LICENSE_SERVER --no-server-log-files --docker-image=$IMAGE_NAME --cov=ansys.acp.core --cov-report=term --cov-report=xml --cov-report=html -m "not plotting"
poetry run pytest -v --license-server=1055@$LICENSE_SERVER --no-server-log-files --docker-image=$IMAGE_NAME --cov=ansys.acp.core --cov-report=term --cov-report=xml --cov-report=html -m "not graphics"
env:
LICENSE_SERVER: ${{ secrets.LICENSE_SERVER }}
IMAGE_NAME: ghcr.io/ansys/acp:${{ matrix.server-version }}
Expand All @@ -238,14 +238,14 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", '3.13']
server-version: ["latest"]
include:
- python-version: "3.12"
- python-version: "3.13"
server-version: "2024R2"
- python-version: "3.12"
- python-version: "3.13"
server-version: "2025R1"
- python-version: "3.12"
- python-version: "3.13"
server-version: "2025R2"

steps:
Expand All @@ -270,7 +270,7 @@ jobs:
run: |
pip install -U pip
pip install 'poetry!=1.7.0'
poetry install --with test --extras plotting
poetry install --with test --extras graphics

- name: Build API package from custom branch
if: "${{ env.API_BRANCH != '' }}"
Expand Down Expand Up @@ -357,7 +357,7 @@ jobs:
run: |
pip install -U pip
pip install 'poetry!=1.7.0'
poetry install --with test,dev --all-extras
poetry install --all-groups --all-extras

- name: Build API package from custom branch
if: "${{ env.API_BRANCH != '' }}"
Expand Down Expand Up @@ -411,6 +411,7 @@ jobs:
IMAGE_NAME: ${{ env.DOCKER_IMAGE_NAME }}
PYACP_DOC_SKIP_GALLERY: "true"
PYACP_DOC_SKIP_API: "true"
LIBGL_ALWAYS_SOFTWARE: 1

docs:
name: Build Documentation
Expand Down Expand Up @@ -504,6 +505,7 @@ jobs:
SPHINXOPT_NITPICKY: ${{ matrix.build_type == 'quick' && ' ' || '-n' }}
PYACP_DOC_SKIP_GALLERY: ${{ matrix.build_type == 'quick' && 'true' || 'false' }}
PYACP_DOC_SKIP_API: ${{ matrix.build_type == 'quick' && 'true' || 'false' }}
LIBGL_ALWAYS_SOFTWARE: 1

- name: Stop and clean up MAPDL and DPF servers
run: |
Expand Down Expand Up @@ -534,6 +536,8 @@ jobs:
- name: Build PDF Documentation
run: xvfb-run poetry run make -C doc pdf
if: ${{ matrix.build_type == 'full' }}
env:
LIBGL_ALWAYS_SOFTWARE: 1

- name: Upload PDF Documentation
uses: actions/upload-artifact@v4
Expand All @@ -550,7 +554,7 @@ jobs:
timeout-minutes: 30
steps:
- name: Build library source and wheel artifacts
uses: ansys/actions/build-library@v8
uses: ansys/actions/build-library@v9
with:
library-name: ${{ env.PACKAGE_NAME }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
Expand All @@ -562,14 +566,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Release to the public PyPI repository
uses: ansys/actions/release-pypi-public@v8
uses: ansys/actions/release-pypi-public@v9
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: "__token__"
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: Release to GitHub
uses: ansys/actions/release-github@v8
uses: ansys/actions/release-github@v9
with:
library-name: ${{ env.PACKAGE_NAME }}

Expand All @@ -580,11 +584,10 @@ jobs:
needs: [build]
steps:
- name: Deploy the latest documentation
uses: ansys/actions/doc-deploy-dev@v8
uses: ansys/actions/doc-deploy-dev@v9
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
force-orphan: false
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}

Expand All @@ -595,7 +598,7 @@ jobs:
needs: [release]
steps:
- name: Deploy the stable documentation
uses: ansys/actions/doc-deploy-stable@v8
uses: ansys/actions/doc-deploy-stable@v9
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
timeout-minutes: 30

steps:
Expand All @@ -32,10 +32,10 @@ jobs:
python -m venv test_env
. test_env/bin/activate

pip install $(echo dist/*.whl)[plotting]
pip install $(echo dist/*.whl)[graphics]

poetry config virtualenvs.create false --local
poetry install --no-root --only test --extras plotting
poetry install --no-root --only test --extras graphics

- name: Login in Github Container registry
uses: docker/login-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package_cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Delete untagged package versions"
uses: ansys/actions/hk-package-clean-untagged@v8
uses: ansys/actions/hk-package-clean-untagged@v9
with:
package-org: 'ansys'
package-name: 'acp'
Expand Down
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py310-plus]

- repo: https://github.com/psf/black
rev: "24.10.0" # when changed, also update the version in blacken-docs
rev: "25.1.0" # when changed, also update the version in blacken-docs
hooks:
- id: black

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==24.10.0]
additional_dependencies: [black==25.1.0]

- repo: https://github.com/pycqa/isort
rev: "5.13.2"
rev: "6.0.0"
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: "7.1.1"
rev: "7.1.2"
hooks:
- id: flake8

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies: ["tomli"] # needed to parse pyproject.toml
exclude: '^poetry\.lock|pyproject\.toml$'
exclude: '^poetry\.lock|pyproject\.toml|.*\.svg$'

- repo: https://github.com/python-poetry/poetry/
rev: "1.8.0"
rev: "2.1.1"
hooks:
- id: poetry-check
name: "poetry: check pyproject.toml syntax"
Expand All @@ -51,7 +51,7 @@ repos:
exclude: "^(tests/)|(type_checks/)|(examples/)"

- repo: https://github.com/kynan/nbstripout
rev: 0.8.0
rev: 0.8.1
hooks:
- id: nbstripout
args:
Expand All @@ -61,7 +61,7 @@ repos:
]

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.4.3
rev: v0.5.1
hooks:
- id: add-license-headers
args: ["--start_year", "2022"]
Expand Down
4 changes: 1 addition & 3 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@

## Individual Contributors

* [Dominik Gresch](https://github.com/greschd)
* [Jan von Rickenbach](https://github.com/janvonrickenbach)
* [Jonathan Zopes](https://github.com/jonathanzopes)
* [Kathy Pippert](https://github.com/PipKat)
* [Nellie Shum](https://github.com/nshum4)
* [René Roos](https://github.com/roosre)
* [Revathy Venugopal](https://github.com/Revathyvenugopal162)
* [Roberto Pastor Muela](https://github.com/RobPasMue)
* [Simone Raimondi](https://github.com/SRaimondi)
Loading
Loading