Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Add support for Python 3.13 #370

Merged
merged 6 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
MAIN_PYTHON_VERSION: '3.10'
MAIN_PYTHON_VERSION: '3.13'
rfahlberg marked this conversation as resolved.
Show resolved Hide resolved
PACKAGE_NAME: 'ansys-optislang-core'
PACKAGE_NAMESPACE: 'ansys.optislang.core'
DOCUMENTATION_CNAME: 'optislang.docs.pyansys.com'
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: ansys/actions/build-wheelhouse@v8
with:
Expand All @@ -62,7 +62,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}
uses: ansys/actions/tests-pytest@v8
with:
python-version: "3.10"
python-version: "3.13"
pytest-extra-args: "--local_osl -k 'not examples.py'"
use-python-cache: false
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ This is the best place to post questions and code.

Installation
------------
The ``ansys-optislang-core`` package supports Python 3.9 through 3.12 on
The ``ansys-optislang-core`` package supports Python 3.9 through 3.13 on
Windows and Linux. Three modes of installation are available:

- User installation
Expand Down
14 changes: 14 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@
# type, unless multiple values are being returned"
}

# Ignoring numpydoc validation on built-in methods from Python
# or other libraries due to inheritance
numpydoc_validation_exclude = {
"denominator",
"imag",
"numerator",
"real",
"__cause__",
"__context__",
"__abs__",
"__float__",
"__int__",
}

# Favicon
html_favicon = ansys_favicon

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 @@ -8,7 +8,7 @@ on the Ansys website.
************
Installation
************
The ``ansys-optislang-core`` package supports Python 3.9 through 3.12 on
The ``ansys-optislang-core`` package supports Python 3.9 through 3.13 on
Windows and Linux. Three modes of installation are available:

- User installation
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]
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,{py39,py310,py311,py312}{,-cov}, doc
style,{py39,py310,py311,py312,py313}{,-cov}, doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
Expand All @@ -15,6 +15,7 @@ basepython =
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
py: python3
{style,reformat,doc,build}: python3
setenv =
Expand Down
Loading