ethspecify 0.2.4__py3-none-any.whl → 0.2.5__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.
- ethspecify/core.py +6 -3
- {ethspecify-0.2.4.dist-info → ethspecify-0.2.5.dist-info}/METADATA +1 -1
- ethspecify-0.2.5.dist-info/RECORD +9 -0
- ethspecify-0.2.4.dist-info/RECORD +0 -9
- {ethspecify-0.2.4.dist-info → ethspecify-0.2.5.dist-info}/WHEEL +0 -0
- {ethspecify-0.2.4.dist-info → ethspecify-0.2.5.dist-info}/entry_points.txt +0 -0
- {ethspecify-0.2.4.dist-info → ethspecify-0.2.5.dist-info}/licenses/LICENSE +0 -0
- {ethspecify-0.2.4.dist-info → ethspecify-0.2.5.dist-info}/top_level.txt +0 -0
ethspecify/core.py
CHANGED
|
@@ -822,7 +822,7 @@ def extract_spec_tags_from_yaml(yaml_file, tag_type=None):
|
|
|
822
822
|
return tag_types_found, pairs
|
|
823
823
|
|
|
824
824
|
|
|
825
|
-
def check_coverage(yaml_file, tag_type, exceptions, preset="mainnet"):
|
|
825
|
+
def check_coverage(yaml_file, tag_type, exceptions, preset="mainnet", version="nightly"):
|
|
826
826
|
"""
|
|
827
827
|
Check that all spec items from ethspecify have corresponding tags in the YAML file.
|
|
828
828
|
Returns (found_count, total_count, missing_items)
|
|
@@ -839,7 +839,7 @@ def check_coverage(yaml_file, tag_type, exceptions, preset="mainnet"):
|
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
# Get expected items from ethspecify
|
|
842
|
-
history = get_spec_item_history(preset)
|
|
842
|
+
history = get_spec_item_history(preset, version)
|
|
843
843
|
expected_pairs = set()
|
|
844
844
|
|
|
845
845
|
history_key = history_key_map.get(tag_type, tag_type)
|
|
@@ -876,6 +876,9 @@ def run_checks(project_dir, config):
|
|
|
876
876
|
results = {}
|
|
877
877
|
overall_success = True
|
|
878
878
|
|
|
879
|
+
# Get version from config
|
|
880
|
+
version = config.get('version', 'nightly')
|
|
881
|
+
|
|
879
882
|
# Get specrefs config
|
|
880
883
|
specrefs_config = config.get('specrefs', {})
|
|
881
884
|
|
|
@@ -963,7 +966,7 @@ def run_checks(project_dir, config):
|
|
|
963
966
|
break
|
|
964
967
|
|
|
965
968
|
# Check coverage for this specific tag type
|
|
966
|
-
found_count, expected_count, missing_items = check_coverage(yaml_path, tag_type, section_exceptions, preset)
|
|
969
|
+
found_count, expected_count, missing_items = check_coverage(yaml_path, tag_type, section_exceptions, preset, version)
|
|
967
970
|
total_found += found_count
|
|
968
971
|
total_expected += expected_count
|
|
969
972
|
all_missing_items.extend(missing_items)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ethspecify/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
ethspecify/cli.py,sha256=SZ47-lgfeDHmzXCE-rx8ydM66N9NfNAA2GDxoC4DE7E,7641
|
|
3
|
+
ethspecify/core.py,sha256=07SRTRlkTOC_6bqX-bKd8liUfS7nKzl-iQhLtEJYp2o,37999
|
|
4
|
+
ethspecify-0.2.5.dist-info/licenses/LICENSE,sha256=Awxsr73mm9YMBVhBYnzeI7bNdRd-bH6RDtO5ItG0DaM,1071
|
|
5
|
+
ethspecify-0.2.5.dist-info/METADATA,sha256=C2EFGKJ0lArb4-BN3vIwlqi6TfWqj4EN3MZVCc0TU54,9212
|
|
6
|
+
ethspecify-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
ethspecify-0.2.5.dist-info/entry_points.txt,sha256=09viGkCg9J3h0c9BFRN-BKaJUEaIc4JyULNgBP5EL_g,51
|
|
8
|
+
ethspecify-0.2.5.dist-info/top_level.txt,sha256=0klaMvlVyOkXW09fwZTijJpdybITEp2c9zQKV5v30VM,11
|
|
9
|
+
ethspecify-0.2.5.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
ethspecify/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
ethspecify/cli.py,sha256=SZ47-lgfeDHmzXCE-rx8ydM66N9NfNAA2GDxoC4DE7E,7641
|
|
3
|
-
ethspecify/core.py,sha256=kOu8avxvFnDt8uRuIK4bbl0zjIciXk_8jvlE1cu23J0,37884
|
|
4
|
-
ethspecify-0.2.4.dist-info/licenses/LICENSE,sha256=Awxsr73mm9YMBVhBYnzeI7bNdRd-bH6RDtO5ItG0DaM,1071
|
|
5
|
-
ethspecify-0.2.4.dist-info/METADATA,sha256=DzopppX63lH3ykj6H1nq5mNbRV1mA1XkhAX8bzJhkVw,9212
|
|
6
|
-
ethspecify-0.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
ethspecify-0.2.4.dist-info/entry_points.txt,sha256=09viGkCg9J3h0c9BFRN-BKaJUEaIc4JyULNgBP5EL_g,51
|
|
8
|
-
ethspecify-0.2.4.dist-info/top_level.txt,sha256=0klaMvlVyOkXW09fwZTijJpdybITEp2c9zQKV5v30VM,11
|
|
9
|
-
ethspecify-0.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|