fluidattacks_utils_logger 3.0.0__tar.gz → 3.0.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.
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/PKG-INFO +3 -2
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/build/default.nix +7 -1
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/flake.lock +65 -76
- fluidattacks_utils_logger-3.0.2/flake.nix +29 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/__init__.py +1 -1
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/pyproject.toml +7 -2
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/ruff.toml +21 -9
- fluidattacks_utils_logger-3.0.2/uv.lock +656 -0
- fluidattacks_utils_logger-3.0.0/flake.nix +0 -19
- fluidattacks_utils_logger-3.0.0/uv.lock +0 -1151
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/.envrc +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/build/filter.nix +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/env.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/handlers.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/levels.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/logger.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/fluidattacks_utils_logger/py.typed +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/mypy.ini +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/__init__.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/arch/__init__.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/arch/arch.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/arch/test_arch.py +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/py.typed +0 -0
- {fluidattacks_utils_logger-3.0.0 → fluidattacks_utils_logger-3.0.2}/tests/test_logger.py +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fluidattacks_utils_logger
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.2
|
|
4
4
|
Summary: Common logger handlers
|
|
5
5
|
Author-email: Product Team <development@fluidattacks.com>
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
7
|
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
-
Requires-Dist: fluidattacks-core >=
|
|
8
|
+
Requires-Dist: fluidattacks-core >=8.2.0, <9.0.0
|
|
9
9
|
Requires-Dist: fa-purity >=2.5.2, <3.0.0
|
|
10
|
+
Requires-Dist: python-json-logger >=3.3.0, <5.0.0
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"nixpkgs-lib": "nixpkgs-lib"
|
|
6
6
|
},
|
|
7
7
|
"locked": {
|
|
8
|
-
"lastModified":
|
|
9
|
-
"narHash": "sha256-
|
|
8
|
+
"lastModified": 1762810396,
|
|
9
|
+
"narHash": "sha256-dxFVgQPG+R72dkhXTtqUm7KpxElw3u6E+YlQ2WaDgt8=",
|
|
10
10
|
"owner": "hercules-ci",
|
|
11
11
|
"repo": "flake-parts",
|
|
12
|
-
"rev": "
|
|
12
|
+
"rev": "0bdadb1b265fb4143a75bd1ec7d8c915898a9923",
|
|
13
13
|
"type": "github"
|
|
14
14
|
},
|
|
15
15
|
"original": {
|
|
@@ -20,26 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"nix_filter": {
|
|
22
22
|
"locked": {
|
|
23
|
-
"lastModified":
|
|
24
|
-
"narHash": "sha256
|
|
23
|
+
"lastModified": 1757882181,
|
|
24
|
+
"narHash": "sha256-+cCxYIh2UNalTz364p+QYmWHs0P+6wDhiWR4jDIKQIU=",
|
|
25
25
|
"owner": "numtide",
|
|
26
26
|
"repo": "nix-filter",
|
|
27
|
-
"rev": "
|
|
28
|
-
"type": "github"
|
|
29
|
-
},
|
|
30
|
-
"original": {
|
|
31
|
-
"owner": "numtide",
|
|
32
|
-
"repo": "nix-filter",
|
|
33
|
-
"type": "github"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"nix_filter_2": {
|
|
37
|
-
"locked": {
|
|
38
|
-
"lastModified": 1731533336,
|
|
39
|
-
"narHash": "sha256-oRam5PS1vcrr5UPgALW0eo1m/5/pls27Z/pabHNy2Ms=",
|
|
40
|
-
"owner": "numtide",
|
|
41
|
-
"repo": "nix-filter",
|
|
42
|
-
"rev": "f7653272fd234696ae94229839a99b73c9ab7de0",
|
|
27
|
+
"rev": "59c44d1909c72441144b93cf0f054be7fe764de5",
|
|
43
28
|
"type": "github"
|
|
44
29
|
},
|
|
45
30
|
"original": {
|
|
@@ -50,26 +35,27 @@
|
|
|
50
35
|
},
|
|
51
36
|
"nixpkgs": {
|
|
52
37
|
"locked": {
|
|
53
|
-
"lastModified":
|
|
54
|
-
"narHash": "sha256-
|
|
38
|
+
"lastModified": 1758690382,
|
|
39
|
+
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
|
55
40
|
"owner": "nixos",
|
|
56
41
|
"repo": "nixpkgs",
|
|
57
|
-
"rev": "
|
|
42
|
+
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
|
58
43
|
"type": "github"
|
|
59
44
|
},
|
|
60
45
|
"original": {
|
|
61
46
|
"owner": "nixos",
|
|
47
|
+
"ref": "nixos-unstable",
|
|
62
48
|
"repo": "nixpkgs",
|
|
63
49
|
"type": "github"
|
|
64
50
|
}
|
|
65
51
|
},
|
|
66
52
|
"nixpkgs-lib": {
|
|
67
53
|
"locked": {
|
|
68
|
-
"lastModified":
|
|
69
|
-
"narHash": "sha256-
|
|
54
|
+
"lastModified": 1761765539,
|
|
55
|
+
"narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
|
|
70
56
|
"owner": "nix-community",
|
|
71
57
|
"repo": "nixpkgs.lib",
|
|
72
|
-
"rev": "
|
|
58
|
+
"rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
|
|
73
59
|
"type": "github"
|
|
74
60
|
},
|
|
75
61
|
"original": {
|
|
@@ -96,11 +82,11 @@
|
|
|
96
82
|
},
|
|
97
83
|
"nixpkgs_3": {
|
|
98
84
|
"locked": {
|
|
99
|
-
"lastModified":
|
|
100
|
-
"narHash": "sha256-
|
|
85
|
+
"lastModified": 1761373498,
|
|
86
|
+
"narHash": "sha256-Q/uhWNvd7V7k1H1ZPMy/vkx3F8C13ZcdrKjO7Jv7v0c=",
|
|
101
87
|
"owner": "nixos",
|
|
102
88
|
"repo": "nixpkgs",
|
|
103
|
-
"rev": "
|
|
89
|
+
"rev": "6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce",
|
|
104
90
|
"type": "github"
|
|
105
91
|
},
|
|
106
92
|
"original": {
|
|
@@ -110,29 +96,28 @@
|
|
|
110
96
|
"type": "github"
|
|
111
97
|
}
|
|
112
98
|
},
|
|
113
|
-
"
|
|
99
|
+
"nixpkgs_flake": {
|
|
114
100
|
"locked": {
|
|
115
|
-
"lastModified":
|
|
116
|
-
"narHash": "sha256-
|
|
101
|
+
"lastModified": 1762812764,
|
|
102
|
+
"narHash": "sha256-MNqrovkO8AEQeYQK7e3X2GDx2H8vfDIxV4K/VEaIjjo=",
|
|
117
103
|
"owner": "nixos",
|
|
118
104
|
"repo": "nixpkgs",
|
|
119
|
-
"rev": "
|
|
105
|
+
"rev": "400156fe527ab6b54cf6f70cca2c8385548a29c4",
|
|
120
106
|
"type": "github"
|
|
121
107
|
},
|
|
122
108
|
"original": {
|
|
123
109
|
"owner": "nixos",
|
|
124
|
-
"ref": "nixos-unstable",
|
|
125
110
|
"repo": "nixpkgs",
|
|
126
111
|
"type": "github"
|
|
127
112
|
}
|
|
128
113
|
},
|
|
129
|
-
"
|
|
114
|
+
"nixpkgs_flake_2": {
|
|
130
115
|
"locked": {
|
|
131
|
-
"lastModified":
|
|
132
|
-
"narHash": "sha256-
|
|
116
|
+
"lastModified": 1761668286,
|
|
117
|
+
"narHash": "sha256-YN/cm/hbm7pi7lMZCsNhu6jlBUi4wUirrIlyOMpbjKU=",
|
|
133
118
|
"owner": "nixos",
|
|
134
119
|
"repo": "nixpkgs",
|
|
135
|
-
"rev": "
|
|
120
|
+
"rev": "1fdb9eb10eff581a40ce2e9511c4ed517eac0c3f",
|
|
136
121
|
"type": "github"
|
|
137
122
|
},
|
|
138
123
|
"original": {
|
|
@@ -145,52 +130,33 @@
|
|
|
145
130
|
"inputs": {
|
|
146
131
|
"nix_filter": "nix_filter",
|
|
147
132
|
"nixpkgs_flake": "nixpkgs_flake",
|
|
148
|
-
"pynix_flake": "pynix_flake",
|
|
149
133
|
"pyproject-build-systems": "pyproject-build-systems",
|
|
150
134
|
"pyproject-nix": "pyproject-nix_2",
|
|
135
|
+
"pythonix_flake": "pythonix_flake",
|
|
151
136
|
"shell-helpers": "shell-helpers",
|
|
152
137
|
"uv2nix": "uv2nix_2"
|
|
153
138
|
},
|
|
154
139
|
"locked": {
|
|
155
140
|
"dir": "observes/common/std_flake_2",
|
|
156
|
-
"lastModified":
|
|
157
|
-
"narHash": "sha256-
|
|
141
|
+
"lastModified": 1770672786,
|
|
142
|
+
"narHash": "sha256-W4qMpuS/Zg9P/PooFDsqW7EzjF3A+ITsxKbp1SWdARI=",
|
|
158
143
|
"ref": "refs/heads/trunk",
|
|
159
|
-
"rev": "
|
|
144
|
+
"rev": "ad927cc6545df64a7d622696a43bcee225b9867b",
|
|
160
145
|
"shallow": true,
|
|
161
146
|
"type": "git",
|
|
162
147
|
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
163
148
|
},
|
|
164
149
|
"original": {
|
|
165
150
|
"dir": "observes/common/std_flake_2",
|
|
166
|
-
"rev": "
|
|
151
|
+
"rev": "ad927cc6545df64a7d622696a43bcee225b9867b",
|
|
167
152
|
"shallow": true,
|
|
168
153
|
"type": "git",
|
|
169
154
|
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
170
155
|
}
|
|
171
156
|
},
|
|
172
|
-
"pynix_flake": {
|
|
173
|
-
"inputs": {
|
|
174
|
-
"nix_filter": "nix_filter_2",
|
|
175
|
-
"nixpkgs": "nixpkgs"
|
|
176
|
-
},
|
|
177
|
-
"locked": {
|
|
178
|
-
"lastModified": 1758642502,
|
|
179
|
-
"narHash": "sha256-PD/bQMz2dqZSkydHyvRh+jS/0qoV8SdcIVs6sassteQ=",
|
|
180
|
-
"owner": "dmurciaatfluid",
|
|
181
|
-
"repo": "python_nix_builder",
|
|
182
|
-
"rev": "809aafe2e1995e72c15378d099bf251b78f04a20",
|
|
183
|
-
"type": "gitlab"
|
|
184
|
-
},
|
|
185
|
-
"original": {
|
|
186
|
-
"owner": "dmurciaatfluid",
|
|
187
|
-
"repo": "python_nix_builder",
|
|
188
|
-
"type": "gitlab"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
157
|
"pyproject-build-systems": {
|
|
192
158
|
"inputs": {
|
|
193
|
-
"nixpkgs": "
|
|
159
|
+
"nixpkgs": "nixpkgs",
|
|
194
160
|
"pyproject-nix": "pyproject-nix",
|
|
195
161
|
"uv2nix": "uv2nix"
|
|
196
162
|
},
|
|
@@ -232,7 +198,7 @@
|
|
|
232
198
|
},
|
|
233
199
|
"pyproject-nix_2": {
|
|
234
200
|
"inputs": {
|
|
235
|
-
"nixpkgs": "
|
|
201
|
+
"nixpkgs": "nixpkgs_2"
|
|
236
202
|
},
|
|
237
203
|
"locked": {
|
|
238
204
|
"lastModified": 1762427963,
|
|
@@ -270,6 +236,28 @@
|
|
|
270
236
|
"type": "github"
|
|
271
237
|
}
|
|
272
238
|
},
|
|
239
|
+
"pythonix_flake": {
|
|
240
|
+
"inputs": {
|
|
241
|
+
"nixpkgs_flake": "nixpkgs_flake_2"
|
|
242
|
+
},
|
|
243
|
+
"locked": {
|
|
244
|
+
"dir": "observes/common/pythonix_mirror",
|
|
245
|
+
"lastModified": 1767370831,
|
|
246
|
+
"narHash": "sha256-VR86TSrJsNHQq31Ksga+1dvsrkv9u1pKa0MKuKYeIAc=",
|
|
247
|
+
"ref": "refs/heads/trunk",
|
|
248
|
+
"rev": "0678f8ff3bfe02cfe23bc819bfa739c53bd6e4b6",
|
|
249
|
+
"shallow": true,
|
|
250
|
+
"type": "git",
|
|
251
|
+
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
252
|
+
},
|
|
253
|
+
"original": {
|
|
254
|
+
"dir": "observes/common/pythonix_mirror",
|
|
255
|
+
"rev": "0678f8ff3bfe02cfe23bc819bfa739c53bd6e4b6",
|
|
256
|
+
"shallow": true,
|
|
257
|
+
"type": "git",
|
|
258
|
+
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
273
261
|
"root": {
|
|
274
262
|
"inputs": {
|
|
275
263
|
"observes_flake_builder": "observes_flake_builder"
|
|
@@ -285,19 +273,20 @@
|
|
|
285
273
|
},
|
|
286
274
|
"locked": {
|
|
287
275
|
"dir": "common/utils/shell-helpers",
|
|
288
|
-
"lastModified":
|
|
289
|
-
"narHash": "sha256-
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"type": "
|
|
276
|
+
"lastModified": 1762806066,
|
|
277
|
+
"narHash": "sha256-Wz99Fl7SpPU1NkTHJ36XOo6DjOEAMXCw3ThRABOS2Hs=",
|
|
278
|
+
"ref": "refs/heads/trunk",
|
|
279
|
+
"rev": "d73cfdc7ae9e7f547e22a4481d4c2ccce38b26a8",
|
|
280
|
+
"shallow": true,
|
|
281
|
+
"type": "git",
|
|
282
|
+
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
294
283
|
},
|
|
295
284
|
"original": {
|
|
296
285
|
"dir": "common/utils/shell-helpers",
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
286
|
+
"rev": "d73cfdc7ae9e7f547e22a4481d4c2ccce38b26a8",
|
|
287
|
+
"shallow": true,
|
|
288
|
+
"type": "git",
|
|
289
|
+
"url": "ssh://git@gitlab.com/fluidattacks/universe"
|
|
301
290
|
}
|
|
302
291
|
},
|
|
303
292
|
"uv2nix": {
|
|
@@ -329,7 +318,7 @@
|
|
|
329
318
|
},
|
|
330
319
|
"uv2nix_2": {
|
|
331
320
|
"inputs": {
|
|
332
|
-
"nixpkgs": "
|
|
321
|
+
"nixpkgs": "nixpkgs_3",
|
|
333
322
|
"pyproject-nix": "pyproject-nix_3"
|
|
334
323
|
},
|
|
335
324
|
"locked": {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
description = "Log utils for observes packages";
|
|
3
|
+
|
|
4
|
+
inputs = {
|
|
5
|
+
observes_flake_builder = {
|
|
6
|
+
url = "git+ssh://git@gitlab.com/fluidattacks/universe?shallow=1&rev=ad927cc6545df64a7d622696a43bcee225b9867b&dir=observes/common/std_flake_2";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
outputs =
|
|
11
|
+
{ self, ... }@inputs:
|
|
12
|
+
let
|
|
13
|
+
build_args =
|
|
14
|
+
{
|
|
15
|
+
system,
|
|
16
|
+
python_version,
|
|
17
|
+
nixpkgs,
|
|
18
|
+
builders,
|
|
19
|
+
scripts,
|
|
20
|
+
}:
|
|
21
|
+
import ./build {
|
|
22
|
+
inherit nixpkgs builders scripts;
|
|
23
|
+
src = import ./build/filter.nix nixpkgs.nix-filter self;
|
|
24
|
+
};
|
|
25
|
+
in
|
|
26
|
+
{
|
|
27
|
+
packages = inputs.observes_flake_builder.outputs.build build_args;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -4,8 +4,9 @@ authors = [{ name = "Product Team", email = "development@fluidattacks.com" }]
|
|
|
4
4
|
classifiers = ["License :: OSI Approved :: MIT License"]
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
dependencies = [
|
|
7
|
-
"fluidattacks-core >=
|
|
7
|
+
"fluidattacks-core >=8.2.0, <9.0.0",
|
|
8
8
|
"fa-purity >=2.5.2, <3.0.0",
|
|
9
|
+
"python-json-logger >=3.3.0, <5.0.0",
|
|
9
10
|
]
|
|
10
11
|
description = "Common logger handlers"
|
|
11
12
|
dynamic = ["version"]
|
|
@@ -18,7 +19,11 @@ build-backend = "flit_core.buildapi"
|
|
|
18
19
|
dev = [
|
|
19
20
|
"arch-lint >=5.0.0, <6.0.0",
|
|
20
21
|
"mypy >=1.18.2, <2.0.0",
|
|
21
|
-
"pytest >=
|
|
22
|
+
"pytest >=9.0.3, <10.0.0",
|
|
22
23
|
"pytest-cov >=7.0.0, <8.0.0",
|
|
23
24
|
"ruff >=0.14.1, <1.0.0",
|
|
24
25
|
]
|
|
26
|
+
|
|
27
|
+
[tool.uv]
|
|
28
|
+
exclude-newer = "7 days"
|
|
29
|
+
exclude-newer-package = { fluidattacks-core = "2099-01-01", fluid-blends = "2099-01-01" }
|
|
@@ -4,23 +4,26 @@ indent-width = 4
|
|
|
4
4
|
target-version = "py311"
|
|
5
5
|
|
|
6
6
|
[lint]
|
|
7
|
+
preview = true
|
|
8
|
+
explicit-preview-rules = true
|
|
7
9
|
select = ["ALL"]
|
|
10
|
+
extend-select = ["PLR1702", "PLR0916"]
|
|
8
11
|
ignore = [
|
|
9
12
|
"FBT001", # debatable
|
|
10
|
-
"FBT003",
|
|
13
|
+
"FBT003", # conflict with the convention of denying kwargs
|
|
11
14
|
"RET503", # raises false positives
|
|
12
|
-
"N818",
|
|
15
|
+
"N818", # semantics on names, the type already has the semantics
|
|
13
16
|
"TC001", # import cycles can be hidden
|
|
14
17
|
"TC002", # import cycles can be hidden
|
|
15
18
|
"TC003", # technical debt!
|
|
16
19
|
"FLY002", # f-string is not type safe: implicit str conversion can hide codification issues
|
|
17
|
-
"D203",
|
|
18
|
-
"D212",
|
|
19
|
-
"D104",
|
|
20
|
-
"D103",
|
|
21
|
-
"D102",
|
|
22
|
-
"D101",
|
|
23
|
-
"D100",
|
|
20
|
+
"D203", # conflict with D211 one must be ignored
|
|
21
|
+
"D212", # conflict with D213 one must be ignored
|
|
22
|
+
"D104", # missing docs; technical debt!
|
|
23
|
+
"D103", # missing docs; technical debt!
|
|
24
|
+
"D102", # missing docs; technical debt!
|
|
25
|
+
"D101", # missing docs; technical debt!
|
|
26
|
+
"D100", # missing docs; technical debt!
|
|
24
27
|
]
|
|
25
28
|
fixable = ["ALL"]
|
|
26
29
|
unfixable = []
|
|
@@ -35,3 +38,12 @@ quote-style = "double"
|
|
|
35
38
|
indent-style = "space"
|
|
36
39
|
skip-magic-trailing-comma = false
|
|
37
40
|
line-ending = "lf"
|
|
41
|
+
|
|
42
|
+
[lint.mccabe]
|
|
43
|
+
max-complexity = 8
|
|
44
|
+
|
|
45
|
+
[lint.pylint]
|
|
46
|
+
max-branches = 8
|
|
47
|
+
max-nested-blocks = 4
|
|
48
|
+
max-statements = 25
|
|
49
|
+
max-bool-expr = 5
|