ryry-cli 2.29__tar.gz → 2.31__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.29 → ryry_cli-2.31}/PKG-INFO +1 -1
  2. ryry_cli-2.31/ryry/constant.py +5 -0
  3. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/ryry_service.py +21 -21
  4. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/ryry_widget.py +3 -1
  5. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/server_func.py +4 -4
  6. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/PKG-INFO +1 -1
  7. {ryry_cli-2.29 → ryry_cli-2.31}/setup.py +1 -1
  8. ryry_cli-2.29/ryry/constant.py +0 -5
  9. {ryry_cli-2.29 → ryry_cli-2.31}/LICENSE +0 -0
  10. {ryry_cli-2.29 → ryry_cli-2.31}/README.md +0 -0
  11. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/__init__.py +0 -0
  12. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/main.py +0 -0
  13. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/ryry_server_socket.py +0 -0
  14. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/ryry_webapi.py +0 -0
  15. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/store.py +0 -0
  19. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/task.py +0 -0
  20. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/taskUtils.py +0 -0
  21. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/upload.py +0 -0
  22. {ryry_cli-2.29 → ryry_cli-2.31}/ryry/utils.py +0 -0
  23. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.29 → ryry_cli-2.31}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.29 → ryry_cli-2.31}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.29
3
+ Version: 2.31
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.31"
3
+ app_bulld_number=231
4
+ app_bulld_anchor="Noh_2024-08-14 19:48:56.982357"
5
+ app_name="ryry-cli"
@@ -158,27 +158,27 @@ class ryryPackageThread(Thread):
158
158
  except Exception as ex:
159
159
  print(f'update widget fail, {ex}')
160
160
 
161
- if platform.system() != 'Darwin':
162
- try:
163
- #update cli
164
- remote_version = ryry_widget._remote_package_version("ryry-cli")
165
- simple = "https://pypi.python.org/simple/"
166
- local_version = ryry_widget._local_package_version("ryry-cli")
167
- if ryry_widget.compare_versions(remote_version, local_version) > 0:
168
- print("start update progress...")
169
- utils.begin_restart("auto upgrade ryry-cli", True, simple)
170
- device_id = utils.generate_unique_id()
171
- machine_name = socket.gethostname()
172
- ver = get_distribution("ryry-cli").version
173
- taskUtils.notifyWechatRobot({
174
- "msgtype": "text",
175
- "text": {
176
- "content": f"机器<{machine_name}[{device_id}]>[{ver}] ryry-cli开始升级[{local_version}]->[{remote_version}]"
177
- }
178
- })
179
- break
180
- except Exception as ex:
181
- print(f'update ryry-cli fail, {ex}')
161
+ # if platform.system() != 'Darwin':
162
+ # try:
163
+ # #update cli
164
+ # remote_version = ryry_widget._remote_package_version("ryry-cli")
165
+ # simple = "https://pypi.python.org/simple/"
166
+ # local_version = ryry_widget._local_package_version("ryry-cli")
167
+ # if ryry_widget.compare_versions(remote_version, local_version) > 0:
168
+ # print("start update progress...")
169
+ # utils.begin_restart("auto upgrade ryry-cli", True, simple)
170
+ # device_id = utils.generate_unique_id()
171
+ # machine_name = socket.gethostname()
172
+ # ver = get_distribution("ryry-cli").version
173
+ # taskUtils.notifyWechatRobot({
174
+ # "msgtype": "text",
175
+ # "text": {
176
+ # "content": f"机器<{machine_name}[{device_id}]>[{ver}] ryry-cli开始升级[{local_version}]->[{remote_version}]"
177
+ # }
178
+ # })
179
+ # break
180
+ # except Exception as ex:
181
+ # print(f'update ryry-cli fail, {ex}')
182
182
  time.sleep(10)
183
183
  print(f" PackageChecker stop")
184
184
  notify_other_stoped() #because other thread is waiting some signal to close
@@ -174,7 +174,9 @@ def addWidgetToEnv(root, mute=False):
174
174
  return
175
175
  data = GetWidgetConfig(root)
176
176
  widget_id = data["widget_id"]
177
- name = data["name"]
177
+ name = ""
178
+ if "name" in data:
179
+ name = data["name"]
178
180
  mainPythonPath = os.path.join(root, "main.py")
179
181
  store.insertWidget(widget_id, name, mainPythonPath)
180
182
  if mute == False:
@@ -43,14 +43,14 @@ class TaskThread(Thread):
43
43
  if len(self.func) > 0:
44
44
  cmd = task.cmdWithWidgetName(self.func)
45
45
  if cmd:
46
- print("======")
47
- executeSuccess, result_obj = task.executeLocalPython("local_" + ''.join(str(uuid.uuid4()).split('-')), cmd, self.params)
48
- print(result_obj)
46
+ self.checkUUID = "local_" + ''.join(str(uuid.uuid4()).split('-'))
47
+ self.params["task_id"] = self.checkUUID
48
+ executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params)
49
+ print("结束 " + result_obj)
49
50
  if executeSuccess and result_obj["status"] == 0:
50
51
  self.call_back(self.idx, result_obj["result"])
51
52
  return
52
53
  else:
53
- print("=====123123123=")
54
54
  # run_server
55
55
  self.checkUUID = ryry_webapi.createTask(self.func, self.params)
56
56
  print("")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.29
3
+ Version: 2.31
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.29"
6
+ ryry_version = "2.31"
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.29"
3
- app_bulld_number=229
4
- app_bulld_anchor="Noh_2024-08-14 18:08:47.761550"
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
File without changes