Skip to content

Commit 3dbe9f9

Browse files
committed
feat: Revert unrelated changes
1 parent f45bcb6 commit 3dbe9f9

2 files changed

Lines changed: 6 additions & 19 deletions

File tree

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!")

0 commit comments

Comments
 (0)