uipath 2.0.16__py3-none-any.whl → 2.0.18__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.

@@ -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 = click.prompt("Select tenant", type=int)
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,25 @@ 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
- with open(config_path, "r") as f:
210
- config_data = json.load(f)
211
- if "bindings" in config_data:
212
- bindings_content = config_data["bindings"]
213
- else:
214
- # Fall back to generating bindings from the first entry point
215
- bindings_content = generate_bindings_json(entryPoints[0]["filePath"])
216
- else:
217
- # Fall back to generating bindings from the first entry point
218
- bindings_content = generate_bindings_json(entryPoints[0]["filePath"])
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
+ else:
218
+ bindings_content = generate_bindings_content()
219
+ if "settings" in config_data:
220
+ settings = config_data["settings"]
221
+ if "fileExtensionsIncluded" in settings:
222
+ file_extensions_included.extend(settings["fileExtensionsIncluded"])
223
+ if "filesIncluded" in settings:
224
+ files_included = settings["filesIncluded"]
219
225
 
220
226
  content_types_content = generate_content_types_content()
221
227
  [psmdcp_file_name, psmdcp_content] = generate_psmdcp_content(
@@ -231,9 +237,6 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
231
237
  # Create .uipath directory if it doesn't exist
232
238
  os.makedirs(".uipath", exist_ok=True)
233
239
 
234
- # Define the allowlist of file extensions to include
235
- file_extensions_allowlist = [".py", ".mermaid", ".json", ".yaml", ".yml"]
236
-
237
240
  with zipfile.ZipFile(
238
241
  f".uipath/{projectName}.{version}.nupkg", "w", zipfile.ZIP_DEFLATED
239
242
  ) as z:
@@ -260,7 +263,7 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
260
263
 
261
264
  for file in files:
262
265
  file_extension = os.path.splitext(file)[1].lower()
263
- if file_extension in file_extensions_allowlist:
266
+ if file_extension in file_extensions_included or file in files_included:
264
267
  file_path = os.path.join(root, file)
265
268
  rel_path = os.path.relpath(file_path, directory)
266
269
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.16
3
+ Version: 2.0.18
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=x7Je61NYzR7CR8TUoT-xeZMrXXFAsXO9PGFDUVfBU8s,12876
13
+ uipath/_cli/cli_pack.py,sha256=6mh-4_ctXcg-gEYr1y70nJO9J6Uq2x4Lvi7xJyAT4-E,12991
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=I7uCdtd0GCGD5DvsHGaQGksLBLBeFS1el-atKVs0oo8,5993
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.16.dist-info/METADATA,sha256=h6BdW62AGyZldV5kiad44z856FpnCUjAK6_yD0aKZ6g,6078
77
- uipath-2.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
78
- uipath-2.0.16.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
79
- uipath-2.0.16.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
80
- uipath-2.0.16.dist-info/RECORD,,
76
+ uipath-2.0.18.dist-info/METADATA,sha256=YwO4BVBgKDEZiEUVtLCY_SFj-RZdkvZbscCyFpILuDA,6078
77
+ uipath-2.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
78
+ uipath-2.0.18.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
79
+ uipath-2.0.18.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
80
+ uipath-2.0.18.dist-info/RECORD,,