Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 68169e5

Browse files
committed
version change to v0.5.2
2 parents bc7927a + 1fe7a11 commit 68169e5

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: [ubuntu-latest, windows-latest, macos-latest]
31-
python-version: ['3.8', '3.9', '3.10', '3.11']
31+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
3232
# Only perform wheelhouse builds for macOS when releasing
3333
should-release:
3434
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
- id: isort
2929

3030
- repo: https://github.com/pre-commit/pre-commit-hooks
31-
rev: v4.5.0
31+
rev: v4.6.0
3232
hooks:
3333
- id: check-merge-conflict
3434
- id: debug-statements

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Further information about contributing to ansys-tools-path can be found in
1919
## [v0.5.0]() - 2 April 2024
2020
Support arbitrary application names with "save" and "get"
2121

22+
## [v0.5.0]() - 2 April 2024
23+
24+
### What's changed
25+
Support arbitrary application names with "save" and "get"
26+
2227
## [v0.4.0]() - 17 November 2023
2328

2429
### What's Changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-tools-path"
8-
version = "0.5.1"
8+
version = "0.5.2"
99
description = "Library to locate Ansys products in a local machine."
1010
readme = "README.rst"
1111
requires-python = ">=3.8,<4"
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2223
"License :: OSI Approved :: MIT License",
2324
"Operating System :: OS Independent",
2425
]
@@ -29,12 +30,12 @@ dependencies = [
2930

3031

3132
[project.optional-dependencies]
32-
tests = ["pytest==8.1.1", "pytest-cov==5.0.0", "pyfakefs==5.3.5"]
33+
tests = ["pytest==8.1.1", "pytest-cov==5.0.0", "pyfakefs==5.4.1"]
3334

3435
doc = [
3536
"Sphinx==7.2.6",
3637
"numpydoc==1.7.0",
37-
"ansys-sphinx-theme==0.15.0",
38+
"ansys-sphinx-theme==0.15.2",
3839
"sphinx-copybutton==0.5.2",
3940
]
4041

src/ansys/tools/path/path.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,10 +943,19 @@ def _get_application_path(
943943
version: Optional[float] = None,
944944
find: bool = True,
945945
) -> Optional[str]:
946-
if version is None:
947-
exe_loc = _read_executable_path_from_config_file(product)
948-
if exe_loc is not None:
949-
return exe_loc
946+
_exe_loc = _read_executable_path_from_config_file(product)
947+
if _exe_loc is not None:
948+
if version is None:
949+
return _exe_loc
950+
else:
951+
_version = version_from_path(product, _exe_loc)
952+
if _version == version:
953+
return _exe_loc
954+
else:
955+
LOG.debug(
956+
f"Application {product} requested version {version} does not match with {_version} "
957+
f"in config file. Trying to find version {version} ..."
958+
)
950959

951960
LOG.debug(f"{product} path not found in config file")
952961
if not _has_plugin(product):

0 commit comments

Comments
 (0)