ScriptCollection 3.5.40__py3-none-any.whl → 3.5.42__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.
- ScriptCollection/ScriptCollectionCore.py +4 -3
- ScriptCollection/TasksForCommonProjectStructure.py +6 -4
- {ScriptCollection-3.5.40.dist-info → ScriptCollection-3.5.42.dist-info}/METADATA +2 -2
- {ScriptCollection-3.5.40.dist-info → ScriptCollection-3.5.42.dist-info}/RECORD +7 -7
- {ScriptCollection-3.5.40.dist-info → ScriptCollection-3.5.42.dist-info}/WHEEL +0 -0
- {ScriptCollection-3.5.40.dist-info → ScriptCollection-3.5.42.dist-info}/entry_points.txt +0 -0
- {ScriptCollection-3.5.40.dist-info → ScriptCollection-3.5.42.dist-info}/top_level.txt +0 -0
|
@@ -31,7 +31,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
|
31
31
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
|
32
32
|
from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
|
|
33
33
|
|
|
34
|
-
version = "3.5.
|
|
34
|
+
version = "3.5.42"
|
|
35
35
|
__version__ = version
|
|
36
36
|
|
|
37
37
|
|
|
@@ -185,13 +185,14 @@ class ScriptCollectionCore:
|
|
|
185
185
|
|
|
186
186
|
@GeneralUtilities.check_arguments
|
|
187
187
|
def git_commit_is_ancestor(self, repository_folder: str, ancestor: str, descendant: str = "HEAD") -> bool:
|
|
188
|
-
|
|
188
|
+
result = self.run_program_argsasarray("git", ["merge-base", "--is-ancestor", ancestor, descendant], repository_folder, throw_exception_if_exitcode_is_not_zero=False)
|
|
189
|
+
exit_code = result[0]
|
|
189
190
|
if exit_code == 0:
|
|
190
191
|
return True
|
|
191
192
|
elif exit_code == 1:
|
|
192
193
|
return False
|
|
193
194
|
else:
|
|
194
|
-
raise ValueError(f
|
|
195
|
+
raise ValueError(f'Can not calculate if {ancestor} is an ancestor of {descendant} in repository {repository_folder}. Outout of "{repository_folder}> git merge-base --is-ancestor {ancestor} {descendant}": Exitcode: {exit_code}; StdOut: {result[1]}; StdErr: {result[2]}.')
|
|
195
196
|
|
|
196
197
|
@GeneralUtilities.check_arguments
|
|
197
198
|
def __git_changes_helper(self, repository_folder: str, arguments_as_array: list[str]) -> bool:
|
|
@@ -1375,7 +1375,7 @@ class TasksForCommonProjectStructure:
|
|
|
1375
1375
|
sc.run_program("docker", f"push {image_latest}", verbosity=verbosity)
|
|
1376
1376
|
sc.run_program("docker", f"push {image_version}", verbosity=verbosity)
|
|
1377
1377
|
if push_readme:
|
|
1378
|
-
sc.run_program("docker", f"
|
|
1378
|
+
sc.run_program("docker-pushrm", f"{repo}", codeunit_folder, verbosity=verbosity)
|
|
1379
1379
|
|
|
1380
1380
|
@GeneralUtilities.check_arguments
|
|
1381
1381
|
def get_dependent_code_units(self, codeunit_file: str) -> set[str]:
|
|
@@ -2194,7 +2194,7 @@ class TasksForCommonProjectStructure:
|
|
|
2194
2194
|
GeneralUtilities.write_message_to_stderr("Update dependencies resulted in an error.")
|
|
2195
2195
|
|
|
2196
2196
|
@GeneralUtilities.check_arguments
|
|
2197
|
-
def generate_tasksfile_from_workspace_file(self, repository_folder: str) -> None:
|
|
2197
|
+
def generate_tasksfile_from_workspace_file(self, repository_folder: str, append_cli_args_at_end: bool = False) -> None:
|
|
2198
2198
|
sc: ScriptCollectionCore = ScriptCollectionCore()
|
|
2199
2199
|
workspace_file: str = sc.find_file_by_extension(repository_folder, "code-workspace")
|
|
2200
2200
|
task_file: str = os.path.join(repository_folder, "Taskfile.yml")
|
|
@@ -2226,11 +2226,13 @@ class TasksForCommonProjectStructure:
|
|
|
2226
2226
|
if len(args) > 1:
|
|
2227
2227
|
command_with_args = f"{command_with_args} {' '.join(args)}"
|
|
2228
2228
|
|
|
2229
|
+
if append_cli_args_at_end:
|
|
2230
|
+
command_with_args = f"{command_with_args} {{{{.CLI_ARGS}}}}"
|
|
2229
2231
|
lines.append(f" {name}:")
|
|
2230
2232
|
lines.append(f' desc: "{description}"')
|
|
2231
2233
|
lines.append(f' dir: "{cwd}"')
|
|
2232
2234
|
lines.append(" cmds:")
|
|
2233
|
-
lines.append(f" - {command_with_args}
|
|
2235
|
+
lines.append(f" - {command_with_args}")
|
|
2234
2236
|
lines.append(' aliases:')
|
|
2235
2237
|
lines.append(f' - {name.lower()}')
|
|
2236
2238
|
if "aliases" in task:
|
|
@@ -2401,7 +2403,7 @@ class TasksForCommonProjectStructure:
|
|
|
2401
2403
|
|
|
2402
2404
|
now = datetime.now()
|
|
2403
2405
|
if not self.__suport_information_exists(repository_folder, project_version):
|
|
2404
|
-
support_time = timedelta(days=365*2+
|
|
2406
|
+
support_time = timedelta(days=365*2+30*3) # TODO make this configurable
|
|
2405
2407
|
until = now + support_time
|
|
2406
2408
|
self.mark_current_version_as_supported(repository_folder, project_version, now, until)
|
|
2407
2409
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ScriptCollection
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.42
|
|
4
4
|
Summary: The ScriptCollection is the place for reusable scripts.
|
|
5
5
|
Home-page: https://github.com/anionDev/ScriptCollection
|
|
6
6
|
Author: Marius Göcke
|
|
@@ -23,7 +23,7 @@ Classifier: Topic :: Utilities
|
|
|
23
23
|
Requires-Python: >=3.10
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
Requires-Dist: build>=1.2.2.post1
|
|
26
|
-
Requires-Dist: coverage>=7.6.
|
|
26
|
+
Requires-Dist: coverage>=7.6.10
|
|
27
27
|
Requires-Dist: cyclonedx-bom>=5.1.1
|
|
28
28
|
Requires-Dist: defusedxml>=0.7.1
|
|
29
29
|
Requires-Dist: keyboard>=0.13.5
|
|
@@ -5,12 +5,12 @@ ScriptCollection/ProgramRunnerBase.py,sha256=7QAjoqOz6XPmJH19F2k-Z1fFQB_uZnPFvn-
|
|
|
5
5
|
ScriptCollection/ProgramRunnerEpew.py,sha256=C2Rs3YWOWWWJct7XmKphp5CF1tf0j4Fp-ljV2drLTfs,6349
|
|
6
6
|
ScriptCollection/ProgramRunnerPopen.py,sha256=G3LgQUVCfaq7XjBsGzalElH31Hbr0etttGR2_H87YzA,3512
|
|
7
7
|
ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
|
|
8
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
9
|
-
ScriptCollection/TasksForCommonProjectStructure.py,sha256=
|
|
8
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=0Vc-GCZOCb4oBkCd9emMD8-c2f9UzRzPPNojaLCiuvw,103054
|
|
9
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=bOECB5Za31yN7avwZ00bDVgu4DPe7DYcnxfuW-5LoHM,207681
|
|
10
10
|
ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
|
|
11
11
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
ScriptCollection-3.5.
|
|
13
|
-
ScriptCollection-3.5.
|
|
14
|
-
ScriptCollection-3.5.
|
|
15
|
-
ScriptCollection-3.5.
|
|
16
|
-
ScriptCollection-3.5.
|
|
12
|
+
ScriptCollection-3.5.42.dist-info/METADATA,sha256=OlsqMMN_p7tmZn6pF8NMROX3FqK9_MMCAi92bIPTz2A,7665
|
|
13
|
+
ScriptCollection-3.5.42.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
14
|
+
ScriptCollection-3.5.42.dist-info/entry_points.txt,sha256=_O7BmQ81LdDfrj5uOhjshg9Xc-tABHQJIxDOyOGRzzI,2397
|
|
15
|
+
ScriptCollection-3.5.42.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
16
|
+
ScriptCollection-3.5.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|