ryry-cli 2.17__tar.gz → 2.19__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.17/ryry_cli.egg-info → ryry_cli-2.19}/PKG-INFO +1 -1
  2. ryry_cli-2.19/ryry/constant.py +5 -0
  3. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/ryry_widget.py +2 -0
  4. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/taskUtils.py +35 -32
  5. {ryry_cli-2.17 → ryry_cli-2.19/ryry_cli.egg-info}/PKG-INFO +1 -1
  6. {ryry_cli-2.17 → ryry_cli-2.19}/setup.py +1 -1
  7. ryry_cli-2.17/ryry/constant.py +0 -5
  8. {ryry_cli-2.17 → ryry_cli-2.19}/LICENSE +0 -0
  9. {ryry_cli-2.17 → ryry_cli-2.19}/README.md +0 -0
  10. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/__init__.py +0 -0
  11. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/main.py +0 -0
  12. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/ryry_server_socket.py +0 -0
  13. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/ryry_service.py +0 -0
  14. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/ryry_webapi.py +0 -0
  15. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/script_template/__init__.py +0 -0
  16. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/script_template/main.py +0 -0
  17. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/script_template/run.py +0 -0
  18. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/server_func.py +0 -0
  19. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/store.py +0 -0
  20. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/task.py +0 -0
  21. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/upload.py +0 -0
  22. {ryry_cli-2.17 → ryry_cli-2.19}/ryry/utils.py +0 -0
  23. {ryry_cli-2.17 → ryry_cli-2.19}/ryry_cli.egg-info/SOURCES.txt +0 -0
  24. {ryry_cli-2.17 → ryry_cli-2.19}/ryry_cli.egg-info/dependency_links.txt +0 -0
  25. {ryry_cli-2.17 → ryry_cli-2.19}/ryry_cli.egg-info/entry_points.txt +0 -0
  26. {ryry_cli-2.17 → ryry_cli-2.19}/ryry_cli.egg-info/requires.txt +0 -0
  27. {ryry_cli-2.17 → ryry_cli-2.19}/ryry_cli.egg-info/top_level.txt +0 -0
  28. {ryry_cli-2.17 → ryry_cli-2.19}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.17
3
+ Version: 2.19
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.19"
3
+ app_bulld_number=219
4
+ app_bulld_anchor="Noh_2024-07-02 13:43:03.228101"
5
+ app_name="ryry-cli"
@@ -391,6 +391,8 @@ def UpdateWidgetFromPypi():
391
391
  py_package = data["py_package"]
392
392
  widgetid, remote_version, package_url = ryry_webapi.findWidget(py_package)
393
393
  local_version = _local_package_version(py_package)
394
+ if len(local_version) <= 0:
395
+ continue
394
396
  if compare_versions(remote_version, local_version) > 0:
395
397
  #update
396
398
  pipReInstall(py_package, package_url)
@@ -219,38 +219,41 @@ def notifyCounterIfNeed():
219
219
  }
220
220
  })
221
221
 
222
- try:
223
- import matplotlib.pyplot as plt
224
- plt.figure(figsize=(8,3))
225
- plt.rcParams.update({
226
- 'font.size': 7
227
- })
228
- plt.bar(t_l, s_l, color='g', label='success')
229
- plt.bar(t_l, f_l, bottom=s_l, color='r', label='fail')
230
- plt.title(f'[{socket.gethostname()}] [{yesterday}] success/fail={s_cnt}/{f_cnt}')
231
- plt.xlabel('time')
232
- plt.xticks(ticks=t_l,rotation=45)
233
- plt.ylabel('count')
234
- plt.subplots_adjust(bottom=0.25)
235
- plt.legend()
236
- fff = os.path.join(os.path.dirname(os.path.abspath(__file__)), "plt.png")
237
- plt.savefig(fff)
238
- with open(fff, "rb") as f:
239
- encode_string = str(base64.b64encode(f.read()), encoding='utf-8')
240
- md5 = hashlib.md5()
241
- md5.update(base64.b64decode(encode_string))
242
- hash = md5.hexdigest()
243
- notifyWechatRobot({
244
- "msgtype": "image",
245
- "image": {
246
- "base64": encode_string,
247
- "md5": hash
248
- }
249
- })
250
- os.remove(fff)
251
- os.remove(task_counter_file)
252
- except:
253
- pass
222
+ import subprocess, platform
223
+ #darwin Command Line cannot create pyplot gui because not application with gui
224
+ if platform.system() != 'Darwin':
225
+ try:
226
+ import matplotlib.pyplot as plt
227
+ plt.figure(figsize=(8,3))
228
+ plt.rcParams.update({
229
+ 'font.size': 7
230
+ })
231
+ plt.bar(t_l, s_l, color='g', label='success')
232
+ plt.bar(t_l, f_l, bottom=s_l, color='r', label='fail')
233
+ plt.title(f'[{socket.gethostname()}] [{yesterday}] success/fail={s_cnt}/{f_cnt}')
234
+ plt.xlabel('time')
235
+ plt.xticks(ticks=t_l,rotation=45)
236
+ plt.ylabel('count')
237
+ plt.subplots_adjust(bottom=0.25)
238
+ plt.legend()
239
+ fff = os.path.join(os.path.dirname(os.path.abspath(__file__)), "plt.png")
240
+ plt.savefig(fff)
241
+ with open(fff, "rb") as f:
242
+ encode_string = str(base64.b64encode(f.read()), encoding='utf-8')
243
+ md5 = hashlib.md5()
244
+ md5.update(base64.b64decode(encode_string))
245
+ hash = md5.hexdigest()
246
+ notifyWechatRobot({
247
+ "msgtype": "image",
248
+ "image": {
249
+ "base64": encode_string,
250
+ "md5": hash
251
+ }
252
+ })
253
+ os.remove(fff)
254
+ os.remove(task_counter_file)
255
+ except:
256
+ pass
254
257
 
255
258
  def saveCounter(taskUUID, duration, isSuccess):
256
259
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ryry-cli
3
- Version: 2.17
3
+ Version: 2.19
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.17"
6
+ ryry_version = "2.19"
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.17"
3
- app_bulld_number=217
4
- app_bulld_anchor="Noh_2024-06-20 19:50:23.197646"
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
File without changes