Skip to content

Commit 67251b1

Browse files
build: migrating to ansys-tools-common (#2373)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent f1651b6 commit 67251b1

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ updates:
1313
- "ansys-api-discovery"
1414
- "ansys-platform-instancemanagement"
1515
- "ansys-sphinx-theme"
16-
- "ansys-tools-path"
16+
- "ansys-tools-common"
1717
- "ansys-tools-visualization-interface"
1818
labels:
1919
- "maintenance"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Migrating to ansys-tools-common

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727

2828
dependencies = [
2929
"ansys-api-discovery==1.0.6",
30-
"ansys-tools-path>=0.3,<1",
30+
"ansys-tools-common>=0.2,<1",
3131
"beartype>=0.11.0,<0.23",
3232
"geomdl>=5,<6",
3333
"grpcio>=1.35.0,<2",
@@ -97,7 +97,7 @@ tests = [
9797
]
9898
general-all = [
9999
"ansys-platform-instancemanagement==1.1.2",
100-
"ansys-tools-path==0.7.3",
100+
"ansys-tools-common==0.2.1",
101101
"ansys-tools-visualization-interface==0.12.1",
102102
"beartype==0.22.5",
103103
"docker==7.1.0",

src/ansys/geometry/core/connection/product_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import subprocess # nosec B404
3333
from typing import TYPE_CHECKING
3434

35-
from ansys.tools.path import get_available_ansys_installations, get_latest_ansys_installation
35+
from ansys.tools.common.path import get_available_ansys_installations, get_latest_ansys_installation
3636

3737
from ansys.geometry.core.connection.backend import ApiVersions, BackendType
3838
from ansys.geometry.core.logger import LOG

tests/integration/test_launcher_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import os
2525
from unittest.mock import create_autospec
2626

27-
import ansys.tools.path.path as atpp
27+
import ansys.tools.common.path.path as atcpp
2828
from grpc import insecure_channel
2929
import pytest
3030

@@ -107,8 +107,8 @@ def test_launch_remote_instance_error(monkeypatch):
107107
"""
108108
mock_is_installed = create_autospec(LocalDockerInstance.is_docker_installed, return_value=False)
109109
monkeypatch.setattr(LocalDockerInstance, "is_docker_installed", mock_is_installed)
110-
mock_available_ansys = create_autospec(atpp.get_available_ansys_installations, return_value={})
111-
monkeypatch.setattr(atpp, "get_available_ansys_installations", mock_available_ansys)
110+
mock_available_ansys = create_autospec(atcpp.get_available_ansys_installations, return_value={})
111+
monkeypatch.setattr(atcpp, "get_available_ansys_installations", mock_available_ansys)
112112

113113
with pytest.raises(NotImplementedError, match="Geometry service cannot be initialized."):
114114
launch_modeler()

0 commit comments

Comments
 (0)