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
5 changes: 3 additions & 2 deletions packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[project]
name = "uipath"
version = "2.14.19"
version = "2.14.20"
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
dependencies = [
"uipath-core>=0.5.30, <0.6.0",
"uipath-runtime>=0.13.5, <0.14.0",
"uipath-platform>=0.2.30, <0.3.0",
"uipath-ipc>=2.5.1, <2.6.0",
Comment thread
eduard-dumitru marked this conversation as resolved.
"click>=8.3.3, <9.0.0",
"httpx>=0.28.1",
"pyjwt>=2.13.0, <3.0.0",
Expand Down Expand Up @@ -46,6 +47,7 @@ Documentation = "https://uipath.github.io/uipath-python/"
[project.scripts]
uipath = "uipath._cli:cli"

# Kept so an existing `uipath[ipc]` requirement still resolves; uipath-ipc is a base dependency now.
[project.optional-dependencies]
ipc = ["uipath-ipc>=2.5.1,<2.6.0"]

Expand Down Expand Up @@ -82,7 +84,6 @@ dev = [
"types-PyYAML>=6.0",
"pytest-timeout>=2.4.0",
"packaging>=24.0",
"uipath-ipc>=2.5.1,<2.6.0",
]

[tool.hatch.build.targets.wheel]
Expand Down
16 changes: 13 additions & 3 deletions packages/uipath/samples/attachment_evaluation_test/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions packages/uipath/samples/csv_employee_generator/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions packages/uipath/samples/line_by_line_test/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions packages/uipath/src/uipath/_cli/_job_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,7 @@ def connect_handler_ipc(pipe: str, job_id: str | None) -> _HandlerIpcConnection:
f"--handler-ipc-pipe needs UIPATH_JOB_KEY to be a job id; got {job_id!r}."
)

try:
from uipath_ipc import IpcClient, NamedPipeClientTransport
except ImportError as e:
raise RuntimeError(
"--handler-ipc-pipe requires the 'uipath-ipc' package. Install it (pip install 'uipath[ipc]')."
) from e
from uipath_ipc import IpcClient, NamedPipeClientTransport

loop = _new_ipc_event_loop()
thread = threading.Thread(
Expand Down
12 changes: 3 additions & 9 deletions packages/uipath/src/uipath/_cli/cli_server_ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
if TYPE_CHECKING:
from uipath_ipc import Message
else:
# Optional dep: the annotation stays a string forward-ref, so this placeholder is never subscripted.
# uipath-ipc is a base dependency, so this only fires on a broken install. The annotation stays a
# string forward-ref, so this placeholder is never subscripted.
try:
from uipath_ipc import Message
except ImportError: # pragma: no cover - no IPC means Register is never dispatched
Expand Down Expand Up @@ -165,14 +166,7 @@ async def StopJob(self, request: PythonServerStopJobRequest) -> bool:

async def start_ipc_server(pipe_name: str) -> None:
"""Serve the Python runtime over a uipath-ipc named pipe until it is closed."""
try:
from uipath_ipc import IpcServer, NamedPipeServerTransport
except ImportError as e:
raise RuntimeError(
"The uipath-ipc channel was requested (--ipc-pipe) but the 'uipath-ipc' "
"package is not installed in this environment. Install it (pip install "
"'uipath[ipc]') or omit --ipc-pipe to serve HTTP only."
) from e
from uipath_ipc import IpcServer, NamedPipeServerTransport

_state.init()

Expand Down
6 changes: 0 additions & 6 deletions packages/uipath/tests/cli/test_job_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,12 +443,6 @@ def live() -> int:
assert live() == before


def test_connect_without_uipath_ipc_raises(monkeypatch):
monkeypatch.setitem(sys.modules, "uipath_ipc", None)
with pytest.raises(RuntimeError, match="uipath-ipc"):
_job_api.connect_handler_ipc("pipe", JOB_ID)


def test_a_broken_log_channel_is_reported_once_to_stderr(monkeypatch):
_isolated_output_sinks(monkeypatch)

Expand Down
9 changes: 0 additions & 9 deletions packages/uipath/tests/cli/test_server_ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import json
import logging
import os
import sys
import threading
import time
from typing import Any, Awaitable, Callable, cast
Expand Down Expand Up @@ -120,14 +119,6 @@ def main(input: Input) -> str:
"""


def test_start_ipc_server_fails_fast_without_uipath_ipc(monkeypatch):
"""--ipc-pipe with uipath-ipc absent must fail loudly, not silently no-op."""
monkeypatch.setitem(sys.modules, "uipath_ipc", None)
coro = start_ipc_server(_unique_pipe())
with pytest.raises(RuntimeError, match="uipath-ipc"):
asyncio.run(coro)


JOB_ID = "3f2504e0-4f89-11d3-9a0c-0305e82c3301"


Expand Down
6 changes: 3 additions & 3 deletions packages/uipath/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading