ryry-cli 4.25__tar.gz → 4.27__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-4.25/ryry_cli.egg-info → ryry_cli-4.27}/PKG-INFO +2 -1
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/constant.py +2 -2
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/daemon_manager.py +0 -12
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/proxy_manager.py +1 -1
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/store.py +1 -1
- {ryry_cli-4.25 → ryry_cli-4.27/ryry_cli.egg-info}/PKG-INFO +2 -1
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/SOURCES.txt +0 -1
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/requires.txt +1 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/setup.py +3 -2
- ryry_cli-4.25/ryry/test_proxy.py +0 -1
- {ryry_cli-4.25 → ryry_cli-4.27}/LICENSE +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/README.md +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/__init__.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/daemon_base.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/main.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_service.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/ryry_widget.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/daemon.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/main.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/script_template/run.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/server_func.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/shared_memory.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/task.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/taskUtils.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/upload.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry/utils.py +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-4.25 → ryry_cli-4.27}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ryry-cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.27
|
|
4
4
|
Summary: ryry tools
|
|
5
5
|
Home-page: https://github.com/dalipenMedia
|
|
6
6
|
Author: dalipen
|
|
@@ -23,6 +23,7 @@ Requires-Dist: gputil
|
|
|
23
23
|
Requires-Dist: urlparser
|
|
24
24
|
Requires-Dist: urllib3
|
|
25
25
|
Requires-Dist: portalocker
|
|
26
|
+
Requires-Dist: PyYAML
|
|
26
27
|
Provides-Extra: with-mecord
|
|
27
28
|
Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
|
|
28
29
|
|
|
@@ -255,7 +255,6 @@ class DaemonManager:
|
|
|
255
255
|
daemon_info["accept_tasks"] = ready_info.get("accept_tasks", False)
|
|
256
256
|
config[widget_id] = daemon_info
|
|
257
257
|
self._write_daemon_config(config)
|
|
258
|
-
taskUtils.taskPrint(None, f"Daemon {widget_id} 就绪信号已收到")
|
|
259
258
|
break
|
|
260
259
|
except Exception as e:
|
|
261
260
|
taskUtils.taskPrint(None, f"读取就绪信号文件失败: {e}")
|
|
@@ -368,14 +367,11 @@ class DaemonManager:
|
|
|
368
367
|
daemon_info = config.get(widget_id, {})
|
|
369
368
|
|
|
370
369
|
if not daemon_info:
|
|
371
|
-
taskUtils.taskPrint(None, f"Daemon {widget_id} 无配置信息")
|
|
372
370
|
return {"running": False, "ready": False, "accept_tasks": False}
|
|
373
371
|
|
|
374
372
|
pid = daemon_info.get("pid", 0)
|
|
375
373
|
running = daemon_info.get("running", False) and self._is_process_alive(pid)
|
|
376
374
|
|
|
377
|
-
taskUtils.taskPrint(None, f"Daemon {widget_id} 状态检查: PID={pid}, config_running={daemon_info.get('running', False)}, process_alive={self._is_process_alive(pid)}, final_running={running}")
|
|
378
|
-
|
|
379
375
|
# 如果进程还活着,检查是否有停止信号文件
|
|
380
376
|
if running:
|
|
381
377
|
stop_file = os.path.join(constant.base_path, f"daemon_stopped_{widget_id}.json")
|
|
@@ -427,8 +423,6 @@ class DaemonManager:
|
|
|
427
423
|
"""同步daemon状态与widgetMap,自动关闭不需要的daemon,启动需要的新daemon"""
|
|
428
424
|
config = self._read_daemon_config()
|
|
429
425
|
widget_map = store.widgetMap()
|
|
430
|
-
|
|
431
|
-
taskUtils.taskPrint(None, f"开始同步daemon状态,当前配置: {list(config.keys())}")
|
|
432
426
|
|
|
433
427
|
# 0. 首先检查所有已死亡的daemon进程并清理
|
|
434
428
|
dead_daemons = []
|
|
@@ -437,8 +431,6 @@ class DaemonManager:
|
|
|
437
431
|
pid = daemon_info.get("pid", 0)
|
|
438
432
|
# 检查进程是否还活着
|
|
439
433
|
is_alive = self._is_process_alive(pid)
|
|
440
|
-
taskUtils.taskPrint(None, f"检查daemon {widget_id} (PID: {pid}): {'活着' if is_alive else '死亡'}")
|
|
441
|
-
|
|
442
434
|
if not is_alive:
|
|
443
435
|
dead_daemons.append(widget_id)
|
|
444
436
|
taskUtils.taskPrint(None, f"Found dead daemon {widget_id} with PID {pid}")
|
|
@@ -503,8 +495,6 @@ class DaemonManager:
|
|
|
503
495
|
status = self.get_daemon_status(widget_id)
|
|
504
496
|
daemon_info = config.get(widget_id)
|
|
505
497
|
|
|
506
|
-
taskUtils.taskPrint(None, f"检查widget {widget_id}: status={status.get('running', False)}, daemon_info={daemon_info.get('running', False) if daemon_info else 'None'}")
|
|
507
|
-
|
|
508
498
|
# 检查是否需要启动
|
|
509
499
|
need_start = False
|
|
510
500
|
reason = ""
|
|
@@ -519,8 +509,6 @@ class DaemonManager:
|
|
|
519
509
|
if need_start:
|
|
520
510
|
taskUtils.taskPrint(None, f"Starting daemon {widget_id}: {reason}")
|
|
521
511
|
self.start_daemon(widget_id, widget_info)
|
|
522
|
-
else:
|
|
523
|
-
taskUtils.taskPrint(None, f"Daemon {widget_id} 无需启动")
|
|
524
512
|
|
|
525
513
|
# 建议在start_all_daemons后调用一次同步
|
|
526
514
|
def start_all_daemons(self):
|
|
@@ -155,7 +155,7 @@ def extend():
|
|
|
155
155
|
_genExtend()
|
|
156
156
|
elif read_data["extend"].get("device_id", "") != read_data.get("deviceInfo", {}).get("device_id", ""):
|
|
157
157
|
_genExtend()
|
|
158
|
-
elif read_data["extend"].get("app", "") == "ryry-cli 4.
|
|
158
|
+
elif read_data["extend"].get("app", "") == "ryry-cli 4.27":
|
|
159
159
|
_genExtend()
|
|
160
160
|
else:
|
|
161
161
|
_genExtend()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ryry-cli
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.27
|
|
4
4
|
Summary: ryry tools
|
|
5
5
|
Home-page: https://github.com/dalipenMedia
|
|
6
6
|
Author: dalipen
|
|
@@ -23,6 +23,7 @@ Requires-Dist: gputil
|
|
|
23
23
|
Requires-Dist: urlparser
|
|
24
24
|
Requires-Dist: urllib3
|
|
25
25
|
Requires-Dist: portalocker
|
|
26
|
+
Requires-Dist: PyYAML
|
|
26
27
|
Provides-Extra: with-mecord
|
|
27
28
|
Requires-Dist: mecord-cli>=0.7.405; extra == "with-mecord"
|
|
28
29
|
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import subprocess
|
|
4
4
|
import datetime
|
|
5
5
|
|
|
6
|
-
ryry_version = "4.
|
|
6
|
+
ryry_version = "4.27"
|
|
7
7
|
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
|
8
8
|
constanspy = os.path.join(cur_dir, "ryry", "constant.py")
|
|
9
9
|
try:
|
|
@@ -69,7 +69,8 @@ setuptools.setup(
|
|
|
69
69
|
'gputil',
|
|
70
70
|
'urlparser',
|
|
71
71
|
'urllib3',
|
|
72
|
-
'portalocker'
|
|
72
|
+
'portalocker',
|
|
73
|
+
'PyYAML'
|
|
73
74
|
],
|
|
74
75
|
extras_require={
|
|
75
76
|
'with_mecord': ['mecord-cli>=0.7.405'],
|
ryry_cli-4.25/ryry/test_proxy.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|