chore: active support for Python 3.13
Description
Active support for Python 3.13 Closes https://github.com/ansys/pymapdl/issues/3600
Checklist
- [x] I have visited and read Develop PyMAPDL.
- [x] I have tested my changes locally
- [x] I have added necessary documentation or updated existing documentation.
- [x] I have followed the PyMAPDL coding style guidelines.
- [x] I have added appropriate unit tests that also ensure the minimal coverage criteria.
- [x] I have reviewed my changes before submitting this pull request.
- [x] I have linked the issue or issues that are solved to the PR if any.
- [x] I have assigned this PR to myself.
- [x] I have marked this PR as
draftif it is not ready to be reviewed yet. - [x] I have made sure that the title of my PR follows Commit naming conventions (e.g.
feat: adding new MAPDL command)
Thanks for opening a Pull Request. If you want to perform a review write a comment saying:
@ansys-reviewer-bot review
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.29%. Comparing base (
9209421) to head (05c6046). Report is 1 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #3605 +/- ##
==========================================
- Coverage 88.30% 88.29% -0.02%
==========================================
Files 187 187
Lines 14819 14819
==========================================
- Hits 13086 13084 -2
- Misses 1733 1735 +2
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@clatapie
Only VTK 9.4.0 is compatible with 3.13
Thanks @RobPasMue. I updated all the vtk versions, including the ones within .devcontainer.
Seems to me like you are hitting some PyVista 3.13 incompatibilities.
Seems to me like you are hitting some PyVista 3.13 incompatibilities.
Yep. This is on hold until https://github.com/ansys/ansys-tools-visualization-interface/issues/208 is fixed.
We are going to need a patch release in ATVI (ansys-tools-visualization-interface).
ATVI
Not another acronym pls 😭
ATVI
Not another acronym pls 😭
We need it! xDDD
By the way, getting Python segfaults when using VTK 9.4.0... so this PR has to wait...
https://github.com/ansys/pymapdl/pull/3615
Summarise:
PyVista doesn't yet support VTK 9.4, and VTK 9.3 doesn't support Python 3.13.
So we must wait for pyvista 0.44.3.
Ref: https://github.com/pyvista/pyvista/issues/6857#issuecomment-2501600048
So we must wait for pyvista 0.44.3.
PyVista 0.45.0 with support for Python 3.13 has been released 🎉
So we must wait for pyvista 0.44.3.
PyVista
0.45.0with support for Python 3.13 has been released 🎉

What's the status here @clatapie @germa89 ?
@RobPasMue @MaxJPRey @clatapie .... well.. that was unexpected.
Reviewer's Guide
This pull request implements active support for Python 3.13 by modifying CI workflows to include 3.13 in test matrices and configurations, updating project files (pyproject.toml, tox.ini) to reflect Python 3.13 compatibility and version ranges, and upgrading the VTK dependency. Issue templates and the changelog were also updated to include Python 3.13.
File-Level Changes
| Change | Details | Files |
|---|---|---|
| Enhanced CI/CD pipelines for Python 3.13 testing. |
|
.github/workflows/test-local.yml.github/workflows/ci.yml.github/workflows/test-remote.yml |
| Aligned project configuration with Python 3.13 support. |
|
pyproject.tomltox.ini |
| Managed project dependencies, primarily VTK. |
|
pyproject.tomldoc/source/examples/extended_examples/gui/requirements.txt.devcontainer/codespaces-dev/requirements.txt.devcontainer/codespaces-docs/requirements.txt |
| Updated development and tracking resources for Python 3.13. |
|
.github/ISSUE_TEMPLATE/bug.yml.github/ISSUE_TEMPLATE/examples.ymldoc/changelog.d/3605.added.md |
Tips and commands
Interacting with Sourcery
- Trigger a new review: Comment
@sourcery-ai reviewon the pull request. - Continue discussions: Reply directly to Sourcery's review comments.
- Generate a GitHub issue from a review comment: Ask Sourcery to create an
issue from a review comment by replying to it. You can also reply to a
review comment with
@sourcery-ai issueto create an issue from it. - Generate a pull request title: Write
@sourcery-aianywhere in the pull request title to generate a title at any time. You can also comment@sourcery-ai titleon the pull request to (re-)generate the title at any time. - Generate a pull request summary: Write
@sourcery-ai summaryanywhere in the pull request body to generate a PR summary at any time exactly where you want it. You can also comment@sourcery-ai summaryon the pull request to (re-)generate the summary at any time. - Generate reviewer's guide: Comment
@sourcery-ai guideon the pull request to (re-)generate the reviewer's guide at any time. - Resolve all Sourcery comments: Comment
@sourcery-ai resolveon the pull request to resolve all Sourcery comments. Useful if you've already addressed all the comments and don't want to see them anymore. - Dismiss all Sourcery reviews: Comment
@sourcery-ai dismisson the pull request to dismiss all existing Sourcery reviews. Especially useful if you want to start fresh with a new review - don't forget to comment@sourcery-ai reviewto trigger a new review!
Customizing Your Experience
Access your dashboard to:
- Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others.
- Change the review language.
- Add, remove or edit custom review instructions.
- Adjust other review settings.
Getting Help
- Contact our support team for questions or feedback.
- Visit our documentation for detailed guides and information.
- Keep in touch with the Sourcery team by following us on X/Twitter, LinkedIn or GitHub.
@pyansys-ci-bot LGTM.
@RobPasMue building the wheels also works (It should anyways). So I am merging now.
Great news!