Skip to content

Commit f7609c5

Browse files
committed
feat: revert unrelated changes
1 parent 52bf97e commit f7609c5

7 files changed

Lines changed: 594 additions & 600 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.1.33"
3+
version = "0.1.34"
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"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""AutomationOps service package.
2+
3+
Provides the ``AutomationOpsService`` client for retrieving deployed AI Trust
4+
Layer policies from AgentHub.
5+
"""
6+
17
from ._automation_ops_service import AutomationOpsService
28

39
__all__ = ["AutomationOpsService"]

packages/uipath-platform/tests/services/test_semantic_proxy_service.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for SemanticProxyService."""
22

33
import json
4+
from typing import Any
45

56
import httpx
67
import pytest
@@ -26,7 +27,7 @@ def service(
2627

2728

2829
@pytest.fixture
29-
def sample_response_json() -> dict:
30+
def sample_response_json() -> dict[str, Any]:
3031
return {
3132
"response": [
3233
{
@@ -76,7 +77,7 @@ def test_returns_typed_response(
7677
base_url: str,
7778
org: str,
7879
tenant: str,
79-
sample_response_json: dict,
80+
sample_response_json: dict[str, Any],
8081
) -> None:
8182
httpx_mock.add_response(
8283
url=f"{base_url}{org}{tenant}/semanticproxy_/api/pii-detection",
@@ -110,7 +111,7 @@ async def test_returns_typed_response(
110111
base_url: str,
111112
org: str,
112113
tenant: str,
113-
sample_response_json: dict,
114+
sample_response_json: dict[str, Any],
114115
) -> None:
115116
httpx_mock.add_response(
116117
url=f"{base_url}{org}{tenant}/semanticproxy_/api/pii-detection",
@@ -141,7 +142,7 @@ async def test_request_payload_uses_aliases(
141142
base_url: str,
142143
org: str,
143144
tenant: str,
144-
sample_response_json: dict,
145+
sample_response_json: dict[str, Any],
145146
) -> None:
146147
captured_request: httpx.Request | None = None
147148

@@ -202,7 +203,7 @@ async def test_request_excludes_none_fields(
202203
base_url: str,
203204
org: str,
204205
tenant: str,
205-
sample_response_json: dict,
206+
sample_response_json: dict[str, Any],
206207
) -> None:
207208
captured_request: httpx.Request | None = None
208209

@@ -237,7 +238,7 @@ async def test_url_is_tenant_scoped(
237238
base_url: str,
238239
org: str,
239240
tenant: str,
240-
sample_response_json: dict,
241+
sample_response_json: dict[str, Any],
241242
) -> None:
242243
captured_request: httpx.Request | None = None
243244

packages/uipath-platform/uv.lock

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

packages/uipath/src/uipath/_cli/_utils/_project_files.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,11 @@ def files_to_include(
391391
file_extensions_included = [".py", ".mermaid", ".json", ".yaml", ".yml", ".md"]
392392
files_included = ["pyproject.toml"]
393393
files_excluded = []
394-
# Files that should be included at any depth (not just root level)
395-
files_included_at_any_depth = ["pyproject.toml"]
396394

397395
if directories_to_ignore is None:
398396
directories_to_ignore = []
399397
if include_uv_lock:
400398
files_included += ["uv.lock"]
401-
files_included_at_any_depth += ["uv.lock"]
402399
if pack_options is not None:
403400
if pack_options.file_extensions_included:
404401
file_extensions_included.extend(pack_options.file_extensions_included)
@@ -427,8 +424,6 @@ def is_venv_dir(d: str) -> bool:
427424
extra_files: list[FileInfo] = []
428425
skipped_files: list[str] = []
429426

430-
# Directories that should be included even if they start with .
431-
dot_directories_included = [".agent-builder"]
432427
# Walk through directory and return all files in the allowlist
433428
for root, dirs, files in os.walk(directory):
434429
# Determine if we're in the root evals folder
@@ -439,10 +434,7 @@ def is_venv_dir(d: str) -> bool:
439434
# Skip all directories that start with . or are a venv or are excluded
440435
included_dirs = []
441436
for d in dirs:
442-
if (
443-
d.startswith(".")
444-
and d not in dot_directories_included
445-
) or is_venv_dir(os.path.join(root, d)):
437+
if d.startswith(".") or is_venv_dir(os.path.join(root, d)):
446438
continue
447439

448440
# Check if directory should be excluded
@@ -484,14 +476,14 @@ def is_venv_dir(d: str) -> bool:
484476
skipped_files.append(normalized_rel_path)
485477
continue
486478

487-
# Check inclusion: by extension, by filename, or by relative path
479+
# Check inclusion: by extension, by filename (for base directory), or by relative path
488480
should_include = (
489481
file_extension in file_extensions_included
490-
or file in files_included_at_any_depth # pyproject.toml and uv.lock at any depth
491482
or (
492483
file in files_included and normalized_rel_path == file
493-
) # other files only at root level
494-
or normalized_rel_path in files_included # path match for specific paths
484+
) # filename match for base directory only
485+
or normalized_rel_path
486+
in files_included # path match for subdirectories
495487
)
496488

497489
# Check exclusion: by filename (for base directory only) or by relative path

packages/uipath/src/uipath/_cli/cli_publish.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,7 @@ def publish(feed, folder):
191191
files = {
192192
"file": (package_to_publish_path, f, "application/octet-stream")
193193
}
194-
response = client.post(
195-
url,
196-
headers=headers,
197-
files=files,
198-
timeout=httpx.Timeout(300.0),
199-
)
194+
response = client.post(url, headers=headers, files=files)
200195

201196
if response.status_code == 200:
202197
console.success("Package published successfully!")

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)