Skip to content

Commit

Permalink
feat: adding Python 3.12 support (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored Nov 15, 2023
1 parent d1a2176 commit 9219c14
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/assets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ archive for your corresponding machine architecture from the repository's `Relea
<https://github.com/ansys/pyansys-geometry/releases>`_.

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:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
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,{tests39,tests310,tests311}{,-coverage},doc
style,{tests39,tests310,tests311,tests312}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
Expand All @@ -12,6 +12,7 @@ basepython =
tests39: python3.9
tests310: python3.10
tests311: python3.11
tests312: python3.12
{style,tests,doc}: python3
setenv =
PYTHONUNBUFFERED = yes
Expand Down

0 comments on commit 9219c14

Please sign in to comment.