ethspecify 0.3.3__tar.gz → 0.3.4__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.
- {ethspecify-0.3.3 → ethspecify-0.3.4}/PKG-INFO +1 -1
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify/core.py +6 -32
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/PKG-INFO +1 -1
- {ethspecify-0.3.3 → ethspecify-0.3.4}/setup.py +1 -1
- {ethspecify-0.3.3 → ethspecify-0.3.4}/LICENSE +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/README.md +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify/__init__.py +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify/cli.py +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/SOURCES.txt +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/dependency_links.txt +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/entry_points.txt +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/requires.txt +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/ethspecify.egg-info/top_level.txt +0 -0
- {ethspecify-0.3.3 → ethspecify-0.3.4}/setup.cfg +0 -0
|
@@ -1892,28 +1892,15 @@ def add_missing_spec_items_to_yaml_files(project_dir, config, specrefs_files):
|
|
|
1892
1892
|
# Calculate hash of current version
|
|
1893
1893
|
hash_value = hashlib.sha256(spec_content.encode('utf-8')).hexdigest()[:8]
|
|
1894
1894
|
|
|
1895
|
-
#
|
|
1896
|
-
|
|
1897
|
-
# Get previous version for diff
|
|
1898
|
-
prev_fork, _, prev_spec_content = versions[idx - 1]
|
|
1899
|
-
|
|
1900
|
-
# Generate diff
|
|
1901
|
-
diff_content = diff(prev_fork, strip_comments(prev_spec_content), fork, strip_comments(spec_content))
|
|
1902
|
-
|
|
1903
|
-
# Build spec tag with style="diff"
|
|
1904
|
-
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" style="diff" hash="{hash_value}">'
|
|
1905
|
-
content = diff_content
|
|
1906
|
-
else:
|
|
1907
|
-
# Build spec tag without style="diff"
|
|
1908
|
-
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" hash="{hash_value}">'
|
|
1909
|
-
content = spec_content
|
|
1895
|
+
# Build spec tag
|
|
1896
|
+
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" hash="{hash_value}">'
|
|
1910
1897
|
|
|
1911
1898
|
# Create entry
|
|
1912
1899
|
entry_name = f'{item_name}#{fork}' if use_fork_suffix else item_name
|
|
1913
1900
|
entry = {
|
|
1914
1901
|
'name': entry_name,
|
|
1915
1902
|
'sources': [],
|
|
1916
|
-
'spec': f'{spec_tag}\n{
|
|
1903
|
+
'spec': f'{spec_tag}\n{spec_content}\n</spec>'
|
|
1917
1904
|
}
|
|
1918
1905
|
new_entries.append(entry)
|
|
1919
1906
|
|
|
@@ -2023,28 +2010,15 @@ def generate_specref_files(output_dir, version="nightly", preset="mainnet"):
|
|
|
2023
2010
|
# Calculate hash of current version
|
|
2024
2011
|
hash_value = hashlib.sha256(spec_content.encode('utf-8')).hexdigest()[:8]
|
|
2025
2012
|
|
|
2026
|
-
#
|
|
2027
|
-
|
|
2028
|
-
# Get previous version for diff
|
|
2029
|
-
prev_fork, _, prev_spec_content = versions[idx - 1]
|
|
2030
|
-
|
|
2031
|
-
# Generate diff
|
|
2032
|
-
diff_content = diff(prev_fork, strip_comments(prev_spec_content), fork, strip_comments(spec_content))
|
|
2033
|
-
|
|
2034
|
-
# Build spec tag with style="diff"
|
|
2035
|
-
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" style="diff" hash="{hash_value}">'
|
|
2036
|
-
content = diff_content
|
|
2037
|
-
else:
|
|
2038
|
-
# Build spec tag without style="diff"
|
|
2039
|
-
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" hash="{hash_value}">'
|
|
2040
|
-
content = spec_content
|
|
2013
|
+
# Build spec tag
|
|
2014
|
+
spec_tag = f'<spec {spec_attr}="{item_name}" fork="{fork}" hash="{hash_value}">'
|
|
2041
2015
|
|
|
2042
2016
|
# Create entry
|
|
2043
2017
|
entry_name = f'{item_name}#{fork}' if use_fork_suffix else item_name
|
|
2044
2018
|
entry = {
|
|
2045
2019
|
'name': entry_name,
|
|
2046
2020
|
'sources': [],
|
|
2047
|
-
'spec': f'{spec_tag}\n{
|
|
2021
|
+
'spec': f'{spec_tag}\n{spec_content}\n</spec>'
|
|
2048
2022
|
}
|
|
2049
2023
|
entries.append(entry)
|
|
2050
2024
|
|
|
@@ -8,7 +8,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8")
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="ethspecify",
|
|
11
|
-
version="0.3.
|
|
11
|
+
version="0.3.4",
|
|
12
12
|
description="A utility for processing Ethereum specification tags.",
|
|
13
13
|
long_description=long_description,
|
|
14
14
|
long_description_content_type="text/markdown",
|
|
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
|