azure-cli-diff-tool 0.0.6__tar.gz → 0.0.8__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.
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/PKG-INFO +10 -2
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/__init__.py +1 -1
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/meta_change_detect.py +0 -3
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/PKG-INFO +10 -2
- azure_cli_diff_tool-0.0.8/azure_cli_diff_tool.egg-info/requires.txt +2 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/setup.py +1 -1
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/tests/test_break_change.py +12 -1
- azure-cli-diff-tool-0.0.6/azure_cli_diff_tool.egg-info/requires.txt +0 -2
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/README.rst +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/_const.py +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/data/blob_config.ini +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/data/meta_change_whitelist.txt +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/meta_change.py +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/utils.py +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/SOURCES.txt +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/dependency_links.txt +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/top_level.txt +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/setup.cfg +0 -0
- {azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/tests/__init__.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: azure-cli-diff-tool
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: A tool for cli metadata management
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
Author-email: azpycli@microsoft.com
|
|
7
7
|
License: MIT
|
|
8
|
-
Requires-Dist: deepdiff
|
|
8
|
+
Requires-Dist: deepdiff==6.3.0
|
|
9
9
|
Requires-Dist: requests
|
|
10
10
|
|
|
11
11
|
Microsoft Azure CLI Diff Tools (azure-cli-diff-tool)
|
|
@@ -98,6 +98,14 @@ License
|
|
|
98
98
|
|
|
99
99
|
Release History
|
|
100
100
|
===============
|
|
101
|
+
0.0.8
|
|
102
|
+
++++++
|
|
103
|
+
* Set `deepDiff` un-breaking version
|
|
104
|
+
|
|
105
|
+
0.0.7
|
|
106
|
+
++++++
|
|
107
|
+
* Remove unnecessary debug logs for meta comparison
|
|
108
|
+
|
|
101
109
|
0.0.6
|
|
102
110
|
++++++
|
|
103
111
|
* Add diff support for deprecate_info in subgroup, cmd, parameters and options
|
|
@@ -18,7 +18,7 @@ from .utils import get_blob_config, load_blob_config_file, get_target_version_mo
|
|
|
18
18
|
extract_module_name_from_meta_file, export_meta_changes_to_csv, export_meta_changes_to_json, \
|
|
19
19
|
export_meta_changes_to_dict, expand_deprecate_obj
|
|
20
20
|
|
|
21
|
-
__VERSION__ = '0.0.
|
|
21
|
+
__VERSION__ = '0.0.8'
|
|
22
22
|
|
|
23
23
|
logger = logging.getLogger(__name__)
|
|
24
24
|
|
{azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/meta_change_detect.py
RENAMED
|
@@ -386,9 +386,6 @@ class MetaChangeDetect:
|
|
|
386
386
|
self.diff_objs = new_diff_objs
|
|
387
387
|
|
|
388
388
|
def check_deep_diffs(self):
|
|
389
|
-
for diff_type, diff_key in self.deep_diff.items():
|
|
390
|
-
for it in diff_key:
|
|
391
|
-
print(diff_type, ": ", it)
|
|
392
389
|
self.check_dict_item_remove()
|
|
393
390
|
self.check_dict_item_add()
|
|
394
391
|
self.check_list_item_remove()
|
{azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/PKG-INFO
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: azure-cli-diff-tool
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: A tool for cli metadata management
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
Author-email: azpycli@microsoft.com
|
|
7
7
|
License: MIT
|
|
8
|
-
Requires-Dist: deepdiff
|
|
8
|
+
Requires-Dist: deepdiff==6.3.0
|
|
9
9
|
Requires-Dist: requests
|
|
10
10
|
|
|
11
11
|
Microsoft Azure CLI Diff Tools (azure-cli-diff-tool)
|
|
@@ -98,6 +98,14 @@ License
|
|
|
98
98
|
|
|
99
99
|
Release History
|
|
100
100
|
===============
|
|
101
|
+
0.0.8
|
|
102
|
+
++++++
|
|
103
|
+
* Set `deepDiff` un-breaking version
|
|
104
|
+
|
|
105
|
+
0.0.7
|
|
106
|
+
++++++
|
|
107
|
+
* Remove unnecessary debug logs for meta comparison
|
|
108
|
+
|
|
101
109
|
0.0.6
|
|
102
110
|
++++++
|
|
103
111
|
* Add diff support for deprecate_info in subgroup, cmd, parameters and options
|
|
@@ -30,7 +30,7 @@ setup(name="azure-cli-diff-tool",
|
|
|
30
30
|
author_email='azpycli@microsoft.com',
|
|
31
31
|
packages=find_packages(),
|
|
32
32
|
include_package_data=True,
|
|
33
|
-
install_requires=["deepdiff", "requests"],
|
|
33
|
+
install_requires=["deepdiff==6.3.0", "requests"],
|
|
34
34
|
package_data={
|
|
35
35
|
"azure_cli_diff_tool": ["data/*"]
|
|
36
36
|
}
|
|
@@ -9,7 +9,7 @@ import unittest
|
|
|
9
9
|
import os
|
|
10
10
|
from azure_cli_diff_tool import meta_diff
|
|
11
11
|
from azure_cli_diff_tool.utils import get_command_tree, extract_cmd_name, extract_cmd_property, extract_para_info, \
|
|
12
|
-
extract_subgroup_name, extract_subgroup_deprecate_property, expand_deprecate_obj
|
|
12
|
+
extract_subgroup_name, extract_subgroup_deprecate_property, expand_deprecate_obj, extract_subgroup_property
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
class MyTestCase(unittest.TestCase):
|
|
@@ -53,6 +53,17 @@ class MyTestCase(unittest.TestCase):
|
|
|
53
53
|
self.assertTrue(has_subgroup_deprecate_prop, "sub group deprecate info prop parse failed from diff dict key")
|
|
54
54
|
self.assertEqual(subgroup_deprecate_prop, "hide", "sub group deprecate prop extract failed")
|
|
55
55
|
|
|
56
|
+
def test_diff_dict_key_for_subgroups_prop(self):
|
|
57
|
+
test_key = "root['sub_groups']['acr']['deprecate_info_hide']"
|
|
58
|
+
has_cmd, _ = extract_cmd_name(test_key)
|
|
59
|
+
self.assertFalse(has_cmd, "cmd parse error from diff dict key")
|
|
60
|
+
has_subgroup, subgroup_name = extract_subgroup_name(test_key)
|
|
61
|
+
self.assertTrue(has_subgroup, "sub group parse failed from diff dict key")
|
|
62
|
+
self.assertEqual(subgroup_name, "acr", "sub group name extract failed")
|
|
63
|
+
has_subgroup_prop, subgroup_prop = extract_subgroup_property(test_key, subgroup_name)
|
|
64
|
+
self.assertTrue(has_subgroup_prop, "sub group prop parse failed from diff dict key")
|
|
65
|
+
self.assertEqual(subgroup_prop, "deprecate_info_hide", "sub group prop extract failed")
|
|
66
|
+
|
|
56
67
|
def test_diff_meta(self):
|
|
57
68
|
if not os.path.exists("./jsons/az_monitor_meta_before.json") \
|
|
58
69
|
or not os.path.exists("./jsons/az_monitor_meta_after.json"):
|
|
File without changes
|
|
File without changes
|
{azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool/data/blob_config.ini
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{azure-cli-diff-tool-0.0.6 → azure_cli_diff_tool-0.0.8}/azure_cli_diff_tool.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|