uipath 2.0.19.dev1002910021__py3-none-any.whl → 2.0.19.dev1002910037__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 +16 -9
- {uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/METADATA +1 -1
- {uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/RECORD +6 -6
- {uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/WHEEL +0 -0
- {uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/entry_points.txt +0 -0
- {uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/licenses/LICENSE +0 -0
uipath/_cli/cli_pack.py
CHANGED
|
@@ -209,6 +209,8 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
209
209
|
# Define the allowlist of file extensions to include
|
|
210
210
|
file_extensions_included = [".py", ".mermaid", ".json", ".yaml", ".yml"]
|
|
211
211
|
files_included = []
|
|
212
|
+
# Binary files that should be read in binary mode
|
|
213
|
+
binary_extensions = [".exe", ""]
|
|
212
214
|
|
|
213
215
|
with open(config_path, "r") as f:
|
|
214
216
|
config_data = json.load(f)
|
|
@@ -266,19 +268,24 @@ def pack_fn(projectName, description, entryPoints, version, authors, directory):
|
|
|
266
268
|
if file_extension in file_extensions_included or file in files_included:
|
|
267
269
|
file_path = os.path.join(root, file)
|
|
268
270
|
rel_path = os.path.relpath(file_path, directory)
|
|
269
|
-
|
|
270
|
-
#
|
|
271
|
-
with open(file_path, "
|
|
271
|
+
if file_extension in binary_extensions:
|
|
272
|
+
# Read binary files in binary mode
|
|
273
|
+
with open(file_path, "rb") as f:
|
|
272
274
|
z.writestr(f"content/{rel_path}", f.read())
|
|
273
|
-
|
|
274
|
-
# If UTF-8 fails, try with utf-8-sig (for files with BOM)
|
|
275
|
+
else:
|
|
275
276
|
try:
|
|
276
|
-
|
|
277
|
+
# Try UTF-8 first
|
|
278
|
+
with open(file_path, "r", encoding="utf-8") as f:
|
|
277
279
|
z.writestr(f"content/{rel_path}", f.read())
|
|
278
280
|
except UnicodeDecodeError:
|
|
279
|
-
# If
|
|
280
|
-
|
|
281
|
-
|
|
281
|
+
# If UTF-8 fails, try with utf-8-sig (for files with BOM)
|
|
282
|
+
try:
|
|
283
|
+
with open(file_path, "r", encoding="utf-8-sig") as f:
|
|
284
|
+
z.writestr(f"content/{rel_path}", f.read())
|
|
285
|
+
except UnicodeDecodeError:
|
|
286
|
+
# If that also fails, try with latin-1 as a fallback
|
|
287
|
+
with open(file_path, "r", encoding="latin-1") as f:
|
|
288
|
+
z.writestr(f"content/{rel_path}", f.read())
|
|
282
289
|
|
|
283
290
|
optional_files = ["pyproject.toml", "README.md"]
|
|
284
291
|
for file in optional_files:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.19.
|
|
3
|
+
Version: 2.0.19.dev1002910037
|
|
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,7 +10,7 @@ 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=RqrVn0rzUohDtm3Gtuelhvq7u9QaFwbmI-cK47BVE_c,13533
|
|
14
14
|
uipath/_cli/cli_publish.py,sha256=XdPVbnZ-9_jlxyYXz2FyHXGMGNnhJ83yM8KnIeYksVo,3669
|
|
15
15
|
uipath/_cli/cli_run.py,sha256=B5L7fE2IqysIEcweedU8GEy7ekMGwpeRagYBCB_cdQI,4597
|
|
16
16
|
uipath/_cli/middlewares.py,sha256=IiJgjsqrJVKSXx4RcIKHWoH-SqWqpHPbhzkQEybmAos,3937
|
|
@@ -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.19.
|
|
77
|
-
uipath-2.0.19.
|
|
78
|
-
uipath-2.0.19.
|
|
79
|
-
uipath-2.0.19.
|
|
80
|
-
uipath-2.0.19.
|
|
76
|
+
uipath-2.0.19.dev1002910037.dist-info/METADATA,sha256=_Y8Q4tjsInTIQvZ5xzhgvmOLj6fEcTSlsBt0XwRAbx0,6120
|
|
77
|
+
uipath-2.0.19.dev1002910037.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
78
|
+
uipath-2.0.19.dev1002910037.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
|
79
|
+
uipath-2.0.19.dev1002910037.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
|
80
|
+
uipath-2.0.19.dev1002910037.dist-info/RECORD,,
|
|
File without changes
|
{uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{uipath-2.0.19.dev1002910021.dist-info → uipath-2.0.19.dev1002910037.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|