rats-apps 0.11.1.dev20250624201650__py3-none-any.whl → 0.11.2.dev20250624204412__py3-none-any.whl
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.
- rats/logs/_showwarning.py +11 -7
- {rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/METADATA +1 -1
- {rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/RECORD +5 -5
- {rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/WHEEL +0 -0
- {rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/entry_points.txt +0 -0
rats/logs/_showwarning.py
CHANGED
@@ -38,13 +38,17 @@ def showwarning(
|
|
38
38
|
|
39
39
|
formatted_message = warnings.formatwarning(message, category, filename, lineno, line)
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
try:
|
42
|
+
for _module_name, module in sys.modules.items():
|
43
|
+
module_path = getattr(module, "__file__", None)
|
44
|
+
if module_path and Path(filename).is_file() and Path(module_path).samefile(filename):
|
45
|
+
module_name = _module_name
|
46
|
+
break
|
47
|
+
else:
|
48
|
+
# unsure what module to use, but we can default to "py.warnings" like the original handler
|
49
|
+
module_name = "py.warnings"
|
50
|
+
except Exception:
|
51
|
+
# fall back to the default behavior and avoid ever failing from within logging functions
|
48
52
|
module_name = "py.warnings"
|
49
53
|
|
50
54
|
source_logger = logging.getLogger(module_name)
|
{rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/RECORD
RENAMED
@@ -32,7 +32,7 @@ rats/cli/_plugin.py,sha256=o-pmEqU6mVH3QoRfRBrbG-XRTWCzt6pLKtSV3-5VSx0,1144
|
|
32
32
|
rats/cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
rats/logs/__init__.py,sha256=_ZdkBmvW1yr5UOIB_m4OldNsUxK6NTDunNW4mvgQmpI,2115
|
34
34
|
rats/logs/_app.py,sha256=EVjSjSaxJIL5LMJZf4yo9EpUBkkavaVXyg42cDsUt3I,5702
|
35
|
-
rats/logs/_showwarning.py,sha256=
|
35
|
+
rats/logs/_showwarning.py,sha256=Pn4X-qSqmqzIoKeGiHRbywa0SY-HlLoG7JbhhKPX5hw,1922
|
36
36
|
rats/logs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
rats/runtime/__init__.py,sha256=f9aEnynHuePP9OP5XCtB-6nCBvNWWlQQLTzuxFEueoQ,2150
|
38
38
|
rats/runtime/__main__.py,sha256=y01yOymsL075poX95pc02sJR1HD0pDNFRZdpOdi0R6Y,79
|
@@ -55,7 +55,7 @@ rats_e2e/runtime/_data.py,sha256=3d1F_JO2gEOPUjBp_KYMP3TefyneiG_ktlJjdIIYUy8,125
|
|
55
55
|
rats_e2e/runtime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
56
56
|
rats_resources/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
57
57
|
rats_resources/runtime/example-context.yaml,sha256=eiLsNFquFfkIpUhxUCQLzLigH21QF2F00fzA_e_aOKk,215
|
58
|
-
rats_apps-0.11.
|
59
|
-
rats_apps-0.11.
|
60
|
-
rats_apps-0.11.
|
61
|
-
rats_apps-0.11.
|
58
|
+
rats_apps-0.11.2.dev20250624204412.dist-info/METADATA,sha256=Jl9W2bsfbkIH3gx8JuBtKFnEt_2RrPdH4aqCAqUnyFM,8292
|
59
|
+
rats_apps-0.11.2.dev20250624204412.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
60
|
+
rats_apps-0.11.2.dev20250624204412.dist-info/entry_points.txt,sha256=Gf6bPwxIVjWd3Xx71upZo7eDJA5cujniLew6fxJMgA4,117
|
61
|
+
rats_apps-0.11.2.dev20250624204412.dist-info/RECORD,,
|
{rats_apps-0.11.1.dev20250624201650.dist-info → rats_apps-0.11.2.dev20250624204412.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|