Skip to content

rc-0.18.0 #578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2024
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 pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "viam-sdk"
version = "0.17.0"
version = "0.18.0"
description = "Viam Robotics Python SDK"
authors = [ "Naveed <naveed@viam.com>" ]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/viam/app/provisioning_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Mapping, List, Optional
from typing import List, Mapping, Optional

from grpclib.client import Channel

Expand Down
24 changes: 12 additions & 12 deletions tests/mocks/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,18 @@
PoseInFrame,
ResourceName,
)
from viam.proto.provisioning import (
GetNetworkListRequest,
GetNetworkListResponse,
GetSmartMachineStatusRequest,
GetSmartMachineStatusResponse,
NetworkInfo,
ProvisioningServiceBase,
SetNetworkCredentialsRequest,
SetNetworkCredentialsResponse,
SetSmartMachineCredentialsRequest,
SetSmartMachineCredentialsResponse,
)
from viam.proto.service.mlmodel import (
FlatTensor,
FlatTensorDataDouble,
Expand All @@ -279,18 +291,6 @@
FlatTensorDataUInt64,
FlatTensors,
)
from viam.proto.provisioning import (
NetworkInfo,
ProvisioningServiceBase,
GetNetworkListRequest,
GetNetworkListResponse,
GetSmartMachineStatusRequest,
GetSmartMachineStatusResponse,
SetNetworkCredentialsRequest,
SetNetworkCredentialsResponse,
SetSmartMachineCredentialsRequest,
SetSmartMachineCredentialsResponse,
)
from viam.proto.service.motion import (
Constraints,
GetPlanRequest,
Expand Down
6 changes: 2 additions & 4 deletions tests/test_provisioning_client.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import pytest

from grpclib.testing import ChannelFor

from viam.app.provisioning_client import ProvisioningClient

from viam.proto.provisioning import GetSmartMachineStatusResponse, NetworkInfo, ProvisioningInfo, CloudConfig
from viam.proto.provisioning import CloudConfig, GetSmartMachineStatusResponse, NetworkInfo, ProvisioningInfo

from .mocks.services import MockProvisioning

Expand Down Expand Up @@ -35,7 +33,7 @@
has_smart_machine_credentials=HAS_CREDENTIALS,
is_online=IS_ONLINE,
latest_connection_attempt=NETWORK_INFO_LATEST,
errors=ERRORS
errors=ERRORS,
)
CLOUD_CONFIG = CloudConfig(id=ID, secret=SECRET, app_address=APP_ADDRESS)

Expand Down