diffmanifests 3.2.4__tar.gz → 3.3.0__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.

Potentially problematic release.


This version of diffmanifests might be problematic. Click here for more details.

Files changed (39) hide show
  1. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/MANIFEST.in +2 -0
  2. diffmanifests-3.3.0/PKG-INFO +175 -0
  3. diffmanifests-3.3.0/README.md +135 -0
  4. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/cmd/version.py +1 -1
  5. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/proto/proto.py +1 -0
  6. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/querier/querier.py +4 -3
  7. diffmanifests-3.3.0/diffmanifests.egg-info/PKG-INFO +175 -0
  8. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests.egg-info/SOURCES.txt +1 -0
  9. diffmanifests-3.3.0/diffmanifests.egg-info/requires.txt +12 -0
  10. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/setup.py +21 -3
  11. diffmanifests-3.2.4/PKG-INFO +0 -99
  12. diffmanifests-3.2.4/README.md +0 -83
  13. diffmanifests-3.2.4/diffmanifests.egg-info/PKG-INFO +0 -99
  14. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/LICENSE +0 -0
  15. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diff.py +0 -0
  16. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/__init__.py +0 -0
  17. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/cmd/__init__.py +0 -0
  18. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/cmd/argument.py +0 -0
  19. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/cmd/banner.py +0 -0
  20. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/config/config.json +0 -0
  21. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/differ/__init__.py +0 -0
  22. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/differ/differ.py +0 -0
  23. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/gerrit/__init__.py +0 -0
  24. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/gerrit/gerrit.py +0 -0
  25. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/gitiles/__init__.py +0 -0
  26. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/gitiles/gitiles.py +0 -0
  27. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/logger/__init__.py +0 -0
  28. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/logger/logger.py +0 -0
  29. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/main.py +0 -0
  30. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/printer/__init__.py +0 -0
  31. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/printer/printer.py +0 -0
  32. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/proto/__init__.py +0 -0
  33. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests/querier/__init__.py +0 -0
  34. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests.egg-info/dependency_links.txt +0 -0
  35. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests.egg-info/entry_points.txt +0 -0
  36. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests.egg-info/not-zip-safe +0 -0
  37. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/diffmanifests.egg-info/top_level.txt +0 -0
  38. /diffmanifests-3.2.4/diffmanifests.egg-info/requires.txt → /diffmanifests-3.3.0/requirements.txt +0 -0
  39. {diffmanifests-3.2.4 → diffmanifests-3.3.0}/setup.cfg +0 -0
@@ -1,3 +1,5 @@
1
1
  include diffmanifests/config/*.json
2
2
  include LICENSE
3
+ include README.md
3
4
  include diff.py
5
+ include requirements.txt
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: diffmanifests
3
+ Version: 3.3.0
4
+ Summary: Diff Manifests via Gitiles API
5
+ Home-page: https://github.com/craftslab/diffmanifests
6
+ Download-URL: https://github.com/craftslab/diffmanifests/archive/v3.3.0.tar.gz
7
+ Author: Jia Jia
8
+ Author-email: angersax@sina.com
9
+ License: Apache-2.0
10
+ Keywords: diff,manifests,gitiles,api
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: colorama
17
+ Requires-Dist: requests
18
+ Requires-Dist: xmltodict
19
+ Provides-Extra: dev
20
+ Requires-Dist: coverage; extra == "dev"
21
+ Requires-Dist: coveralls; extra == "dev"
22
+ Requires-Dist: openpyxl; extra == "dev"
23
+ Requires-Dist: pytest; extra == "dev"
24
+ Requires-Dist: setuptools; extra == "dev"
25
+ Requires-Dist: twine; extra == "dev"
26
+ Requires-Dist: wheel; extra == "dev"
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: download-url
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: provides-extra
38
+ Dynamic: requires-dist
39
+ Dynamic: summary
40
+
41
+ # diffmanifests
42
+
43
+ [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
44
+ [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
45
+ [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
46
+
47
+
48
+
49
+ *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
50
+
51
+
52
+
53
+ ## Requirement
54
+
55
+ - Python >= 3.7
56
+
57
+
58
+
59
+ ## Install
60
+
61
+ ```bash
62
+ pip install diffmanifests
63
+ ```
64
+
65
+
66
+
67
+ ## Update
68
+
69
+ ```bash
70
+ pip install diffmanifests --upgrade
71
+ ```
72
+
73
+
74
+
75
+ ## Run
76
+
77
+ ```bash
78
+ diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
79
+ ```
80
+
81
+
82
+
83
+ ## Settings
84
+
85
+ *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
86
+
87
+ An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
88
+
89
+ ```json
90
+ {
91
+ "gerrit": {
92
+ "pass": "pass",
93
+ "url": "http://localhost:80",
94
+ "user": "user"
95
+ },
96
+ "gitiles": {
97
+ "pass": "pass",
98
+ "retry": 1,
99
+ "timeout": -1,
100
+ "url": "http://localhost:80",
101
+ "user": "user"
102
+ }
103
+ }
104
+ ```
105
+
106
+
107
+
108
+ ## Features
109
+
110
+ *Diff Manifests* supports the following capabilities:
111
+
112
+ ### 📊 Manifest Comparison
113
+
114
+ Compare commit 2 with commit 1 in diagram A/B/C to identify changes between manifest versions.
115
+
116
+ ![branch](branch.png)
117
+
118
+
119
+
120
+ ### 🏷️ Hashtags Support
121
+
122
+ The tool includes comprehensive support for querying changes with hashtags from the Gerrit REST API v3.12.1. This feature enhances change tracking and categorization.
123
+
124
+ **Key Benefits:**
125
+
126
+ - Automatic hashtag extraction from Gerrit changes
127
+ - Enhanced change categorization and filtering
128
+ - Better integration with Gerrit workflows
129
+ - Graceful fallback for changes without hashtags
130
+
131
+ **Output Structure:**
132
+
133
+ Each commit in the output JSON now includes a `hashtags` field containing an array of hashtags:
134
+
135
+ ```json
136
+ {
137
+ "author": "Developer Name <dev@example.com>",
138
+ "branch": "master",
139
+ "change": "https://gerrit.example.com/c/12345",
140
+ "commit": "abc123def456789...",
141
+ "committer": "Developer Name <dev@example.com>",
142
+ "date": "2025-08-20 12:00:00 +0000",
143
+ "diff": "ADD COMMIT",
144
+ "hashtags": ["security", "cve", "bugfix"],
145
+ "message": "Fix security vulnerability CVE-2025-1234",
146
+ "repo": "platform/frameworks/base",
147
+ "topic": "security-fix",
148
+ "url": "https://android.googlesource.com/platform/frameworks/base/+/abc123def456789"
149
+ }
150
+ ```
151
+
152
+ **Examples of hashtag usage:**
153
+
154
+ - `["feature", "ui", "enhancement"]` - New UI features
155
+ - `["bugfix", "critical"]` - Critical bug fixes
156
+ - `["security", "cve"]` - Security-related changes
157
+ - `[]` - Changes without hashtags (empty array)
158
+
159
+ **Technical Details:**
160
+
161
+ - Hashtags are retrieved using the [Gerrit REST API ChangeInfo entity](https://gerrit-documentation.storage.googleapis.com/Documentation/3.12.1/rest-api-changes.html#change-info)
162
+ - Automatic error handling ensures stable operation even when hashtags are unavailable
163
+ - Backward compatibility maintained for existing workflows
164
+
165
+
166
+
167
+ ## License
168
+
169
+ Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
170
+
171
+
172
+
173
+ ## Reference
174
+
175
+ [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
@@ -0,0 +1,135 @@
1
+ # diffmanifests
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
4
+ [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
5
+ [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
6
+
7
+
8
+
9
+ *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
10
+
11
+
12
+
13
+ ## Requirement
14
+
15
+ - Python >= 3.7
16
+
17
+
18
+
19
+ ## Install
20
+
21
+ ```bash
22
+ pip install diffmanifests
23
+ ```
24
+
25
+
26
+
27
+ ## Update
28
+
29
+ ```bash
30
+ pip install diffmanifests --upgrade
31
+ ```
32
+
33
+
34
+
35
+ ## Run
36
+
37
+ ```bash
38
+ diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
39
+ ```
40
+
41
+
42
+
43
+ ## Settings
44
+
45
+ *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
46
+
47
+ An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
48
+
49
+ ```json
50
+ {
51
+ "gerrit": {
52
+ "pass": "pass",
53
+ "url": "http://localhost:80",
54
+ "user": "user"
55
+ },
56
+ "gitiles": {
57
+ "pass": "pass",
58
+ "retry": 1,
59
+ "timeout": -1,
60
+ "url": "http://localhost:80",
61
+ "user": "user"
62
+ }
63
+ }
64
+ ```
65
+
66
+
67
+
68
+ ## Features
69
+
70
+ *Diff Manifests* supports the following capabilities:
71
+
72
+ ### 📊 Manifest Comparison
73
+
74
+ Compare commit 2 with commit 1 in diagram A/B/C to identify changes between manifest versions.
75
+
76
+ ![branch](branch.png)
77
+
78
+
79
+
80
+ ### 🏷️ Hashtags Support
81
+
82
+ The tool includes comprehensive support for querying changes with hashtags from the Gerrit REST API v3.12.1. This feature enhances change tracking and categorization.
83
+
84
+ **Key Benefits:**
85
+
86
+ - Automatic hashtag extraction from Gerrit changes
87
+ - Enhanced change categorization and filtering
88
+ - Better integration with Gerrit workflows
89
+ - Graceful fallback for changes without hashtags
90
+
91
+ **Output Structure:**
92
+
93
+ Each commit in the output JSON now includes a `hashtags` field containing an array of hashtags:
94
+
95
+ ```json
96
+ {
97
+ "author": "Developer Name <dev@example.com>",
98
+ "branch": "master",
99
+ "change": "https://gerrit.example.com/c/12345",
100
+ "commit": "abc123def456789...",
101
+ "committer": "Developer Name <dev@example.com>",
102
+ "date": "2025-08-20 12:00:00 +0000",
103
+ "diff": "ADD COMMIT",
104
+ "hashtags": ["security", "cve", "bugfix"],
105
+ "message": "Fix security vulnerability CVE-2025-1234",
106
+ "repo": "platform/frameworks/base",
107
+ "topic": "security-fix",
108
+ "url": "https://android.googlesource.com/platform/frameworks/base/+/abc123def456789"
109
+ }
110
+ ```
111
+
112
+ **Examples of hashtag usage:**
113
+
114
+ - `["feature", "ui", "enhancement"]` - New UI features
115
+ - `["bugfix", "critical"]` - Critical bug fixes
116
+ - `["security", "cve"]` - Security-related changes
117
+ - `[]` - Changes without hashtags (empty array)
118
+
119
+ **Technical Details:**
120
+
121
+ - Hashtags are retrieved using the [Gerrit REST API ChangeInfo entity](https://gerrit-documentation.storage.googleapis.com/Documentation/3.12.1/rest-api-changes.html#change-info)
122
+ - Automatic error handling ensures stable operation even when hashtags are unavailable
123
+ - Backward compatibility maintained for existing workflows
124
+
125
+
126
+
127
+ ## License
128
+
129
+ Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
130
+
131
+
132
+
133
+ ## Reference
134
+
135
+ [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
@@ -1,3 +1,3 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- VERSION = '3.2.4'
3
+ VERSION = '3.3.0'
@@ -49,6 +49,7 @@ class Commit:
49
49
  COMMITTER = 'committer'
50
50
  DATE = 'date'
51
51
  DIFF = 'diff'
52
+ HASHTAGS = 'hashtags'
52
53
  MESSAGE = 'message'
53
54
  REPO = 'repo'
54
55
  TOPIC = 'topic'
@@ -28,10 +28,10 @@ class Querier(object):
28
28
  def _query(commit):
29
29
  buf = self.gerrit.query('commit:' + commit, 0)
30
30
  if buf is None or len(buf) != 1:
31
- return '', ''
32
- return self.gerrit.url().replace('/a', '/') + str(buf[0]['_number']), buf[0].get('topic', '')
31
+ return '', '', []
32
+ return self.gerrit.url().replace('/a', '/') + str(buf[0]['_number']), buf[0].get('topic', ''), buf[0].get('hashtags', [])
33
33
 
34
- change, topic = _query(commit['commit'])
34
+ change, topic, hashtags = _query(commit['commit'])
35
35
  return [{
36
36
  Commit.AUTHOR: '%s <%s>' % (commit['author']['name'], commit['author']['email']),
37
37
  Commit.BRANCH: branch,
@@ -40,6 +40,7 @@ class Querier(object):
40
40
  Commit.COMMITTER: '%s <%s>' % (commit['committer']['name'], commit['committer']['email']),
41
41
  Commit.DATE: commit['author']['time'],
42
42
  Commit.DIFF: label.upper(),
43
+ Commit.HASHTAGS: hashtags,
43
44
  Commit.MESSAGE: commit['message'].strip(),
44
45
  Commit.REPO: repo,
45
46
  Commit.TOPIC: topic,
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: diffmanifests
3
+ Version: 3.3.0
4
+ Summary: Diff Manifests via Gitiles API
5
+ Home-page: https://github.com/craftslab/diffmanifests
6
+ Download-URL: https://github.com/craftslab/diffmanifests/archive/v3.3.0.tar.gz
7
+ Author: Jia Jia
8
+ Author-email: angersax@sina.com
9
+ License: Apache-2.0
10
+ Keywords: diff,manifests,gitiles,api
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: colorama
17
+ Requires-Dist: requests
18
+ Requires-Dist: xmltodict
19
+ Provides-Extra: dev
20
+ Requires-Dist: coverage; extra == "dev"
21
+ Requires-Dist: coveralls; extra == "dev"
22
+ Requires-Dist: openpyxl; extra == "dev"
23
+ Requires-Dist: pytest; extra == "dev"
24
+ Requires-Dist: setuptools; extra == "dev"
25
+ Requires-Dist: twine; extra == "dev"
26
+ Requires-Dist: wheel; extra == "dev"
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: download-url
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: provides-extra
38
+ Dynamic: requires-dist
39
+ Dynamic: summary
40
+
41
+ # diffmanifests
42
+
43
+ [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
44
+ [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
45
+ [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
46
+
47
+
48
+
49
+ *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
50
+
51
+
52
+
53
+ ## Requirement
54
+
55
+ - Python >= 3.7
56
+
57
+
58
+
59
+ ## Install
60
+
61
+ ```bash
62
+ pip install diffmanifests
63
+ ```
64
+
65
+
66
+
67
+ ## Update
68
+
69
+ ```bash
70
+ pip install diffmanifests --upgrade
71
+ ```
72
+
73
+
74
+
75
+ ## Run
76
+
77
+ ```bash
78
+ diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
79
+ ```
80
+
81
+
82
+
83
+ ## Settings
84
+
85
+ *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
86
+
87
+ An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
88
+
89
+ ```json
90
+ {
91
+ "gerrit": {
92
+ "pass": "pass",
93
+ "url": "http://localhost:80",
94
+ "user": "user"
95
+ },
96
+ "gitiles": {
97
+ "pass": "pass",
98
+ "retry": 1,
99
+ "timeout": -1,
100
+ "url": "http://localhost:80",
101
+ "user": "user"
102
+ }
103
+ }
104
+ ```
105
+
106
+
107
+
108
+ ## Features
109
+
110
+ *Diff Manifests* supports the following capabilities:
111
+
112
+ ### 📊 Manifest Comparison
113
+
114
+ Compare commit 2 with commit 1 in diagram A/B/C to identify changes between manifest versions.
115
+
116
+ ![branch](branch.png)
117
+
118
+
119
+
120
+ ### 🏷️ Hashtags Support
121
+
122
+ The tool includes comprehensive support for querying changes with hashtags from the Gerrit REST API v3.12.1. This feature enhances change tracking and categorization.
123
+
124
+ **Key Benefits:**
125
+
126
+ - Automatic hashtag extraction from Gerrit changes
127
+ - Enhanced change categorization and filtering
128
+ - Better integration with Gerrit workflows
129
+ - Graceful fallback for changes without hashtags
130
+
131
+ **Output Structure:**
132
+
133
+ Each commit in the output JSON now includes a `hashtags` field containing an array of hashtags:
134
+
135
+ ```json
136
+ {
137
+ "author": "Developer Name <dev@example.com>",
138
+ "branch": "master",
139
+ "change": "https://gerrit.example.com/c/12345",
140
+ "commit": "abc123def456789...",
141
+ "committer": "Developer Name <dev@example.com>",
142
+ "date": "2025-08-20 12:00:00 +0000",
143
+ "diff": "ADD COMMIT",
144
+ "hashtags": ["security", "cve", "bugfix"],
145
+ "message": "Fix security vulnerability CVE-2025-1234",
146
+ "repo": "platform/frameworks/base",
147
+ "topic": "security-fix",
148
+ "url": "https://android.googlesource.com/platform/frameworks/base/+/abc123def456789"
149
+ }
150
+ ```
151
+
152
+ **Examples of hashtag usage:**
153
+
154
+ - `["feature", "ui", "enhancement"]` - New UI features
155
+ - `["bugfix", "critical"]` - Critical bug fixes
156
+ - `["security", "cve"]` - Security-related changes
157
+ - `[]` - Changes without hashtags (empty array)
158
+
159
+ **Technical Details:**
160
+
161
+ - Hashtags are retrieved using the [Gerrit REST API ChangeInfo entity](https://gerrit-documentation.storage.googleapis.com/Documentation/3.12.1/rest-api-changes.html#change-info)
162
+ - Automatic error handling ensures stable operation even when hashtags are unavailable
163
+ - Backward compatibility maintained for existing workflows
164
+
165
+
166
+
167
+ ## License
168
+
169
+ Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
170
+
171
+
172
+
173
+ ## Reference
174
+
175
+ [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
@@ -2,6 +2,7 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
4
  diff.py
5
+ requirements.txt
5
6
  setup.cfg
6
7
  setup.py
7
8
  diffmanifests/__init__.py
@@ -0,0 +1,12 @@
1
+ colorama
2
+ requests
3
+ xmltodict
4
+
5
+ [dev]
6
+ coverage
7
+ coveralls
8
+ openpyxl
9
+ pytest
10
+ setuptools
11
+ twine
12
+ wheel
@@ -6,11 +6,26 @@ import setuptools
6
6
  from diffmanifests.cmd.version import VERSION
7
7
 
8
8
 
9
- with open('README.md', 'r') as f:
9
+ with open('README.md', 'r', encoding='utf-8') as f:
10
10
  long_description = f.read()
11
11
 
12
- with open('requirements.txt') as f:
13
- requirements = [l for l in f.read().splitlines() if l]
12
+ # Define runtime dependencies directly
13
+ requirements = [
14
+ 'colorama',
15
+ 'requests',
16
+ 'xmltodict',
17
+ ]
18
+
19
+ # Development dependencies (not needed for installation)
20
+ dev_requirements = [
21
+ 'coverage',
22
+ 'coveralls',
23
+ 'openpyxl',
24
+ 'pytest',
25
+ 'setuptools',
26
+ 'twine',
27
+ 'wheel',
28
+ ]
14
29
 
15
30
  setuptools.setup(
16
31
  author='Jia Jia',
@@ -25,6 +40,9 @@ setuptools.setup(
25
40
  entry_points={'console_scripts': ['diffmanifests=diffmanifests.main:main']},
26
41
  include_package_data=True,
27
42
  install_requires=requirements,
43
+ extras_require={
44
+ 'dev': dev_requirements,
45
+ },
28
46
  keywords=['diff', 'manifests', 'gitiles', 'api'],
29
47
  license='Apache-2.0',
30
48
  long_description=long_description,
@@ -1,99 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: diffmanifests
3
- Version: 3.2.4
4
- Summary: Diff Manifests via Gitiles API
5
- Home-page: https://github.com/craftslab/diffmanifests
6
- Download-URL: https://github.com/craftslab/diffmanifests/archive/v3.2.4.tar.gz
7
- Author: Jia Jia
8
- Author-email: angersax@sina.com
9
- License: Apache-2.0
10
- Keywords: diff,manifests,gitiles,api
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Operating System :: OS Independent
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
-
17
- # diffmanifests
18
-
19
- [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
20
- [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
21
- [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
22
-
23
-
24
-
25
- *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
26
-
27
-
28
- ## Requirement
29
-
30
- - Python >= 3.7
31
-
32
-
33
-
34
- ## Install
35
-
36
- ```bash
37
- pip install diffmanifests
38
- ```
39
-
40
-
41
-
42
- ## Update
43
-
44
- ```bash
45
- pip install diffmanifests --upgrade
46
- ```
47
-
48
-
49
-
50
- ## Run
51
-
52
- ```bash
53
- diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
54
- ```
55
-
56
-
57
-
58
- ## Settings
59
-
60
- *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
61
-
62
- An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
63
-
64
- ```json
65
- {
66
- "gerrit": {
67
- "pass": "pass",
68
- "url": "http://localhost:80",
69
- "user": "user"
70
- },
71
- "gitiles": {
72
- "pass": "pass",
73
- "retry": 1,
74
- "timeout": -1,
75
- "url": "http://localhost:80",
76
- "user": "user"
77
- }
78
- }
79
- ```
80
-
81
-
82
-
83
- ## Feature
84
-
85
- *Diff Manifests* supports to compare commit 2 with commit 1 in diagram A/B/C.
86
-
87
- ![branch](branch.png)
88
-
89
-
90
-
91
- ## License
92
-
93
- Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
94
-
95
-
96
-
97
- ## Reference
98
-
99
- [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
@@ -1,83 +0,0 @@
1
- # diffmanifests
2
-
3
- [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
4
- [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
5
- [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
6
-
7
-
8
-
9
- *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
10
-
11
-
12
- ## Requirement
13
-
14
- - Python >= 3.7
15
-
16
-
17
-
18
- ## Install
19
-
20
- ```bash
21
- pip install diffmanifests
22
- ```
23
-
24
-
25
-
26
- ## Update
27
-
28
- ```bash
29
- pip install diffmanifests --upgrade
30
- ```
31
-
32
-
33
-
34
- ## Run
35
-
36
- ```bash
37
- diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
38
- ```
39
-
40
-
41
-
42
- ## Settings
43
-
44
- *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
45
-
46
- An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
47
-
48
- ```json
49
- {
50
- "gerrit": {
51
- "pass": "pass",
52
- "url": "http://localhost:80",
53
- "user": "user"
54
- },
55
- "gitiles": {
56
- "pass": "pass",
57
- "retry": 1,
58
- "timeout": -1,
59
- "url": "http://localhost:80",
60
- "user": "user"
61
- }
62
- }
63
- ```
64
-
65
-
66
-
67
- ## Feature
68
-
69
- *Diff Manifests* supports to compare commit 2 with commit 1 in diagram A/B/C.
70
-
71
- ![branch](branch.png)
72
-
73
-
74
-
75
- ## License
76
-
77
- Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
78
-
79
-
80
-
81
- ## Reference
82
-
83
- [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
@@ -1,99 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: diffmanifests
3
- Version: 3.2.4
4
- Summary: Diff Manifests via Gitiles API
5
- Home-page: https://github.com/craftslab/diffmanifests
6
- Download-URL: https://github.com/craftslab/diffmanifests/archive/v3.2.4.tar.gz
7
- Author: Jia Jia
8
- Author-email: angersax@sina.com
9
- License: Apache-2.0
10
- Keywords: diff,manifests,gitiles,api
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Operating System :: OS Independent
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
-
17
- # diffmanifests
18
-
19
- [![PyPI](https://img.shields.io/pypi/v/diffmanifests.svg?color=brightgreen)](https://pypi.org/project/diffmanifests/)
20
- [![Coverage Status](https://coveralls.io/repos/github/craftslab/diffmanifests/badge.svg?branch=master)](https://coveralls.io/github/craftslab/diffmanifests?branch=master)
21
- [![License](https://img.shields.io/github/license/craftslab/diffmanifests.svg?color=brightgreen)](https://github.com/craftslab/diffmanifests/blob/master/LICENSE)
22
-
23
-
24
-
25
- *diffmanifests* is a tool used to see deeper differences between manifests via Gerrit & Gitiles API.
26
-
27
-
28
- ## Requirement
29
-
30
- - Python >= 3.7
31
-
32
-
33
-
34
- ## Install
35
-
36
- ```bash
37
- pip install diffmanifests
38
- ```
39
-
40
-
41
-
42
- ## Update
43
-
44
- ```bash
45
- pip install diffmanifests --upgrade
46
- ```
47
-
48
-
49
-
50
- ## Run
51
-
52
- ```bash
53
- diffmanifests --config-file config.json --manifest1-file manifest1.xml --manifest2-file manifest2.xml --output-file output.json
54
- ```
55
-
56
-
57
-
58
- ## Settings
59
-
60
- *Diff Manifests* parameters can be set in the directory [config](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config).
61
-
62
- An example of configuration in [config.json](https://github.com/craftslab/diffmanifests/blob/master/diffmanifests/config/config.json):
63
-
64
- ```json
65
- {
66
- "gerrit": {
67
- "pass": "pass",
68
- "url": "http://localhost:80",
69
- "user": "user"
70
- },
71
- "gitiles": {
72
- "pass": "pass",
73
- "retry": 1,
74
- "timeout": -1,
75
- "url": "http://localhost:80",
76
- "user": "user"
77
- }
78
- }
79
- ```
80
-
81
-
82
-
83
- ## Feature
84
-
85
- *Diff Manifests* supports to compare commit 2 with commit 1 in diagram A/B/C.
86
-
87
- ![branch](branch.png)
88
-
89
-
90
-
91
- ## License
92
-
93
- Project License can be found [here](https://github.com/craftslab/diffmanifests/blob/master/LICENSE).
94
-
95
-
96
-
97
- ## Reference
98
-
99
- [git-repo/subcmds/diffmanifests](https://gerrit.googlesource.com/git-repo/+/master/subcmds/diffmanifests.py)
File without changes
File without changes
File without changes