ScriptCollection 3.5.20__py3-none-any.whl → 3.5.21__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.
@@ -30,7 +30,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
30
30
  from .ProgramRunnerPopen import ProgramRunnerPopen
31
31
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
32
32
 
33
- version = "3.5.20"
33
+ version = "3.5.21"
34
34
  __version__ = version
35
35
 
36
36
 
@@ -261,8 +261,11 @@ class ScriptCollectionCore:
261
261
  return result[1].replace('\r', '').replace('\n', '')
262
262
 
263
263
  @GeneralUtilities.check_arguments
264
- def git_pull(self, folder: str, remote: str, localbranchname: str, remotebranchname: str) -> None:
265
- self.run_program("git", f"pull {remote} {remotebranchname}:{localbranchname}", folder, throw_exception_if_exitcode_is_not_zero=True, verbosity=0)
264
+ def git_pull(self, folder: str, remote: str, localbranchname: str, remotebranchname: str, force: bool = False) -> None:
265
+ argument = f"pull {remote} {remotebranchname}:{localbranchname}"
266
+ if force:
267
+ argument = f"{argument} --force"
268
+ self.run_program("git", argument, folder, throw_exception_if_exitcode_is_not_zero=True, verbosity=0)
266
269
 
267
270
  @GeneralUtilities.check_arguments
268
271
  def git_list_remote_branches(self, folder: str, remote: str, fetch: bool) -> list[str]:
@@ -1391,7 +1391,7 @@ class TasksForCommonProjectStructure:
1391
1391
 
1392
1392
  # Check codeunit-conformity
1393
1393
  # TODO check if foldername=="<codeunitname>[.codeunit.xml]" == <codeunitname> in file
1394
- supported_codeunitspecificationversion = "2.9.1" # should always be the latest version of the ProjectTemplates-repository
1394
+ supported_codeunitspecificationversion = "2.9.4" # should always be the latest version of the ProjectTemplates-repository
1395
1395
  codeunit_file = os.path.join(codeunit_folder, f"{codeunit_name}.codeunit.xml")
1396
1396
  if not os.path.isfile(codeunit_file):
1397
1397
  raise ValueError(f'Codeunitfile "{codeunit_file}" does not exist.')
@@ -1493,7 +1493,7 @@ class TasksForCommonProjectStructure:
1493
1493
  shutil.copy(changelog_file, target_folder)
1494
1494
 
1495
1495
  # Hints-file
1496
- hints_file = os.path.join(codeunit_folder, "Other", "Hints.md")
1496
+ hints_file = os.path.join(codeunit_folder, "Other", "Reference", "ReferenceContent", "Hints.md")
1497
1497
  if not os.path.isfile(hints_file):
1498
1498
  raise ValueError(f"Hints-file '{hints_file}' does not exist.")
1499
1499
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ScriptCollection
3
- Version: 3.5.20
3
+ Version: 3.5.21
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=a0v9sXIrZ2ymtcwcZUFsBUKsrhzYFOUAhzd28s9I1KQ,100252
9
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=9Nm7btdvikTOCOQaSXRV7sadaIi2aVqTWVCvUcYclK8,190588
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=kqV46fmxYIpD7YgI-qNaRKHICwAIj3rFLTlwoUa6Xlw,100364
9
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=U9OldjgT1BIyvrMkc-TtvswHdRjtkGU2JVZSN7odbJg,190621
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.20.dist-info/METADATA,sha256=H0PzPBf00yKeONM1Mer8i5AbyoDpZeEfiqzg5r1T-5E,7678
13
- ScriptCollection-3.5.20.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
14
- ScriptCollection-3.5.20.dist-info/entry_points.txt,sha256=yASwR6hWZ_b5d4W49YeX1htD8ngfWbwgjpfQiJdtUAU,2322
15
- ScriptCollection-3.5.20.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.20.dist-info/RECORD,,
12
+ ScriptCollection-3.5.21.dist-info/METADATA,sha256=jpt0hQnIPc51QjYhbbABwhCys1ZS7g6Q6OlyDzjNoUA,7678
13
+ ScriptCollection-3.5.21.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
14
+ ScriptCollection-3.5.21.dist-info/entry_points.txt,sha256=yASwR6hWZ_b5d4W49YeX1htD8ngfWbwgjpfQiJdtUAU,2322
15
+ ScriptCollection-3.5.21.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.21.dist-info/RECORD,,