Skip to content

Commit

Permalink
Merge branch 'feat/181-add-local-server-configuration-in-conftestpy' of
Browse files Browse the repository at this point in the history
https://github.com/ansys/pyansys-sound into feat/181-add-local-server-configuration-in-conftestpy
  • Loading branch information
a-bouth committed Dec 9, 2024
2 parents ac3d0bd + 35b8b64 commit 305581b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions doc/changelog.d/179.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: [pre-commit.ci] pre-commit autoupdate
1 change: 1 addition & 0 deletions doc/changelog.d/185.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chore: supporting Python 3.13 and dropping support for Python 3.9
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" }]
maintainers = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
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",
]
Expand Down
11 changes: 5 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
base_dir = os.path.join(os.path.dirname(__file__), "data")

# 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, "flute.wav"), server=server
)
Expand Down

0 comments on commit 305581b

Please sign in to comment.