From 44c4c47361d528d6f5466980ad1bc5cc09cab66f Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:29:58 +0100 Subject: [PATCH] feat: add support for Python 3.12 (#2507) * feat: add support for Python 3.12 * fix: upper limit in pyptoject.toml * update pymapdl reader --------- Co-authored-by: Camille <78221213+clatapie@users.noreply.github.com> Co-authored-by: German <28149841+germa89@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/bug.yml | 1 + .github/ISSUE_TEMPLATE/examples.yml | 1 + .github/workflows/ci.yml | 2 +- doc/source/getting_started/index.rst | 2 +- doc/source/user_guide/upf.rst | 2 +- pyproject.toml | 3 ++- tox.ini | 3 ++- 7 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index eb62d83bf2..8224f3b373 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -84,6 +84,7 @@ body: - '3.9' - '3.10' - '3.11' + - '3.12' validations: required: false diff --git a/.github/ISSUE_TEMPLATE/examples.yml b/.github/ISSUE_TEMPLATE/examples.yml index a99d340d60..d2d1cfb715 100644 --- a/.github/ISSUE_TEMPLATE/examples.yml +++ b/.github/ISSUE_TEMPLATE/examples.yml @@ -60,6 +60,7 @@ body: - '3.9' - '3.10' - '3.11' + - '3.12' validations: required: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5af6400a7e..3f7c465643 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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') }} diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index 9d122919a0..75d5f6cfda 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -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 `_ with: diff --git a/doc/source/user_guide/upf.rst b/doc/source/user_guide/upf.rst index 280fadc0fa..a72a337c6c 100644 --- a/doc/source/user_guide/upf.rst +++ b/doc/source/user_guide/upf.rst @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 56fe4c160f..54a128774e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "pyansys.maintainers@ansys.com"}, @@ -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] diff --git a/tox.ini b/tox.ini index 872396338c..f510d23321 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -13,6 +13,7 @@ basepython = py39: python3.9 py310: python3.10 py311: python3.11 + py312: python3.12 py: python3 {style,reformat,doc}: python3 setenv =