gitman 3.4.1b1__tar.gz → 3.4.1b2__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.
- {gitman-3.4.1b1 → gitman-3.4.1b2}/PKG-INFO +2 -6
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/cli.py +15 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/commands.py +6 -2
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/plugin.py +7 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_cli.py +15 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_plugin.py +5 -1
- {gitman-3.4.1b1 → gitman-3.4.1b2}/pyproject.toml +3 -3
- {gitman-3.4.1b1 → gitman-3.4.1b2}/LICENSE.md +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/README.md +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/__init__.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/__main__.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/common.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/decorators.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/exceptions.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/git.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/hook-gitman.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/models/__init__.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/models/config.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/models/group.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/models/source.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/settings.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/shell.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/__init__.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/conftest.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/gdm-custom.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/gdm-default.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/gitman.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/subdir/gitman.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/subdir/subsubdir/gitman.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/files/subdir/subsubdir/skip/subsubsubsubdir/gitman.yml +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_commands.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_common.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_git.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_models_config.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_models_group.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_models_source.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/test_shell.py +0 -0
- {gitman-3.4.1b1 → gitman-3.4.1b2}/gitman/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitman
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.1b2
|
|
4
4
|
Summary: A language-agnostic dependency manager using Git.
|
|
5
5
|
Home-page: https://pypi.org/project/gitman
|
|
6
6
|
License: MIT
|
|
@@ -20,11 +20,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
-
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
27
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
24
|
Classifier: Topic :: Software Development
|
|
29
25
|
Classifier: Topic :: Software Development :: Build Tools
|
|
30
26
|
Classifier: Topic :: Software Development :: Version Control
|
|
@@ -118,6 +118,13 @@ def main(args=None, function=None):
|
|
|
118
118
|
action="store_true",
|
|
119
119
|
dest="no_defaults",
|
|
120
120
|
)
|
|
121
|
+
sub.add_argument(
|
|
122
|
+
"-S",
|
|
123
|
+
"--no-scripts",
|
|
124
|
+
help="skip running scripts after installation",
|
|
125
|
+
action="store_true",
|
|
126
|
+
dest="no_scripts",
|
|
127
|
+
)
|
|
121
128
|
|
|
122
129
|
# Update parser
|
|
123
130
|
info = "update dependencies to the latest versions"
|
|
@@ -144,6 +151,13 @@ def main(args=None, function=None):
|
|
|
144
151
|
default=None,
|
|
145
152
|
help="disable recording of updated versions",
|
|
146
153
|
)
|
|
154
|
+
sub.add_argument(
|
|
155
|
+
"-S",
|
|
156
|
+
"--no-scripts",
|
|
157
|
+
help="skip running scripts after installation",
|
|
158
|
+
action="store_true",
|
|
159
|
+
dest="no_scripts",
|
|
160
|
+
)
|
|
147
161
|
|
|
148
162
|
# List parser
|
|
149
163
|
info = "display the current version of each dependency"
|
|
@@ -262,6 +276,7 @@ def _get_command(function, namespace):
|
|
|
262
276
|
force_interactive=namespace.force_interactive,
|
|
263
277
|
clean=namespace.clean,
|
|
264
278
|
skip_changes=namespace.skip_changes,
|
|
279
|
+
skip_scripts=namespace.no_scripts,
|
|
265
280
|
)
|
|
266
281
|
if namespace.command == "install":
|
|
267
282
|
kwargs.update(
|
|
@@ -62,6 +62,7 @@ def install(
|
|
|
62
62
|
clean=True,
|
|
63
63
|
skip_changes=False,
|
|
64
64
|
skip_default_group=False,
|
|
65
|
+
skip_scripts=False,
|
|
65
66
|
):
|
|
66
67
|
"""Install dependencies for a project.
|
|
67
68
|
|
|
@@ -80,6 +81,7 @@ def install(
|
|
|
80
81
|
should be skipped
|
|
81
82
|
- `skip_default_group`: indicates default_group should be skipped if
|
|
82
83
|
`*names` is empty
|
|
84
|
+
- `skip_scripts`: indicates scripts should be skipped
|
|
83
85
|
"""
|
|
84
86
|
log.info(
|
|
85
87
|
"%sInstalling dependencies: %s",
|
|
@@ -115,7 +117,7 @@ def install(
|
|
|
115
117
|
)
|
|
116
118
|
count += _count # type: ignore
|
|
117
119
|
|
|
118
|
-
if _count:
|
|
120
|
+
if _count and not skip_scripts:
|
|
119
121
|
label = "nested scripts" if index else "scripts"
|
|
120
122
|
common.show(f"Running {label}...", color="message", log=False)
|
|
121
123
|
common.newline()
|
|
@@ -136,6 +138,7 @@ def update(
|
|
|
136
138
|
lock=None, # pylint: disable=redefined-outer-name
|
|
137
139
|
skip_changes=False,
|
|
138
140
|
skip_default_group=False,
|
|
141
|
+
skip_scripts=False,
|
|
139
142
|
):
|
|
140
143
|
"""Update dependencies for a project.
|
|
141
144
|
|
|
@@ -155,6 +158,7 @@ def update(
|
|
|
155
158
|
should be skipped
|
|
156
159
|
- `skip_default_group`: indicates default_group should be skipped if
|
|
157
160
|
`*names` is empty
|
|
161
|
+
- `skip_scripts`: indicates scripts should be skipped
|
|
158
162
|
"""
|
|
159
163
|
log.info(
|
|
160
164
|
"%s dependencies%s: %s",
|
|
@@ -198,7 +202,7 @@ def update(
|
|
|
198
202
|
skip_changes=skip_changes or force_interactive,
|
|
199
203
|
)
|
|
200
204
|
|
|
201
|
-
if _count:
|
|
205
|
+
if _count and not skip_scripts:
|
|
202
206
|
label = "nested scripts" if index else "scripts"
|
|
203
207
|
common.show(f"Running {label}...", color="message", log=False)
|
|
204
208
|
common.newline()
|
|
@@ -62,6 +62,13 @@ def main(args=None):
|
|
|
62
62
|
action="store_true",
|
|
63
63
|
dest="no_defaults",
|
|
64
64
|
)
|
|
65
|
+
parser.add_argument(
|
|
66
|
+
"-S",
|
|
67
|
+
"--no-scripts",
|
|
68
|
+
help="skip running scripts after installation",
|
|
69
|
+
action="store_true",
|
|
70
|
+
dest="no_scripts",
|
|
71
|
+
)
|
|
65
72
|
|
|
66
73
|
# Update option
|
|
67
74
|
group.add_argument(
|
|
@@ -77,6 +77,7 @@ class TestInstall:
|
|
|
77
77
|
fetch=False,
|
|
78
78
|
clean=False,
|
|
79
79
|
skip_changes=False,
|
|
80
|
+
skip_scripts=False,
|
|
80
81
|
skip_default_group=False,
|
|
81
82
|
)
|
|
82
83
|
|
|
@@ -93,6 +94,7 @@ class TestInstall:
|
|
|
93
94
|
fetch=False,
|
|
94
95
|
clean=False,
|
|
95
96
|
skip_changes=False,
|
|
97
|
+
skip_scripts=False,
|
|
96
98
|
skip_default_group=False,
|
|
97
99
|
)
|
|
98
100
|
|
|
@@ -109,6 +111,7 @@ class TestInstall:
|
|
|
109
111
|
fetch=False,
|
|
110
112
|
clean=False,
|
|
111
113
|
skip_changes=False,
|
|
114
|
+
skip_scripts=False,
|
|
112
115
|
skip_default_group=False,
|
|
113
116
|
)
|
|
114
117
|
|
|
@@ -125,6 +128,7 @@ class TestInstall:
|
|
|
125
128
|
fetch=True,
|
|
126
129
|
clean=False,
|
|
127
130
|
skip_changes=False,
|
|
131
|
+
skip_scripts=False,
|
|
128
132
|
skip_default_group=False,
|
|
129
133
|
)
|
|
130
134
|
|
|
@@ -141,6 +145,7 @@ class TestInstall:
|
|
|
141
145
|
fetch=False,
|
|
142
146
|
clean=True,
|
|
143
147
|
skip_changes=False,
|
|
148
|
+
skip_scripts=False,
|
|
144
149
|
skip_default_group=False,
|
|
145
150
|
)
|
|
146
151
|
|
|
@@ -159,6 +164,7 @@ class TestInstall:
|
|
|
159
164
|
fetch=False,
|
|
160
165
|
clean=False,
|
|
161
166
|
skip_changes=False,
|
|
167
|
+
skip_scripts=False,
|
|
162
168
|
skip_default_group=False,
|
|
163
169
|
)
|
|
164
170
|
|
|
@@ -175,6 +181,7 @@ class TestInstall:
|
|
|
175
181
|
fetch=False,
|
|
176
182
|
clean=False,
|
|
177
183
|
skip_changes=False,
|
|
184
|
+
skip_scripts=False,
|
|
178
185
|
skip_default_group=False,
|
|
179
186
|
)
|
|
180
187
|
|
|
@@ -204,6 +211,7 @@ class TestUpdate:
|
|
|
204
211
|
recurse=False,
|
|
205
212
|
lock=None,
|
|
206
213
|
skip_changes=False,
|
|
214
|
+
skip_scripts=False,
|
|
207
215
|
)
|
|
208
216
|
|
|
209
217
|
@patch("gitman.commands.update")
|
|
@@ -220,6 +228,7 @@ class TestUpdate:
|
|
|
220
228
|
recurse=True,
|
|
221
229
|
lock=None,
|
|
222
230
|
skip_changes=False,
|
|
231
|
+
skip_scripts=False,
|
|
223
232
|
)
|
|
224
233
|
|
|
225
234
|
@patch("gitman.commands.update")
|
|
@@ -236,6 +245,7 @@ class TestUpdate:
|
|
|
236
245
|
recurse=False,
|
|
237
246
|
lock=False,
|
|
238
247
|
skip_changes=False,
|
|
248
|
+
skip_scripts=False,
|
|
239
249
|
)
|
|
240
250
|
|
|
241
251
|
@patch("gitman.commands.update")
|
|
@@ -252,6 +262,7 @@ class TestUpdate:
|
|
|
252
262
|
recurse=False,
|
|
253
263
|
lock=None,
|
|
254
264
|
skip_changes=True,
|
|
265
|
+
skip_scripts=False,
|
|
255
266
|
)
|
|
256
267
|
|
|
257
268
|
@patch("gitman.commands.update")
|
|
@@ -268,6 +279,7 @@ class TestUpdate:
|
|
|
268
279
|
recurse=False,
|
|
269
280
|
lock=None,
|
|
270
281
|
skip_changes=False,
|
|
282
|
+
skip_scripts=False,
|
|
271
283
|
)
|
|
272
284
|
|
|
273
285
|
@patch("gitman.commands.update")
|
|
@@ -284,6 +296,7 @@ class TestUpdate:
|
|
|
284
296
|
recurse=False,
|
|
285
297
|
lock=None,
|
|
286
298
|
skip_changes=False,
|
|
299
|
+
skip_scripts=False,
|
|
287
300
|
)
|
|
288
301
|
|
|
289
302
|
@patch("gitman.commands.update")
|
|
@@ -302,6 +315,7 @@ class TestUpdate:
|
|
|
302
315
|
recurse=False,
|
|
303
316
|
lock=None,
|
|
304
317
|
skip_changes=False,
|
|
318
|
+
skip_scripts=False,
|
|
305
319
|
)
|
|
306
320
|
|
|
307
321
|
@patch("gitman.commands.update")
|
|
@@ -318,6 +332,7 @@ class TestUpdate:
|
|
|
318
332
|
recurse=False,
|
|
319
333
|
lock=None,
|
|
320
334
|
skip_changes=False,
|
|
335
|
+
skip_scripts=False,
|
|
321
336
|
)
|
|
322
337
|
|
|
323
338
|
|
|
@@ -6,7 +6,6 @@ from gitman import plugin
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class TestMain:
|
|
9
|
-
|
|
10
9
|
"""Unit tests for the top-level arguments."""
|
|
11
10
|
|
|
12
11
|
@patch("gitman.cli.commands")
|
|
@@ -25,6 +24,7 @@ class TestMain:
|
|
|
25
24
|
force=False,
|
|
26
25
|
force_interactive=False,
|
|
27
26
|
skip_changes=False,
|
|
27
|
+
skip_scripts=False,
|
|
28
28
|
skip_default_group=False,
|
|
29
29
|
),
|
|
30
30
|
call.install().__bool__(), # command status check
|
|
@@ -47,6 +47,7 @@ class TestMain:
|
|
|
47
47
|
recurse=False,
|
|
48
48
|
lock=True,
|
|
49
49
|
skip_changes=False,
|
|
50
|
+
skip_scripts=False,
|
|
50
51
|
),
|
|
51
52
|
call.update().__bool__(), # command status check
|
|
52
53
|
] == mock_commands.mock_calls
|
|
@@ -68,6 +69,7 @@ class TestMain:
|
|
|
68
69
|
recurse=True,
|
|
69
70
|
lock=True,
|
|
70
71
|
skip_changes=False,
|
|
72
|
+
skip_scripts=False,
|
|
71
73
|
),
|
|
72
74
|
call.update().__bool__(), # command status check
|
|
73
75
|
] == mock_commands.mock_calls
|
|
@@ -89,6 +91,7 @@ class TestMain:
|
|
|
89
91
|
recurse=False,
|
|
90
92
|
lock=False,
|
|
91
93
|
skip_changes=False,
|
|
94
|
+
skip_scripts=False,
|
|
92
95
|
),
|
|
93
96
|
call.update().__bool__(), # command status check
|
|
94
97
|
] == mock_commands.mock_calls
|
|
@@ -110,6 +113,7 @@ class TestMain:
|
|
|
110
113
|
recurse=False,
|
|
111
114
|
lock=True,
|
|
112
115
|
skip_changes=True,
|
|
116
|
+
skip_scripts=False,
|
|
113
117
|
),
|
|
114
118
|
call.update().__bool__(), # command status check
|
|
115
119
|
] == mock_commands.mock_calls
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
|
|
3
3
|
name = "gitman"
|
|
4
|
-
version = "3.4.
|
|
4
|
+
version = "3.4.1b2"
|
|
5
5
|
description = "A language-agnostic dependency manager using Git."
|
|
6
6
|
|
|
7
7
|
license = "MIT"
|
|
@@ -75,8 +75,8 @@ coveragespace = "^6.0"
|
|
|
75
75
|
# Documentation
|
|
76
76
|
mkdocs = "^1.2.3"
|
|
77
77
|
mkdocstrings = "^0.18.1"
|
|
78
|
-
pygments = "^2.
|
|
79
|
-
jinja2 = "~3.
|
|
78
|
+
pygments = "^2.15.0"
|
|
79
|
+
jinja2 = "~3.1.3"
|
|
80
80
|
|
|
81
81
|
# Tooling
|
|
82
82
|
pyinstaller = "^4.0"
|
|
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
|
|
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
|
|
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
|
|
File without changes
|