uipath 2.0.41__py3-none-any.whl → 2.0.42__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/cli_pack.py CHANGED
@@ -201,6 +201,14 @@ def generate_package_descriptor_content(entryPoints):
201
201
  return package_descriptor_content
202
202
 
203
203
 
204
+ def is_venv_dir(d):
205
+ return (
206
+ os.path.exists(os.path.join(d, "Scripts", "activate"))
207
+ if os.name == "nt"
208
+ else os.path.exists(os.path.join(d, "bin", "activate"))
209
+ )
210
+
211
+
204
212
  def pack_fn(projectName, description, entryPoints, version, authors, directory):
205
213
  operate_file = generate_operate_file(entryPoints)
206
214
  entrypoints_file = generate_entrypoints_file(entryPoints)
@@ -264,8 +272,12 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
264
272
 
265
273
  # Walk through directory and add all files with extensions in the allowlist
266
274
  for root, dirs, files in os.walk(directory):
267
- # Skip all directories that start with .
268
- dirs[:] = [d for d in dirs if not d.startswith(".")]
275
+ # Skip all directories that start with . or are a venv
276
+ dirs[:] = [
277
+ d
278
+ for d in dirs
279
+ if not d.startswith(".") and not is_venv_dir(os.path.join(root, d))
280
+ ]
269
281
 
270
282
  for file in files:
271
283
  file_extension = os.path.splitext(file)[1].lower()
@@ -415,11 +415,18 @@ class ActionsService(FolderContext, BaseService):
415
415
  if len(deployed_apps) > 1 and not app_folder_path:
416
416
  raise Exception("Multiple app schemas found")
417
417
  try:
418
- return next(
419
- app
420
- for app in deployed_apps
421
- if app["deploymentFolder"]["fullyQualifiedName"] == app_folder_path
422
- )
418
+ if app_folder_path:
419
+ return next(
420
+ app
421
+ for app in deployed_apps
422
+ if app["deploymentFolder"]["fullyQualifiedName"] == app_folder_path
423
+ )
424
+ else:
425
+ return next(
426
+ app
427
+ for app in deployed_apps
428
+ if app["deploymentFolder"]["key"] == self._folder_key
429
+ )
423
430
  except StopIteration:
424
431
  raise KeyError from StopIteration
425
432
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.41
3
+ Version: 2.0.42
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
@@ -11,7 +11,7 @@ uipath/_cli/cli_deploy.py,sha256=lDqZQOsTPe8UyUApSQyFDMChj5HR6_hrEbn5tXtbHQE,608
11
11
  uipath/_cli/cli_init.py,sha256=qleaHOuXZyqQ001XXFX3m8W2y3pW-miwuvMBl6rHCa4,3699
12
12
  uipath/_cli/cli_invoke.py,sha256=YsVfN7COiE_huLPXqsMnUmno1-l2oAHgnMIWqHlR_oE,3670
13
13
  uipath/_cli/cli_new.py,sha256=6lLK_p7kRFQPgsc2i9t1v0Su4O1rC7zK55ic3y54QR8,2065
14
- uipath/_cli/cli_pack.py,sha256=FZr7P5WZvPkrP56fjn4dTONv76NuoEhVtQwzG3CxGQs,14667
14
+ uipath/_cli/cli_pack.py,sha256=-rUGw4vB50QpY-oNmVhIUXXmmFmk7_dhtafqZFBDyZg,14981
15
15
  uipath/_cli/cli_publish.py,sha256=ozastFqfKZVZIKZLvRTXJq0ZXm4p-ZEVgwc5MeccisI,5716
16
16
  uipath/_cli/cli_run.py,sha256=ke4UQiqzagv4ST60-mvcC7nh1dQMw_Z6GQ2hAbnspU0,5074
17
17
  uipath/_cli/middlewares.py,sha256=IiJgjsqrJVKSXx4RcIKHWoH-SqWqpHPbhzkQEybmAos,3937
@@ -41,7 +41,7 @@ uipath/_cli/_utils/_parse_ast.py,sha256=3XVjnhJNnSfjXlitct91VOtqSl0l-sqDpoWww28m
41
41
  uipath/_cli/_utils/_processes.py,sha256=b2CMYFEqMsAPeAFRfx9-8QftujdB28gXJ4sVTT4UVvw,1396
42
42
  uipath/_services/__init__.py,sha256=VPbwLDsvN26nWZgvR-8_-tc3i0rk5doqjTJbSrK0nN4,818
43
43
  uipath/_services/_base_service.py,sha256=3YClCoZBkVQGNJZGy-4NTk-HGsGA61XtwVQFYv9mwWk,7955
44
- uipath/_services/actions_service.py,sha256=PQ6HGEfX1vRBkFsjP2ykBRc9xOIf7wVKJC7Dkhka3HM,15623
44
+ uipath/_services/actions_service.py,sha256=DaWXbbLHVC-bVtxhMBm3Zfhx6IP8s9mviOTgK5g_CAQ,15883
45
45
  uipath/_services/api_client.py,sha256=1hYLc_90dQzCGnqqirEHpPqvL3Gkv2sSKoeOV_iTmlk,2903
46
46
  uipath/_services/assets_service.py,sha256=4TsHd_b3VQZlN195ecrCHbQcaNew0GWEk90SFhvNJTU,9352
47
47
  uipath/_services/buckets_service.py,sha256=m0HMWBkooUhjTtna_ZXcw4QOzKmaibuepWlC8wPGtlA,9330
@@ -78,8 +78,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
78
78
  uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
79
79
  uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
80
80
  uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
81
- uipath-2.0.41.dist-info/METADATA,sha256=2PnSGExZd8yIYf5BQTQfyaOhcsUuPxaBc8eg_lLOlnw,6254
82
- uipath-2.0.41.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
- uipath-2.0.41.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
84
- uipath-2.0.41.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
85
- uipath-2.0.41.dist-info/RECORD,,
81
+ uipath-2.0.42.dist-info/METADATA,sha256=BTnrskEB-6qPerFybGAyjhUmU_TmScPe5-3VfqilP0o,6254
82
+ uipath-2.0.42.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
+ uipath-2.0.42.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
84
+ uipath-2.0.42.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
85
+ uipath-2.0.42.dist-info/RECORD,,