Skip to content

Commit 0998a4c

Browse files
authored
Merge pull request #541 from UiPath/fix/424-validate-proj-name
fix: check for spaces in project name
2 parents 062b5f0 + 1338b78 commit 0998a4c

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

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"
3-
version = "2.1.33"
3+
version = "2.1.34"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath/_cli/_utils/_project_files.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_project_config(directory: str) -> dict[str, str]:
6868
"version": toml_data["version"],
6969
"authors": toml_data["authors"],
7070
"dependencies": toml_data.get("dependencies", {}),
71-
"requires-python": toml_data.get("requires-python", {}),
71+
"requires-python": toml_data.get("requires-python", None),
7272
}
7373

7474

@@ -104,14 +104,15 @@ def validate_config(config: dict[str, str]) -> None:
104104
)
105105

106106
invalid_chars = ["&", "<", ">", '"', "'", ";"]
107-
for char in invalid_chars:
108-
if char in config["project_name"]:
109-
console.error(f"Project name contains invalid character: '{char}'")
110-
111107
for char in invalid_chars:
112108
if char in config["description"]:
113109
console.error(f"Project description contains invalid character: '{char}'")
114110

111+
invalid_chars += [" "]
112+
for char in invalid_chars:
113+
if char in config["project_name"]:
114+
console.error(f"Project name contains invalid character: '{char}'")
115+
115116

116117
def validate_config_structure(config_data: dict[str, Any]) -> None:
117118
"""Validate the structure of uipath.json configuration.

0 commit comments

Comments
 (0)