From 7a22406eaccd6387a00be5b30285e73dbe7d3e71 Mon Sep 17 00:00:00 2001 From: Camille <78221213+clatapie@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:05:17 +0100 Subject: [PATCH 1/3] chore: supporting Python 3.13 and dropping support for Python 3.9 (#185) Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> --- .github/workflows/ci_cd.yml | 2 +- doc/changelog.d/185.maintenance.md | 1 + pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 doc/changelog.d/185.maintenance.md diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 43ff065d8..34d8cf885 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -64,7 +64,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest, macos-latest] - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12', '3.13'] should-release: - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} exclude: diff --git a/doc/changelog.d/185.maintenance.md b/doc/changelog.d/185.maintenance.md new file mode 100644 index 000000000..dd456e8cf --- /dev/null +++ b/doc/changelog.d/185.maintenance.md @@ -0,0 +1 @@ +chore: supporting Python 3.13 and dropping support for Python 3.9 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3c084e571..a6148455f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,16 +8,16 @@ name = "ansys-sound-core" version = "0.1.dev0" description = "A Python wrapper for Ansys DPF Sound." readme = "README.rst" -requires-python = ">=3.9,<4" +requires-python = ">=3.10,<4" license = { file = "LICENSE" } authors = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }] maintainers = [{ name = "ANSYS, Inc.", email = "pyansys.core@ansys.com" }] classifiers = [ "Development Status :: 4 - Beta", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] From 549f71e016868231c8ab652d4e1b6894efaafcd2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:05:40 +0100 Subject: [PATCH 2/3] chore: [pre-commit.ci] pre-commit autoupdate (#179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Alexandre Bouthéon <137152543+a-bouth@users.noreply.github.com> Co-authored-by: Camille <78221213+clatapie@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- doc/changelog.d/179.miscellaneous.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 doc/changelog.d/179.miscellaneous.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 994b125b1..ed92b65eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,6 +43,6 @@ repos: - --start_year=2023 - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-github-workflows \ No newline at end of file diff --git a/doc/changelog.d/179.miscellaneous.md b/doc/changelog.d/179.miscellaneous.md new file mode 100644 index 000000000..7a8ec8e10 --- /dev/null +++ b/doc/changelog.d/179.miscellaneous.md @@ -0,0 +1 @@ +chore: [pre-commit.ci] pre-commit autoupdate \ No newline at end of file From 35b8b64d025feb537097904fef35b21fb27d0c7d Mon Sep 17 00:00:00 2001 From: Antoine Minard Date: Mon, 9 Dec 2024 16:56:13 +0100 Subject: [PATCH 3/3] Fixed a few typos and missing punctuation in comments --- tests/conftest.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 018dd2f10..73d0fc675 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -30,17 +30,16 @@ def pytest_configure(): - # We're using a PyAnsys Sound here to connect to the server based on whether - # we're in a docker or local configuration - # There are tests for the function connect_to_or_start_server - # that are independent from the configuration, - # that's why we authorize the use of this function here + # We're using here a PyAnsys Sound function to connect to the server based on whether we're in + # a docker or local configuration. + # There are tests for the function connect_to_or_start_server that are independent from the + # configuration. That's why we authorize the use of this function here. server = connect_to_or_start_server(use_license_context=True) - # # Get the current directory of the conftest.py file + # Get the current directory of the conftest.py file. base_dir = os.path.dirname(__file__) - # Construct the paths of the different test files after uploading them on the server + # Construct the paths of the different test files after uploading them on the server. pytest.data_path_flute_in_container = upload_file_in_tmp_folder( os.path.join(base_dir, "data", "flute.wav"), server=server ) @@ -105,9 +104,8 @@ def pytest_configure(): os.path.join(base_dir, "data", "RPM_profile_2024R2_20241126.txt"), server=server ) - # This path is different that the other, we need a local path - # and not a server path because we will use a native python - # `open()` to read this file and not a DPF operator + # This path is different than the other, we need a local path and not a server path because we + # will use a native python `open()` to read this file and not a DPF operator. pytest.data_path_flute_psd_locally = os.path.join(base_dir, "data", "flute_psd.txt") pytest.temporary_folder = os.path.dirname(pytest.data_path_flute_in_container)