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.10.35"
version = "2.10.36"
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
3 changes: 3 additions & 0 deletions packages/uipath/src/uipath/_cli/_utils/_project_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ def is_venv_dir(d: str) -> bool:

dirs[:] = included_dirs
for file in files:
if file.startswith("."):
continue

file_extension = os.path.splitext(file)[1].lower()
file_path = os.path.join(root, file)
file_name = os.path.basename(file_path)
Expand Down
31 changes: 31 additions & 0 deletions packages/uipath/tests/cli/test_files_to_include.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import os

from uipath._cli._utils._project_files import files_to_include


class TestFilesToIncludeHiddenFiles:
def test_hidden_files_are_excluded(self, tmp_path):
project_dir = str(tmp_path)
open(os.path.join(project_dir, "main.py"), "w").close()
open(os.path.join(project_dir, ".hidden_file.py"), "w").close()
open(os.path.join(project_dir, ".env"), "w").close()

included, _ = files_to_include(None, project_dir, include_uv_lock=False)
included_names = [f.file_name for f in included]

assert "main.py" in included_names
assert ".hidden_file.py" not in included_names
assert ".env" not in included_names

def test_hidden_files_in_subdirectory_are_excluded(self, tmp_path):
project_dir = str(tmp_path)
sub_dir = os.path.join(project_dir, "src")
os.makedirs(sub_dir)
open(os.path.join(sub_dir, "app.py"), "w").close()
open(os.path.join(sub_dir, ".secret.json"), "w").close()

included, _ = files_to_include(None, project_dir, include_uv_lock=False)
included_names = [f.file_name for f in included]

assert "app.py" in included_names
assert ".secret.json" not in included_names
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