From 9219c1441b028d02a0304095ac15a35fe1727d1e Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:45:32 +0100 Subject: [PATCH] feat: adding Python 3.12 support (#789) --- .github/workflows/ci_cd.yml | 2 +- doc/source/assets.rst | 2 +- doc/source/conf.py | 2 +- doc/source/getting_started/installation.rst | 2 +- pyproject.toml | 1 + tox.ini | 3 ++- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 2af056fae5..40a645ab65 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -47,7 +47,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11', '3.12'] should-release: - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} exclude: diff --git a/doc/source/assets.rst b/doc/source/assets.rst index bc7d045f10..53a639bde0 100644 --- a/doc/source/assets.rst +++ b/doc/source/assets.rst @@ -18,7 +18,7 @@ If you lack an internet connection on your installation machine, you should inst by downloading the wheelhouse archive. Each wheelhouse archive contains all the Python wheels necessary to install PyAnsys Geometry from scratch on Windows, -Linux, and MacOS from Python 3.9 to 3.11. You can install this on an isolated system with a fresh Python +Linux, and MacOS from Python 3.9 to 3.12. You can install this on an isolated system with a fresh Python installation or on a virtual environment. For example, on Linux with Python 3.9, unzip the wheelhouse archive and install it with: diff --git a/doc/source/conf.py b/doc/source/conf.py index 80b1c8e914..c7f8f202b5 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -26,7 +26,7 @@ def get_wheelhouse_assets_dictionary(): """Auxiliary method to build the wheelhouse assets dictionary.""" assets_context_os = ["Linux", "Windows", "MacOS"] assets_context_runners = ["ubuntu-latest", "windows-latest", "macos-latest"] - assets_context_python_versions = ["3.9", "3.10", "3.11"] + assets_context_python_versions = ["3.9", "3.10", "3.11", "3.12"] assets_context_version = json.loads( requests.get("https://api.github.com/repos/ansys/pyansys-geometry/releases/latest").content )["name"] diff --git a/doc/source/getting_started/installation.rst b/doc/source/getting_started/installation.rst index 78f0829016..c144ba0699 100644 --- a/doc/source/getting_started/installation.rst +++ b/doc/source/getting_started/installation.rst @@ -70,7 +70,7 @@ archive for your corresponding machine architecture from the repository's `Relea `_. Each wheelhouse archive contains all the Python wheels necessary to install PyAnsys Geometry from scratch on Windows, -Linux, and MacOS from Python 3.9 to 3.11. You can install this on an isolated system with a fresh Python +Linux, and MacOS from Python 3.9 to 3.12. You can install this on an isolated system with a fresh Python installation or on a virtual environment. For example, on Linux with Python 3.9, unzip the wheelhouse archive and install it with these commands: diff --git a/pyproject.toml b/pyproject.toml index 3164818446..3f6feed576 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] dependencies = [ diff --git a/tox.ini b/tox.ini index c2c0a1403c..35a42ede3f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] description = Default tox environments list envlist = - style,{tests39,tests310,tests311}{,-coverage},doc + style,{tests39,tests310,tests311,tests312}{,-coverage},doc skip_missing_interpreters = true isolated_build = true isolated_build_env = build @@ -12,6 +12,7 @@ basepython = tests39: python3.9 tests310: python3.10 tests311: python3.11 + tests312: python3.12 {style,tests,doc}: python3 setenv = PYTHONUNBUFFERED = yes