ScriptCollection 3.5.39__py3-none-any.whl → 3.5.41__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.
@@ -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.39"
34
+ version = "3.5.41"
35
35
  __version__ = version
36
36
 
37
37
 
@@ -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"pushrm {repo}", codeunit_folder, verbosity=verbosity)
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} {{{{.CLI_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*31) # TODO make this configurable
2406
+ support_time = timedelta(days=365*2+31) # 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.39
3
+ Version: 3.5.41
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
@@ -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=s9sizADPsescdKLtcns3nH0bMvyJ3JzuEFeF6GR51Ug,102878
9
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=niMk1lor857i23agOqA1D2t7H997a_cSwOUwzPA3NgQ,207535
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=MjpXXphdDfdlIgrX0DQPX2WtplCl117eT0y_EpyPa4Q,102878
9
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=hVnQ17-7jVS2kI7u5I2VCbuUMetl2R3NUPFkNekBxTI,207679
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.39.dist-info/METADATA,sha256=Dg6WH96IX9gpzf6UjQskmLGdBWlSQIBUggO1uXRFxMA,7664
13
- ScriptCollection-3.5.39.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
14
- ScriptCollection-3.5.39.dist-info/entry_points.txt,sha256=_O7BmQ81LdDfrj5uOhjshg9Xc-tABHQJIxDOyOGRzzI,2397
15
- ScriptCollection-3.5.39.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.39.dist-info/RECORD,,
12
+ ScriptCollection-3.5.41.dist-info/METADATA,sha256=D7Gxs5JHtleF0SimdwCC73DL-MV1eCypnjriNEZcpqQ,7664
13
+ ScriptCollection-3.5.41.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
14
+ ScriptCollection-3.5.41.dist-info/entry_points.txt,sha256=_O7BmQ81LdDfrj5uOhjshg9Xc-tABHQJIxDOyOGRzzI,2397
15
+ ScriptCollection-3.5.41.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.41.dist-info/RECORD,,