Alaea 2.6.1__tar.gz → 2.6.2__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 (62) hide show
  1. alaea-2.6.2/.VERSION +1 -0
  2. {alaea-2.6.1 → alaea-2.6.2}/Alaea/storage.py +1 -1
  3. {alaea-2.6.1 → alaea-2.6.2}/Alaea.egg-info/PKG-INFO +1 -1
  4. {alaea-2.6.1 → alaea-2.6.2}/ChangeLog.md +4 -0
  5. {alaea-2.6.1 → alaea-2.6.2}/PKG-INFO +1 -1
  6. {alaea-2.6.1 → alaea-2.6.2}/setup.py +1 -1
  7. {alaea-2.6.1 → alaea-2.6.2}/tests/test_core.py +4 -1
  8. alaea-2.6.1/.VERSION +0 -1
  9. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Blogging.py +0 -0
  10. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Pyshell/RS_File.py +0 -0
  11. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Pyshell/__init__.py +0 -0
  12. {alaea-2.6.1 → alaea-2.6.2}/Alaea/S_DateTime.py +0 -0
  13. {alaea-2.6.1 → alaea-2.6.2}/Alaea/SameAsMATLAB/CoorTrans.py +0 -0
  14. {alaea-2.6.1 → alaea-2.6.2}/Alaea/SameAsMATLAB/__init__.py +0 -0
  15. {alaea-2.6.1 → alaea-2.6.2}/Alaea/SameAsMATLAB/calculatefuns.py +0 -0
  16. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/__init__.py +0 -0
  17. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/vars_name.py +0 -0
  18. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_atmos.py +0 -0
  19. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_attrs.py +0 -0
  20. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_ice.py +0 -0
  21. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_netcdf.py +0 -0
  22. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_vars.py +0 -0
  23. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_wave.py +0 -0
  24. {alaea-2.6.1 → alaea-2.6.2}/Alaea/Standard/xr_wind.py +0 -0
  25. {alaea-2.6.1 → alaea-2.6.2}/Alaea/__init__.py +0 -0
  26. {alaea-2.6.1 → alaea-2.6.2}/Alaea/baysalt/Forage/__init__.py +0 -0
  27. {alaea-2.6.1 → alaea-2.6.2}/Alaea/baysalt/Forage/erosion_data/__init__.py +0 -0
  28. {alaea-2.6.1 → alaea-2.6.2}/Alaea/baysalt/__init__.py +0 -0
  29. {alaea-2.6.1 → alaea-2.6.2}/Alaea/baysalt/erosion_coastline.py +0 -0
  30. {alaea-2.6.1 → alaea-2.6.2}/Alaea/commonCode.py +0 -0
  31. {alaea-2.6.1 → alaea-2.6.2}/Alaea/cprintfs.py +0 -0
  32. {alaea-2.6.1 → alaea-2.6.2}/Alaea/exutils/Interp/Interp_g2s.py +0 -0
  33. {alaea-2.6.1 → alaea-2.6.2}/Alaea/exutils/Interp/Interp_s2g.py +0 -0
  34. {alaea-2.6.1 → alaea-2.6.2}/Alaea/exutils/Interp/__init__.py +0 -0
  35. {alaea-2.6.1 → alaea-2.6.2}/Alaea/exutils/Interp/interpolate.py +0 -0
  36. {alaea-2.6.1 → alaea-2.6.2}/Alaea/exutils/__init__.py +0 -0
  37. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/__init__.py +0 -0
  38. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/fvcom_class.py +0 -0
  39. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/fvcom_image.py +0 -0
  40. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/fvcom_load.py +0 -0
  41. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/fvcom_tools.py +0 -0
  42. {alaea-2.6.1 → alaea-2.6.2}/Alaea/pFVCOM/writeFile.py +0 -0
  43. {alaea-2.6.1 → alaea-2.6.2}/Alaea/processBar.py +0 -0
  44. {alaea-2.6.1 → alaea-2.6.2}/Alaea/read_conf.py +0 -0
  45. {alaea-2.6.1 → alaea-2.6.2}/Alaea/server_info.py +0 -0
  46. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/P_params.py +0 -0
  47. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/Read.py +0 -0
  48. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/__init__.py +0 -0
  49. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/download_check.py +0 -0
  50. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/geo_distance.py +0 -0
  51. {alaea-2.6.1 → alaea-2.6.2}/Alaea/tools/kml2shp.py +0 -0
  52. {alaea-2.6.1 → alaea-2.6.2}/Alaea/warningTools/__init__.py +0 -0
  53. {alaea-2.6.1 → alaea-2.6.2}/Alaea.egg-info/SOURCES.txt +0 -0
  54. {alaea-2.6.1 → alaea-2.6.2}/Alaea.egg-info/dependency_links.txt +0 -0
  55. {alaea-2.6.1 → alaea-2.6.2}/Alaea.egg-info/requires.txt +0 -0
  56. {alaea-2.6.1 → alaea-2.6.2}/Alaea.egg-info/top_level.txt +0 -0
  57. {alaea-2.6.1 → alaea-2.6.2}/LICENSE +0 -0
  58. {alaea-2.6.1 → alaea-2.6.2}/MANIFEST.in +0 -0
  59. {alaea-2.6.1 → alaea-2.6.2}/README.md +0 -0
  60. {alaea-2.6.1 → alaea-2.6.2}/pyproject.toml +0 -0
  61. {alaea-2.6.1 → alaea-2.6.2}/setup.cfg +0 -0
  62. {alaea-2.6.1 → alaea-2.6.2}/tests/test_logging_multiprocess.py +0 -0
alaea-2.6.2/.VERSION ADDED
@@ -0,0 +1 @@
1
+ v2.6.2
@@ -43,7 +43,7 @@ def run_storage_fallback(storage_mode, auto_methods, operations, fallback_errors
43
43
  try:
44
44
  result = normalized_operations[method]()
45
45
  if logger is not None:
46
- logger.info('Storage method succeeded: context=%s, method=%s, wallSeconds=%.2f', context, method, perf_counter() - started_at)
46
+ logger.debug('Storage method succeeded: context=%s, method=%s, wallSeconds=%.2f', context, method, perf_counter() - started_at)
47
47
  return result
48
48
  except fallback_errors as error:
49
49
  if active_mode != 'AUTO':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Alaea
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: Some simple tools by Christmas
5
5
  Author: Christmas
6
6
  Author-email: 273519355@qq.com
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## v2.6.2
4
+
5
+ - `run_storage_fallback` 的成功线路明细由 INFO 调整为 DEBUG,减少 `Storage method succeeded` 高频常规日志;实际失败并降级仍保持 WARNING。
6
+
3
7
  ## v2.6.1
4
8
 
5
9
  - macOS/Linux 使用 `fcntl` 锁定日志目录,Windows 使用由日志目录确定的系统命名互斥量,让不同程序的按时间、按大小及组合日志轮转无额外锁文件地跨进程串行;多个进程在同一时刻压缩共享日志时只轮转一次,Windows 写入后会关闭日志句柄以允许其他进程重命名文件,其他 handler 会同步当前日志和下次轮转时间,避免 `.gz.tmp`/`.zst.tmp` 竞争、重复归档和轮转后日志丢失。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Alaea
3
- Version: 2.6.1
3
+ Version: 2.6.2
4
4
  Summary: Some simple tools by Christmas
5
5
  Author: Christmas
6
6
  Author-email: 273519355@qq.com
@@ -8,7 +8,7 @@ with open("README.md", "r") as fh:
8
8
 
9
9
  setuptools.setup(
10
10
  name="Alaea",
11
- version="2.6.1",
11
+ version="2.6.2",
12
12
  author="Christmas",
13
13
  author_email="273519355@qq.com",
14
14
  description="Some simple tools by Christmas",
@@ -345,8 +345,11 @@ class UtilityRegressionTest(unittest.TestCase):
345
345
  return 'nfs-result'
346
346
 
347
347
  operations = {'CACHE': unavailable, 'NFS': direct}
348
- self.assertEqual(run_storage_fallback('AUTO', ('CACHE', 'NFS'), operations), 'nfs-result')
348
+ logger = mock.Mock()
349
+ self.assertEqual(run_storage_fallback('AUTO', ('CACHE', 'NFS'), operations, logger=logger, context='down-gfs-cache'), 'nfs-result')
349
350
  self.assertEqual(calls, ['CACHE', 'NFS'])
351
+ logger.debug.assert_called_once_with('Storage method succeeded: context=%s, method=%s, wallSeconds=%.2f', 'down-gfs-cache', 'NFS', mock.ANY)
352
+ logger.info.assert_not_called()
350
353
  with self.assertRaisesRegex(OSError, 'cache unavailable'):
351
354
  run_storage_fallback('CACHE', ('CACHE', 'NFS'), operations)
352
355
 
alaea-2.6.1/.VERSION DELETED
@@ -1 +0,0 @@
1
- v2.6.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
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