Skip to content

Commit

Permalink
feat: add support for Python 3.12 (#2507)
Browse files Browse the repository at this point in the history
* feat: add support for Python 3.12

* fix: upper limit in pyptoject.toml

* update pymapdl reader

---------

Co-authored-by: Camille <[email protected]>
Co-authored-by: German <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent ccb5050 commit 44c4c47
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ body:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
validations:
required: false

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 @@ -60,6 +60,7 @@ body:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
# Only perform wheelhouse builds for macOS when releasing
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Installation
Python module
~~~~~~~~~~~~~
The ``ansys.mapdl.core`` package currently supports Python 3.8 through
Python 3.11 on Windows, Mac OS, and Linux.
Python 3.12 on Windows, Mac OS, and Linux.

Install the latest release from
`PyPi <pymapdl_pypi_>`_ with:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/upf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documented UPF subroutines support the Python UPF capability. For more informati
see `Supported UPF subroutines`_).

You must install a Python distribution before using this feature. Python 3.8
through Python 3.11 are supported.
through Python 3.12 are supported.

Python UPFs are only supported on Linux.

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "ansys-mapdl-core"
version = "0.68.dev0"
description = "A Python wrapper for Ansys MAPDL."
readme = "README.rst"
requires-python = ">=3.8,<3.12"
requires-python = ">=3.8,<3.13"
license = {file = "LICENSE"}
authors = [
{name = "Ansys, Inc.", email = "[email protected]"},
Expand Down Expand Up @@ -52,6 +52,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[project.optional-dependencies]
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,{py37,py38,py39,py310}{,-coverage},doc
style,{py38,py39,py310,py311,py312}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
Expand All @@ -13,6 +13,7 @@ basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py: python3
{style,reformat,doc}: python3
setenv =
Expand Down

0 comments on commit 44c4c47

Please sign in to comment.