ryry-cli 2.35__tar.gz → 2.37__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.
Files changed (28) hide show
  1. {ryry_cli-2.35 → ryry_cli-2.37}/PKG-INFO +1 -1
  2. ryry_cli-2.37/ryry/constant.py +5 -0
  3. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/ryry_webapi.py +1 -1
  4. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/ryry_widget.py +2 -2
  5. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/server_func.py +6 -5
  6. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/taskUtils.py +2 -2
  7. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/PKG-INFO +1 -1
  8. {ryry_cli-2.35 → ryry_cli-2.37}/setup.py +1 -1
  9. ryry_cli-2.35/ryry/constant.py +0 -5
  10. {ryry_cli-2.35 → ryry_cli-2.37}/LICENSE +0 -0
  11. {ryry_cli-2.35 → ryry_cli-2.37}/README.md +0 -0
  12. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/__init__.py +0 -0
  13. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/main.py +0 -0
  14. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/ryry_server_socket.py +0 -0
  15. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/ryry_service.py +0 -0
  16. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/script_template/__init__.py +0 -0
  17. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/script_template/main.py +0 -0
  18. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/script_template/run.py +0 -0
  19. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/store.py +0 -0
  20. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/task.py +0 -0
  21. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/upload.py +0 -0
  22. {ryry_cli-2.35 → ryry_cli-2.37}/ryry/utils.py +0 -0
  23. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.35 → ryry_cli-2.37}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.35 → ryry_cli-2.37}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.35
3
+ Version: 2.37
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -0,0 +1,5 @@
1
+ #!!!!! do not change this file !!!!!
2
+ app_version="2.37"
3
+ app_bulld_number=237
4
+ app_bulld_anchor="Noh_2024-08-23 10:43:12.640901"
5
+ app_name="ryry-cli"
@@ -198,7 +198,7 @@ def uploadWidget(widget_id, name, whl, ext, version):
198
198
  }
199
199
  r1, r2, r3 = _aigc_post("aigc/task/publishWidget", params, files=files, timeout=100)
200
200
  if r1 != 0:
201
- raise Exception(f"upload fail!, reason={r2}")
201
+ raise Exception(f"upload widget fail!, reason={r2}")
202
202
  return r3
203
203
 
204
204
  def CreateWidgetUUID():
@@ -169,7 +169,7 @@ def addWidgetToEnv(root, mute=False):
169
169
  root = os.path.join(package.location, name.replace("-", "_"))
170
170
  except:
171
171
  pass
172
-
172
+ print(root)
173
173
  if CheckWidgetDataInPath(root) == False:
174
174
  return
175
175
  data = GetWidgetConfig(root)
@@ -424,5 +424,5 @@ def installWidget(name):
424
424
  widgetInstallNotify(name, remote_version)
425
425
  addWidgetToEnv(name)
426
426
  else:
427
- print(f"本地 {local_version} 版本较高,请卸载后再安装")
427
+ print(f"本地已是最新版本 {remote_version}")
428
428
 
@@ -56,7 +56,7 @@ class TaskThread(Thread):
56
56
  self.checking = True
57
57
  self.checkCount = 0
58
58
  time.sleep(5)
59
- while self.checking and self.checkCount < 200:
59
+ while self.checking and self.checkCount < 400:
60
60
  finish, success, data, progress = ryry_webapi.checkTask(self.checkUUID)
61
61
  print_progress_bar(progress, 100, f"Task{self.idx} {self.func}", self.idx+1, self.total)
62
62
  if finish:
@@ -65,7 +65,7 @@ class TaskThread(Thread):
65
65
  self.call_back(self.idx, data)
66
66
  return
67
67
  self.checkCount += 1
68
- time.sleep(3)
68
+ time.sleep(5)
69
69
  else:
70
70
  print(f"widget {self.func} not found")
71
71
  self.call_back(self.idx, None)
@@ -75,11 +75,12 @@ class TaskThread(Thread):
75
75
  ryry_webapi.TaskCancel(self.checkUUID)
76
76
 
77
77
  class Task:
78
+ import urllib3
79
+ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
78
80
  thread_data = {}
79
-
81
+
80
82
  def __init__(self, func: str, multi_params: list[dict], fromUUID=""):
81
- urllib3.disable_warnings()
82
- urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
83
+ self.thread_data = {}
83
84
 
84
85
  realTaskUUID = fromUUID
85
86
  if realTaskUUID == None or len(realTaskUUID) <= 0:
@@ -99,8 +99,8 @@ def _uploadLog(taskUUID):
99
99
  def notifyTaskFail(taskUUID, reason):
100
100
  try:
101
101
  real_reason = ""
102
- if len(reason) > 610:
103
- real_reason = f"{reason[0:300]}\n...\n{reason[len(reason)-300:]}"
102
+ if len(reason) > 2010:
103
+ real_reason = f"{reason[0:1000]}\n...\n{reason[len(reason)-1000:]}"
104
104
  else:
105
105
  real_reason = reason
106
106
  notifyWechatRobot({
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.35
3
+ Version: 2.37
4
4
  Summary: ryry tools
5
5
  Home-page: https://github.com/dalipenMedia
6
6
  Author: dalipen
@@ -3,7 +3,7 @@ import os
3
3
  import subprocess
4
4
  import datetime
5
5
 
6
- ryry_version = "2.35"
6
+ ryry_version = "2.37"
7
7
  ryry_build_number = int(ryry_version.replace(".",""))
8
8
  cur_dir = os.path.dirname(os.path.abspath(__file__))
9
9
  constanspy = os.path.join(cur_dir, "ryry", "constant.py")
@@ -1,5 +0,0 @@
1
- #!!!!! do not change this file !!!!!
2
- app_version="2.35"
3
- app_bulld_number=235
4
- app_bulld_anchor="Noh_2024-08-15 19:33:09.127913"
5
- app_name="ryry-cli"
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