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 packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath"
version = "2.14.41"
version = "2.14.42"
Comment thread
eduard-dumitru marked this conversation as resolved.
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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "UiPath agent to validate asset values via External Application integration with Orchestrator."
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/calculator/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "calculator-agent"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "classification-agent"
version = "0.0.1"
description = "TeleCom customer support email classification agent"
requires-python = ">=3.11"
dependencies = ["uipath"]
dependencies = ["uipath>=2.14.41"]

[dependency-groups]
dev = ["uipath-dev"]
2 changes: 1 addition & 1 deletion packages/uipath/samples/csv-processor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "csv-processor"
version = "0.0.1"
description = "csv-processor"
dependencies = [
"uipath",
"uipath>=2.14.41",
"pandas>=2.3.3",
]
requires-python = ">=3.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"uipath"
"uipath>=2.14.41"
]

[dependency-groups]
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/event-trigger/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "Event Trigger Demo"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath"
"uipath>=2.14.41"
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/greeter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "greeter"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
3,198 changes: 1,878 additions & 1,320 deletions packages/uipath/samples/greeter/uv.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/uipath/samples/hello-world/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "hello-world"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"
[dependency-groups]
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/list-mcp-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "UiPath MCP agent"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
"mcp>=1.28.1",
]
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/llm_chat_agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "Sample agent demonstrating actual LLM calls with UiPath LLM Gateway"
requires-python = ">=3.11"
dependencies = [
"uipath",
"uipath>=2.14.41",
]

[dependency-groups]
Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/multi-output-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "Multi-output agent for testing targetOutputKey path resolution"
authors = [{ name = "Test", email = "test@example.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "pizza-order-function"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/queue-interactions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "UiPath agent to manage queue items via External Application integration with Orchestrator."
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/resource-overrides/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [{ name = "John Doe" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"uipath",
"uipath>=2.14.41",
]

[dependency-groups]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "Code review agent demonstrating runtime simulation"
authors = [{ name = "UiPath", email = "python-sdk@uipath.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/ticket-triage-agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "Two-tier support ticket triage: TypeSafe AI's Jev System One model for fast structured routing, escalating to Action Center HITL or an LLM-drafted auto-reply."
requires-python = ">=3.11"
dependencies = [
"uipath",
"uipath>=2.14.41",
"typesafe-sdk>=0.7.0",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
description = "tree-recursive-function"
authors = [{ name = "John Doe", email = "john.doe@myemail.com" }]
dependencies = [
"uipath",
"uipath>=2.14.41",
]
requires-python = ">=3.11"

Expand Down
2 changes: 1 addition & 1 deletion packages/uipath/samples/weather_tools/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [{ name = "John Doe" }]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"uipath",
"uipath>=2.14.41",
]

[dependency-groups]
Expand Down
10 changes: 7 additions & 3 deletions packages/uipath/src/uipath/_cli/cli_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@

console = ConsoleLogger()

# The `uipath` minor release that scaffolded projects are pinned to.
# The `uipath` minor release that scaffolded projects are capped to.
# Deliberately a constant: the guard test in tests/cli/test_new.py fails on
# every minor bump so the scaffold (pin, template, hints) gets reviewed
# alongside the release rather than drifting silently.
# alongside the release rather than drifting silently. The floor is the
# installed release itself: a Robot refuses a project on an older `uipath`
# than it supports, so a scaffold must never ask for less than the CLI that
# wrote it.
UIPATH_SCAFFOLD_MINOR = "2.14"


Expand All @@ -37,13 +40,14 @@ def generate_script(target_directory):
def generate_pyproject(target_directory, project_name):
project_toml_path = os.path.join(target_directory, PYTHON_CONFIGURATION_FILE)
major, minor = (int(part) for part in UIPATH_SCAFFOLD_MINOR.split("."))
floor = importlib.metadata.version("uipath")
toml_content = f"""[project]
name = "{project_name}"
version = "0.0.1"
description = "{project_name}"
authors = [{{ name = "John Doe", email = "john.doe@myemail.com" }}]
dependencies = [
"uipath>={major}.{minor}.0, <{major}.{minor + 1}.0"
"uipath>={floor}, <{major}.{minor + 1}.0"
]
requires-python = ">=3.11"
"""
Expand Down
5 changes: 5 additions & 0 deletions packages/uipath/tests/cli/test_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,8 @@ def test_scaffolded_pin_contains_installed_uipath(
assert pin.contains(installed, prereleases=True), (
f"scaffolded pin '{pin}' does not contain installed uipath {installed}"
)
floors = {str(s.version) for s in pin if s.operator == ">="}
assert floors == {installed}, (
f"scaffolded pin '{pin}' must floor at the installed uipath {installed}: "
"a Robot refuses a project on an older uipath than it supports"
)
2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

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

Loading