datamaestro 1.7.2__py3-none-any.whl → 1.7.3__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.
- datamaestro/test/checks.py +24 -0
- datamaestro/version.py +1 -1
- {datamaestro-1.7.2.dist-info → datamaestro-1.7.3.dist-info}/METADATA +1 -1
- {datamaestro-1.7.2.dist-info → datamaestro-1.7.3.dist-info}/RECORD +7 -7
- {datamaestro-1.7.2.dist-info → datamaestro-1.7.3.dist-info}/WHEEL +0 -0
- {datamaestro-1.7.2.dist-info → datamaestro-1.7.3.dist-info}/entry_points.txt +0 -0
- {datamaestro-1.7.2.dist-info → datamaestro-1.7.3.dist-info}/licenses/LICENSE +0 -0
datamaestro/test/checks.py
CHANGED
|
@@ -2,6 +2,30 @@ import logging
|
|
|
2
2
|
import importlib
|
|
3
3
|
import inspect
|
|
4
4
|
from datamaestro.context import Context
|
|
5
|
+
from experimaestro.tools.documentation import DocumentationAnalyzer
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DatamaestroAnalyzer(DocumentationAnalyzer):
|
|
9
|
+
"""Documentation analyzer that excludes @dataset-annotated classes.
|
|
10
|
+
|
|
11
|
+
Dataset definitions (classes decorated with ``@dataset``) are documented
|
|
12
|
+
via ``dm:datasets`` Sphinx directives, not ``autoxpmconfig``. This
|
|
13
|
+
subclass filters them from the undocumented list after analysis.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def analyze(self):
|
|
17
|
+
super().analyze()
|
|
18
|
+
filtered = []
|
|
19
|
+
for fqn in self.undocumented:
|
|
20
|
+
module_name, class_name = fqn.rsplit(".", 1)
|
|
21
|
+
try:
|
|
22
|
+
mod = importlib.import_module(module_name)
|
|
23
|
+
cls = getattr(mod, class_name)
|
|
24
|
+
if not hasattr(cls, "__dataset__"):
|
|
25
|
+
filtered.append(fqn)
|
|
26
|
+
except (ImportError, AttributeError):
|
|
27
|
+
filtered.append(fqn)
|
|
28
|
+
self.undocumented = filtered
|
|
5
29
|
|
|
6
30
|
|
|
7
31
|
class DatasetTests:
|
datamaestro/version.py
CHANGED
|
@@ -9,7 +9,7 @@ datamaestro/settings.py,sha256=NuUbe_C31GDlzdio2ryz7tPzuo4hsmmdCM5Cyuhqbzs,1294
|
|
|
9
9
|
datamaestro/sphinx.py,sha256=WWXB63gd0ZgEwFr_YwO2Hmuly5OoiFlu9mDvJSHFYuY,6966
|
|
10
10
|
datamaestro/utils.py,sha256=JUrvtVYnjNKRo0_ZypmXSQ9R4uOyImDjW1GZ14MYzKM,6547
|
|
11
11
|
datamaestro/v2.md,sha256=pLCxQUdfVkd4CM9Ie0ZxCnxUntqoA7k_0m7x1etcr7Y,9801
|
|
12
|
-
datamaestro/version.py,sha256=
|
|
12
|
+
datamaestro/version.py,sha256=qbNPC0YY-TxmiwHVzSS5pF2Eykd0T9k-YiM7b0ut3i4,171
|
|
13
13
|
datamaestro/annotations/__init__.py,sha256=jLprrxSBa5QIqc--vqycEcxU4CR9WjVNRaqR5lH0EuE,39
|
|
14
14
|
datamaestro/annotations/agreement.py,sha256=xEH0ddZxdJ_oG_150PoOa-WjY_OaeQja3FzMzY5IB6k,955
|
|
15
15
|
datamaestro/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -36,14 +36,14 @@ datamaestro/stream/compress.py,sha256=0ViFGpJc6pdvZGUNERE-3XV8jAOTSvhJurb2t0NW2e
|
|
|
36
36
|
datamaestro/stream/lines.py,sha256=DhptjIqhhAJ1tu3e-uoOepHHNALSXS8qz8ASUAyaSkM,2074
|
|
37
37
|
datamaestro/templates/dataset.py,sha256=5065rTMAIl4gtzQ96GFiV1_46tY08miIx3WspTP8yGA,346
|
|
38
38
|
datamaestro/test/__init__.py,sha256=9xXqLvUgiIn74AY6k8qyYX7rq6hWz7dOJFBrUgwuX88,61
|
|
39
|
-
datamaestro/test/checks.py,sha256=
|
|
39
|
+
datamaestro/test/checks.py,sha256=yoL7SjasWPD95ieyTcEYeBffZkTwohJZpj1aWgU2wWA,2629
|
|
40
40
|
datamaestro/test/conftest.py,sha256=z8rF0OIKVuCgIYJ-4fQxQL8KhgIfg_4kfkIZNETfNJ0,793
|
|
41
41
|
datamaestro/test/test_annotations.py,sha256=XUjDWb3FJimSD91wcItJ0lLwTBmvN4wVu_EgTKSvV2c,278
|
|
42
42
|
datamaestro/test/test_download_handlers.py,sha256=-Gofr89zqIyeI8C4rZqfYR3JfiZVImdcSz9s6q361zQ,641
|
|
43
43
|
datamaestro/test/test_record.py,sha256=hNZ3uo2i5FZ0VsOHRwvLO1Z6Zce92PdipAF65UptPB8,1156
|
|
44
44
|
datamaestro/test/test_resource.py,sha256=QbwmZkGv_8O_jI0CKcatJSUs3IKbMfBrk0T_aTC1KcE,51124
|
|
45
|
-
datamaestro-1.7.
|
|
46
|
-
datamaestro-1.7.
|
|
47
|
-
datamaestro-1.7.
|
|
48
|
-
datamaestro-1.7.
|
|
49
|
-
datamaestro-1.7.
|
|
45
|
+
datamaestro-1.7.3.dist-info/METADATA,sha256=9EfCsWxYzjfZgcNi2_1dNoD8s-MijuQVdeK_7L6TEZY,7433
|
|
46
|
+
datamaestro-1.7.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
47
|
+
datamaestro-1.7.3.dist-info/entry_points.txt,sha256=8qMhwSRvFG2iBqtJYVD22Zd4s4c3YkODtcp0Ajw1knw,133
|
|
48
|
+
datamaestro-1.7.3.dist-info/licenses/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
|
|
49
|
+
datamaestro-1.7.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|