Skip to content
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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ updates:
- "ansys-api-discovery"
- "ansys-platform-instancemanagement"
- "ansys-sphinx-theme"
- "ansys-tools-path"
- "ansys-tools-common"
- "ansys-tools-visualization-interface"
labels:
- "maintenance"
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/2373.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Migrating to ansys-tools-common
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [

dependencies = [
"ansys-api-discovery==1.0.6",
"ansys-tools-path>=0.3,<1",
"ansys-tools-common>=0.2,<1",
"beartype>=0.11.0,<0.23",
"geomdl>=5,<6",
"grpcio>=1.35.0,<2",
Expand Down Expand Up @@ -97,7 +97,7 @@ tests = [
]
general-all = [
"ansys-platform-instancemanagement==1.1.2",
"ansys-tools-path==0.7.3",
"ansys-tools-common==0.2.1",
"ansys-tools-visualization-interface==0.12.1",
"beartype==0.22.5",
"docker==7.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/geometry/core/connection/product_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import subprocess # nosec B404
from typing import TYPE_CHECKING

from ansys.tools.path import get_available_ansys_installations, get_latest_ansys_installation
from ansys.tools.common.path import get_available_ansys_installations, get_latest_ansys_installation

from ansys.geometry.core.connection.backend import ApiVersions, BackendType
from ansys.geometry.core.logger import LOG
Expand Down
6 changes: 3 additions & 3 deletions tests/integration/test_launcher_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import os
from unittest.mock import create_autospec

import ansys.tools.path.path as atpp
import ansys.tools.common.path.path as atcpp
from grpc import insecure_channel
import pytest

Expand Down Expand Up @@ -107,8 +107,8 @@ def test_launch_remote_instance_error(monkeypatch):
"""
mock_is_installed = create_autospec(LocalDockerInstance.is_docker_installed, return_value=False)
monkeypatch.setattr(LocalDockerInstance, "is_docker_installed", mock_is_installed)
mock_available_ansys = create_autospec(atpp.get_available_ansys_installations, return_value={})
monkeypatch.setattr(atpp, "get_available_ansys_installations", mock_available_ansys)
mock_available_ansys = create_autospec(atcpp.get_available_ansys_installations, return_value={})
monkeypatch.setattr(atcpp, "get_available_ansys_installations", mock_available_ansys)

with pytest.raises(NotImplementedError, match="Geometry service cannot be initialized."):
launch_modeler()
Expand Down
Loading