Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
fc35634
chore: active support for Python 3.13
clatapie Dec 9, 2024
5006226
chore: adding changelog file 3605.added.md [dependabot-skip]
pyansys-ci-bot Dec 9, 2024
06aadef
fix: version in ``pyproject.toml``
clatapie Dec 9, 2024
f21c997
Merge branch 'chore/supporting_python3.13' of https://github.com/pyan…
clatapie Dec 9, 2024
c991ceb
review: applying @RobPasMue's suggestions
clatapie Dec 10, 2024
dac3c69
fix: vtk version to 9.4.0
clatapie Dec 10, 2024
82d43be
Merge branch 'main' into chore/supporting_python3.13
clatapie Dec 10, 2024
b8a5044
Merge branch 'main' into chore/supporting_python3.13
germa89 Dec 10, 2024
e13de70
Merge branch 'main' into chore/supporting_python3.13
clatapie Dec 12, 2024
556467f
maint: update ``"ansys-tools-visualization-interface``
clatapie Dec 12, 2024
6a1f301
Merge branch 'chore/supporting_python3.13' of https://github.com/pyan…
clatapie Dec 12, 2024
8ff2a5c
Merge branch 'main' into chore/supporting_python3.13
clatapie Dec 18, 2024
1904d76
Merge branch 'main' into chore/supporting_python3.13
germa89 Jan 7, 2025
b17a3de
Merge branch 'main' into chore/supporting_python3.13
clatapie Jan 23, 2025
0cb2365
Merge branch 'main' into chore/supporting_python3.13
germa89 Feb 26, 2025
0da5cb8
build: downgrade vtk to 9.3.1
germa89 Feb 26, 2025
3e651eb
build: update ansys-tools-visualization-interface
germa89 Feb 26, 2025
4078519
revert: not changing examples requirements
germa89 Feb 26, 2025
a77c7a3
build: downgrade vtk
germa89 Feb 26, 2025
ab86cd3
fix: bump vtk to 9.4.1
germa89 Feb 26, 2025
48547a5
chore: merge remote-tracking branch 'origin/main' into chore/supporti…
germa89 Mar 7, 2025
4259301
Apply suggestions from code review
germa89 Apr 22, 2025
0fd13c7
chore: merge remote-tracking branch 'origin/main' into chore/supporti…
germa89 Apr 22, 2025
c11ce28
chore: merge remote-tracking branch 'origin/main' into chore/supporti…
germa89 Apr 22, 2025
fae33c6
chore: update Python version references in CI workflows to 3.13
germa89 Apr 22, 2025
518983f
chore: update installation steps in test-local workflow to not build …
germa89 Apr 22, 2025
c4b8160
chore: add conditional gcc installation for cicd mapdl version
germa89 May 6, 2025
5e226a5
chore: merge branch 'main' into chore/supporting_python3.13
germa89 May 6, 2025
a73f872
fix: add g++ installation to the CI workflow for enhanced compatibility
germa89 May 6, 2025
15293d2
fix: enable building and installing package in CI workflow
germa89 May 6, 2025
67ad3c5
fix: correct macOS spelling in documentation
germa89 May 6, 2025
05c6046
chore: update .github/workflows/test-local.yml
germa89 May 6, 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
2 changes: 1 addition & 1 deletion .devcontainer/codespaces-dev/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ pytest-rerunfailures==15.0
pytest-timeout==2.3.1
pytest==8.3.5
scipy==1.15.2
vtk==9.3.1
vtk==9.4.2
2 changes: 1 addition & 1 deletion .devcontainer/codespaces-docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ sphinx-notfound-page==1.1.0
sphinx==8.2.3
sphinxcontrib-websupport==2.0.0
sphinxemoji==0.3.1
vtk==9.3.1
vtk==9.4.2
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ body:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
validations:
required: true

Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ body:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
validations:
required: true

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ on:
env:
ON_CI: True
PROJECT_NAME: 'PyMAPDL'
MAIN_PYTHON_VERSION: '3.12'
PACKAGE_NAME: 'ansys-mapdl-core'
PACKAGE_NAMESPACE: 'ansys.mapdl.core'
DOCUMENTATION_CNAME: 'mapdl.docs.pyansys.com'
Expand Down Expand Up @@ -96,7 +95,7 @@ jobs:
fail-fast: false
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']
# Only perform wheelhouse builds for macOS when releasing
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
Expand Down Expand Up @@ -126,7 +125,7 @@ jobs:
steps:
- uses: ansys/actions/check-vulnerabilities@v9
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: '3.13'
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
python-package-name: ${{ env.PACKAGE_NAME }}
dev-mode: ${{ github.ref != 'refs/heads/main' }}
Expand Down Expand Up @@ -179,6 +178,7 @@ jobs:
with:
mapdl-version: "${{ matrix.mapdl-version }}"
file-name: "${{ matrix.mapdl-version }}-remote"
python-version: '3.13'


build-test-local-matrix:
Expand Down Expand Up @@ -220,6 +220,7 @@ jobs:
file-name: "${{ matrix.mapdl-version }}-local"
tags: "local"
latest-version: "252"
python-version: '3.13'
test_dpf: ${{ contains(matrix.mapdl-version, 'cicd') }}


Expand All @@ -244,6 +245,7 @@ jobs:
file-name: "${{ matrix.mapdl-version }}-minimal"
tags: "local,minimal"
latest-version: "252"
python-version: '3.13'
test_dpf: false


Expand All @@ -267,6 +269,7 @@ jobs:
testing-minimal: false
on-console: true
pytest-arguments: '-k console'
python-version: '3.13'
file-name: "${{ matrix.mapdl-version }}-console"
tags: "local,console"
test_dpf: false
Expand Down Expand Up @@ -298,7 +301,7 @@ jobs:
uses: ansys/actions/build-library@v9
with:
library-name: ${{ env.PACKAGE_NAME }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: '3.13'


release:
Expand All @@ -313,7 +316,7 @@ jobs:
contents: write
steps:
- name: "Download the library artifacts from build-library step"
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: ${{ env.PACKAGE_NAME }}-artifacts
path: ${{ env.PACKAGE_NAME }}-artifacts
Expand Down Expand Up @@ -415,4 +418,4 @@ jobs:
- name: "Run Pytest-summary action"
uses: ./.github/actions/pytest-summary
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: '3.13'
17 changes: 15 additions & 2 deletions .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ on:
required: false
type: string
default: ubuntu-22.04

python-version:
description: |
Python version to use.
required: false
type: string
default: "3.12"

secrets:
license-server:
Expand Down Expand Up @@ -111,7 +118,6 @@ jobs:
HAS_DPF: ${{ inputs.test_dpf }}
PYMAPDL_DEBUG_TESTING: True
TESTING_MINIMAL: ${{ inputs.testing-minimal }}
MAIN_PYTHON_VERSION: "3.12"
P_SCHEMA: "/ansys_inc/v241/ansys/ac4/schema"
PYTEST_TIMEOUT: 120 # seconds. Limit the duration for each unit test
PYTEST_ARGUMENTS: '-vvv -rxXsa --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile'
Expand Down Expand Up @@ -144,6 +150,13 @@ jobs:
echo "TAG_STUDENT: $TAG_STUDENT"
echo "ON_STUDENT=$(echo $ON_STUDENT)" >> $GITHUB_OUTPUT
echo "TAG_STUDENT=$(echo $TAG_STUDENT)" >> $GITHUB_OUTPUT

- name: "Install gcc"
shell: bash
if: ${{ contains(inputs.mapdl-version, 'cicd') }}
run: |
apt-get update && apt-get -y install gcc mono-mcs g++


- name: "Installing minimal OS packages"
shell: bash
Expand All @@ -160,7 +173,7 @@ jobs:
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: ${{ inputs.python-version }}

- name: "Checking Python"
shell: bash
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ on:
required: true
type: string

python-version:
description: |
Python version to use.
required: false
type: string
default: "3.12"

secrets:
username:
description: |
Expand Down Expand Up @@ -57,7 +64,6 @@ jobs:
DPF_PORT: 21004
DPF_START_SERVER: False
PYTEST_ARGUMENTS: '-vvv -rxXsa --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile'
MAIN_PYTHON_VERSION: '3.12'
MAPDL_PACKAGE: ghcr.io/ansys/mapdl

steps:
Expand Down Expand Up @@ -149,13 +155,13 @@ jobs:
if: steps.changes.outputs.workflows != 'true'
with:
cache: 'pip'
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: ${{ inputs.python-version }}

- name: "Setup Python without cache"
uses: actions/setup-python@v5
if: steps.changes.outputs.workflows == 'true'
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-version: ${{ inputs.python-version }}

- name: "Install os packages"
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Here's a quick demo of PyMAPDL within Visual Studio Code:
![landing_demo](https://github.com/ansys/pymapdl/raw/main/doc/source/_static/landing_page_demo.gif)

PyMAPDL works within Jupyter Notebooks, the standard Python console,
or in batch mode on Windows, Linux, and even Mac OS.
or in batch mode on Windows, Linux, and even macOS.

## Documentation and issues

Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3605.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: active support for Python 3.13
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ trame-vtk==2.8.12
trame-vuetify==2.7.2
typing_extensions==4.12.2
urllib3==2.2.3
vtk==9.3.1
vtk==9.4.2
websockets==13.1
wslink==2.2.1
yarl==1.17.2
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/install_pymapdl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Install PyMAPDL
Python module
~~~~~~~~~~~~~
The ``ansys.mapdl.core`` package currently supports Python 3.10 through
Python 3.12 on Windows, Mac OS, and Linux.
Python 3.13 on Windows, macOS, and Linux.

Install the latest release from `PyPi <pymapdl_pypi_>`_ with this command:

Expand Down
4 changes: 2 additions & 2 deletions doc/source/user_guide/upf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Python language to code user programmable subroutines. A subset of the
documented UPF subroutines support the Python UPF capability. For more information,
see `Supported UPF subroutines`_).

You must install a Python distribution before using this feature. Python 3.9
through Python 3.12 are supported.
You must install a Python distribution before using this feature. Python 3.10
through Python 3.13 are supported.

Python UPFs are only supported on Linux.

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "ansys-mapdl-core"
version = "0.69.dev0"
description = "A Python client library for Ansys MAPDL."
readme = "README.md"
requires-python = ">=3.10,<3.13" # Update also 'MINIMUM_PYTHON_VERSION' in src/ansys/mapdl/core/__init__.py
requires-python = ">=3.10,<3.14" # Update also 'MINIMUM_PYTHON_VERSION' in src/ansys/mapdl/core/__init__.py
license = {file = "LICENSE"}
authors = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
maintainers = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
Expand Down Expand Up @@ -43,6 +43,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -81,7 +82,7 @@ tests = [
"pytest-timeout==2.3.1",
"pytest==8.3.5",
"scipy==1.15.2",
"vtk==9.3.1",
"vtk==9.4.2",
]

doc = [
Expand Down Expand Up @@ -114,7 +115,7 @@ doc = [
"sphinx==8.2.3",
"sphinxcontrib-websupport==2.0.0",
"sphinxemoji==0.3.1",
"vtk==9.3.1",
"vtk==9.4.2",
]

[tool.flit.module]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
description = Default tox environments list
envlist =
style,{py38,py39,py310,py311,py312}{,-coverage},doc
style,{py38,py39,py310,py311,py312,py313}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
Expand All @@ -13,6 +13,7 @@ basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
py: python3
{style,reformat,doc}: python3
setenv =
Expand Down