uipath 2.0.16__py3-none-any.whl → 2.0.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath might be problematic. Click here for more details.
- uipath/_cli/_auth/_portal_service.py +3 -1
- uipath/_cli/cli_pack.py +18 -17
- {uipath-2.0.16.dist-info → uipath-2.0.17.dist-info}/METADATA +1 -1
- {uipath-2.0.16.dist-info → uipath-2.0.17.dist-info}/RECORD +7 -7
- {uipath-2.0.16.dist-info → uipath-2.0.17.dist-info}/WHEEL +0 -0
- {uipath-2.0.16.dist-info → uipath-2.0.17.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.16.dist-info → uipath-2.0.17.dist-info}/licenses/LICENSE +0 -0
|
@@ -149,7 +149,9 @@ def select_tenant(
|
|
|
149
149
|
click.echo("Available tenants:")
|
|
150
150
|
for idx, name in enumerate(tenant_names):
|
|
151
151
|
click.echo(f" {idx}: {name}")
|
|
152
|
-
tenant_idx =
|
|
152
|
+
tenant_idx = (
|
|
153
|
+
0 if len(tenant_names) == 1 else click.prompt("Select tenant", type=int)
|
|
154
|
+
)
|
|
153
155
|
tenant_name = tenant_names[tenant_idx]
|
|
154
156
|
account_name = tenants_and_organizations["organization"]["name"]
|
|
155
157
|
click.echo(f"Selected tenant: {tenant_name}")
|
uipath/_cli/cli_pack.py
CHANGED
|
@@ -12,8 +12,6 @@ try:
|
|
|
12
12
|
except ImportError:
|
|
13
13
|
import tomli as tomllib
|
|
14
14
|
|
|
15
|
-
from ._utils._parse_ast import generate_bindings_json
|
|
16
|
-
|
|
17
15
|
schema = "https://cloud.uipath.com/draft/2024-12/entry-point"
|
|
18
16
|
|
|
19
17
|
|
|
@@ -205,17 +203,23 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
205
203
|
|
|
206
204
|
# Get bindings from uipath.json if available
|
|
207
205
|
config_path = os.path.join(directory, "uipath.json")
|
|
208
|
-
if os.path.exists(config_path):
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
206
|
+
if not os.path.exists(config_path):
|
|
207
|
+
raise Exception("uipath.json not found, please run `uipath init`")
|
|
208
|
+
|
|
209
|
+
# Define the allowlist of file extensions to include
|
|
210
|
+
file_extensions_included = [".py", ".mermaid", ".json", ".yaml", ".yml"]
|
|
211
|
+
files_included = []
|
|
212
|
+
|
|
213
|
+
with open(config_path, "r") as f:
|
|
214
|
+
config_data = json.load(f)
|
|
215
|
+
if "bindings" in config_data:
|
|
216
|
+
bindings_content = config_data["bindings"]
|
|
217
|
+
if "settings" in config_data:
|
|
218
|
+
settings = config_data["settings"]
|
|
219
|
+
if "fileExtensionsIncluded" in settings:
|
|
220
|
+
file_extensions_included.extend(settings["fileExtensionsIncluded"])
|
|
221
|
+
if "filesIncluded" in settings:
|
|
222
|
+
files_included = settings["filesIncluded"]
|
|
219
223
|
|
|
220
224
|
content_types_content = generate_content_types_content()
|
|
221
225
|
[psmdcp_file_name, psmdcp_content] = generate_psmdcp_content(
|
|
@@ -231,9 +235,6 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
231
235
|
# Create .uipath directory if it doesn't exist
|
|
232
236
|
os.makedirs(".uipath", exist_ok=True)
|
|
233
237
|
|
|
234
|
-
# Define the allowlist of file extensions to include
|
|
235
|
-
file_extensions_allowlist = [".py", ".mermaid", ".json", ".yaml", ".yml"]
|
|
236
|
-
|
|
237
238
|
with zipfile.ZipFile(
|
|
238
239
|
f".uipath/{projectName}.{version}.nupkg", "w", zipfile.ZIP_DEFLATED
|
|
239
240
|
) as z:
|
|
@@ -260,7 +261,7 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
260
261
|
|
|
261
262
|
for file in files:
|
|
262
263
|
file_extension = os.path.splitext(file)[1].lower()
|
|
263
|
-
if file_extension in
|
|
264
|
+
if file_extension in file_extensions_included or file in files_included:
|
|
264
265
|
file_path = os.path.join(root, file)
|
|
265
266
|
rel_path = os.path.relpath(file_path, directory)
|
|
266
267
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.17
|
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -10,14 +10,14 @@ uipath/_cli/cli_auth.py,sha256=ANaYUc2q1t0hDbGBRT3ags6K6Lef_3tyC8Mmc611jow,3141
|
|
|
10
10
|
uipath/_cli/cli_deploy.py,sha256=h8qwJkXnW6JURsg4YcocJInGA4dwkl4CZkpT1Cn9A3c,268
|
|
11
11
|
uipath/_cli/cli_init.py,sha256=idoqlGhhzXZKmLAg-3JgZ2fYMrK7qFXYV0EhnNaI3bg,3738
|
|
12
12
|
uipath/_cli/cli_new.py,sha256=SP7eWOa5valmCpc8UsOCIezL25euhglB3yJkx-N92W8,1903
|
|
13
|
-
uipath/_cli/cli_pack.py,sha256=
|
|
13
|
+
uipath/_cli/cli_pack.py,sha256=Do7ZjcHJrfeCCs9SUCpL9AW-Bdaryy6CWVInIzAsMLc,12918
|
|
14
14
|
uipath/_cli/cli_publish.py,sha256=_b9rehjsbxwkpH5_DtgFUaWWJqcZTg5nate-M5BnE_c,3586
|
|
15
15
|
uipath/_cli/cli_run.py,sha256=B5L7fE2IqysIEcweedU8GEy7ekMGwpeRagYBCB_cdQI,4597
|
|
16
16
|
uipath/_cli/middlewares.py,sha256=IiJgjsqrJVKSXx4RcIKHWoH-SqWqpHPbhzkQEybmAos,3937
|
|
17
17
|
uipath/_cli/_auth/_auth_server.py,sha256=vrzrE-hDx8exM5p2sFVoT9vKMblOyFWUvFXz-lTXceY,7077
|
|
18
18
|
uipath/_cli/_auth/_models.py,sha256=sYMCfvmprIqnZxStlD_Dxx2bcxgn0Ri4D7uwemwkcNg,948
|
|
19
19
|
uipath/_cli/_auth/_oidc_utils.py,sha256=WaX9jDlXrlX6yD8i8gsocV8ngjaT72Xd1tvsZMmSbco,2127
|
|
20
|
-
uipath/_cli/_auth/_portal_service.py,sha256=
|
|
20
|
+
uipath/_cli/_auth/_portal_service.py,sha256=YPL-_Z9oVK-VjQ67m31-t3y3uvNnPl_qubU-m4zlHMU,6042
|
|
21
21
|
uipath/_cli/_auth/_utils.py,sha256=9nb76xe5XmDZ0TAncp-_1SKqL6FdwRi9eS3C2noN1lY,1591
|
|
22
22
|
uipath/_cli/_auth/auth_config.json,sha256=NTb_ZZor5xEgya2QbK51GiTL5_yVqG_QpV4VYIp8_mk,342
|
|
23
23
|
uipath/_cli/_auth/index.html,sha256=ML_xDOcKs0ETYucufJskiYfWSvdrD_E26C0Qd3qpGj8,6280
|
|
@@ -73,8 +73,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
|
|
|
73
73
|
uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
|
|
74
74
|
uipath/tracing/_traced.py,sha256=9nEjFjGuxPlJ_4OXoClJ79xcbFK6C8iyI03kQQSDaJg,14834
|
|
75
75
|
uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
|
|
76
|
-
uipath-2.0.
|
|
77
|
-
uipath-2.0.
|
|
78
|
-
uipath-2.0.
|
|
79
|
-
uipath-2.0.
|
|
80
|
-
uipath-2.0.
|
|
76
|
+
uipath-2.0.17.dist-info/METADATA,sha256=0RybLwJVTvKnqXpJFhZ2wTEhKqH37yubgoBeSL6gm9w,6078
|
|
77
|
+
uipath-2.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
78
|
+
uipath-2.0.17.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
79
|
+
uipath-2.0.17.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
80
|
+
uipath-2.0.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|