Skip to content

Commit dbb0679

Browse files
committed
chore(deps): bump uipath and uipath-platform, fix test type errors
uipath-platform 0.2.32 -> 0.2.33 and uipath 2.14.24 -> 2.14.25, since both packages carry source changes here and the versions on main are already on PyPI. uipath's lower bound on uipath-platform moves to >=0.2.33 so a standalone install cannot resolve a release without the binding metadata. The overwrite fixtures in the binding tests were built with field aliases, which the pydantic mypy plugin rejects. They now go through ResourceOverwriteParser, the same path the runtime uses on the server's response, so the test also exercises production construction.
1 parent edce64b commit dbb0679

4 files changed

Lines changed: 17 additions & 21 deletions

File tree

‎packages/uipath-platform/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.2.32"
3+
version = "0.2.33"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

‎packages/uipath/pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath"
3-
version = "2.14.24"
3+
version = "2.14.25"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.5.30, <0.6.0",
99
"uipath-runtime>=0.13.5, <0.14.0",
10-
"uipath-platform>=0.2.31, <0.3.0",
10+
"uipath-platform>=0.2.33, <0.3.0",
1111
"uipath-ipc>=2.5.1, <2.6.0",
1212
"click>=8.3.3, <9.0.0",
1313
"httpx>=0.28.1",

‎packages/uipath/tests/cli/test_cli_bindings.py‎

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
from pathlib import Path
44
from types import SimpleNamespace
5+
from typing import Any
56
from unittest.mock import AsyncMock, MagicMock
67

78
import pytest
@@ -17,8 +18,7 @@
1718
from uipath._cli._push._resource_actions import CreateVirtual
1819
from uipath._cli.models.runtime_schema import Bindings
1920
from uipath.platform.common._bindings import (
20-
ConnectionResourceOverwrite,
21-
GenericResourceOverwrite,
21+
ResourceOverwriteParser,
2222
_resource_overwrites,
2323
resource_override,
2424
)
@@ -454,20 +454,16 @@ def test_override_applies_to_the_generated_key(self, source: str) -> None:
454454

455455
probe = _make_probe(spec)
456456
overwrite_key = f"{ref.resource_type}.{binding.key}"
457-
if ref.resource_type == "connection":
458-
overwrite = ConnectionResourceOverwrite(
459-
resource_type="connection",
460-
connectionId="NEW_ID",
461-
folderKey="NEW_FOLDER",
462-
)
463-
else:
464-
overwrite = GenericResourceOverwrite(
465-
resource_type=ref.resource_type,
466-
name="NEW_NAME",
467-
folderPath="NEW_FOLDER",
468-
)
457+
# Built through the same parser the runtime uses on the server's
458+
# response, so the test exercises the production construction path.
459+
payload: dict[str, Any] = (
460+
{"connectionId": "NEW_ID", "folderKey": "NEW_FOLDER"}
461+
if ref.resource_type == "connection"
462+
else {"name": "NEW_NAME", "folderPath": "NEW_FOLDER"}
463+
)
464+
overwrite = ResourceOverwriteParser.parse(overwrite_key, payload)
469465

470-
call_args = {spec.name_param: ref.name}
466+
call_args: dict[str, Any] = {spec.name_param: ref.name}
471467
if spec.folder_param:
472468
call_args[spec.folder_param] = ref.folder_path
473469

@@ -620,7 +616,7 @@ def _make_probe(spec):
620616
if spec.folder_param:
621617
params.append(f"{spec.folder_param}=None")
622618
folder_expr = spec.folder_param if spec.folder_param else "None"
623-
namespace: dict = {}
619+
namespace: dict[str, Any] = {}
624620
exec(
625621
f"def probe({', '.join(params)}):\n"
626622
f" return ({spec.name_param}, {folder_expr})\n",

‎packages/uipath/uv.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)