ryry-cli 2.88__tar.gz → 2.90__tar.gz
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.
- {ryry-cli-2.88/ryry_cli.egg-info → ryry-cli-2.90}/PKG-INFO +1 -1
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/constant.py +2 -2
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/ryry_webapi.py +3 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/ryry_widget.py +8 -10
- {ryry-cli-2.88 → ryry-cli-2.90/ryry_cli.egg-info}/PKG-INFO +1 -1
- {ryry-cli-2.88 → ryry-cli-2.90}/setup.py +1 -1
- {ryry-cli-2.88 → ryry-cli-2.90}/LICENSE +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/README.md +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/__init__.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/main.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/ryry_server_socket.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/ryry_service.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/script_template/__init__.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/script_template/main.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/script_template/run.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/server_func.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/store.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/task.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/taskUtils.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/upload.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry/utils.py +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry-cli-2.88 → ryry-cli-2.90}/setup.cfg +0 -0
|
@@ -23,10 +23,13 @@ def _domain_post(func, params, files={}, timeout=10, domain="api.dalipen.com"):
|
|
|
23
23
|
return 0, "", result_data.get("data", "")
|
|
24
24
|
else:
|
|
25
25
|
return result_data.get("code", -1), result_data.get("msg", "Unknown error"), ""
|
|
26
|
+
print(f"HTTP {res.status_code}: {res.text}")
|
|
26
27
|
return -99, f"HTTP {res.status_code}: {res.text}", ""
|
|
27
28
|
except requests.RequestException as e:
|
|
29
|
+
print(f"request {func} RequestException! {e}")
|
|
28
30
|
return -99, f"request {func} RequestException!", ""
|
|
29
31
|
except Exception as e:
|
|
32
|
+
print(f"request {func} Exception! {e}")
|
|
30
33
|
return -99, f"request {func} Exception!", ""
|
|
31
34
|
|
|
32
35
|
def _aigc_post(func, params, files={}, timeout=10):
|
|
@@ -375,22 +375,20 @@ def UpdateWidgetFromPypi():
|
|
|
375
375
|
print(ex)
|
|
376
376
|
continue
|
|
377
377
|
for widget_id, widget_name, remote_version, package_url, is_install in ryry_webapi.getAutoDeployWidget():
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
try:
|
|
379
|
+
if widget_id not in _map and is_install:
|
|
380
380
|
local_version, local_path = _local_package_info(widget_name)
|
|
381
381
|
widgetReInstall(widget_name, package_url, local_path)
|
|
382
382
|
widgetInstallNotify(widget_name, remote_version)
|
|
383
383
|
addWidgetToEnv(widget_name)
|
|
384
|
-
print(f"auto install
|
|
385
|
-
|
|
386
|
-
print(
|
|
387
|
-
continue
|
|
388
|
-
else:
|
|
389
|
-
is_block = _map[widget_id]["isBlock"]
|
|
390
|
-
if is_install == False:
|
|
391
|
-
print(f"auto remove ${widget_name}")
|
|
384
|
+
print(f"auto install {widget_name}")
|
|
385
|
+
elif is_install == False:
|
|
386
|
+
print(f"auto remove {widget_name}")
|
|
392
387
|
widgetUninstall(widget_name, package_url)
|
|
393
388
|
store.removeWidget(widget_id)
|
|
389
|
+
except Exception as ex:
|
|
390
|
+
print(ex)
|
|
391
|
+
continue
|
|
394
392
|
|
|
395
393
|
def installWidget(name):
|
|
396
394
|
widgetid, remote_version, package_url = ryry_webapi.findWidget(name)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|