ScriptCollection 3.5.136__py3-none-any.whl → 3.5.137__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.
@@ -33,7 +33,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
33
33
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
34
34
  from .SCLog import SCLog, LogLevel
35
35
 
36
- version = "3.5.136"
36
+ version = "3.5.137"
37
37
  __version__ = version
38
38
 
39
39
 
@@ -690,13 +690,18 @@ class ScriptCollectionCore:
690
690
  return self.is_folder(git_folder_path) or self.is_file(git_folder_path)
691
691
 
692
692
  @GeneralUtilities.check_arguments
693
- def is_git_or_bare_git_repository(self, folder: str) -> bool:
693
+ def is_bare_git_repository(self, folder: str) -> bool:
694
694
  """This function works platform-independent also for non-local-executions if the ScriptCollection commandline-commands are available as global command on the target-system."""
695
695
  if folder.endswith("/") or folder.endswith("\\"):
696
696
  folder = folder[:-1]
697
697
  if not self.is_folder(folder):
698
698
  raise ValueError(f"Folder '{folder}' does not exist.")
699
- return self.is_git_repository(folder) or self.is_folder(folder + ".git")
699
+ return folder.endswith(".git")
700
+
701
+ @GeneralUtilities.check_arguments
702
+ def is_git_or_bare_git_repository(self, folder: str) -> bool:
703
+ """This function works platform-independent also for non-local-executions if the ScriptCollection commandline-commands are available as global command on the target-system."""
704
+ return self.is_git_repository(folder) or self.is_bare_git_repository(folder)
700
705
 
701
706
  @GeneralUtilities.check_arguments
702
707
  def assert_is_git_repository(self, folder: str) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 3.5.136
3
+ Version: 3.5.137
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
@@ -7,11 +7,11 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
7
7
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
8
8
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
9
9
  ScriptCollection/SCLog.py,sha256=Dd2P8vH2PA830wAv6bchlMHHdGE_7At-F4WQY5w4XdA,4016
10
- ScriptCollection/ScriptCollectionCore.py,sha256=eB87OFsWlhRRfOL7s2iZRZAyZLZa6N7kuJHmcx8F_3M,130661
10
+ ScriptCollection/ScriptCollectionCore.py,sha256=L-tWnkE54e9jI7YxZUnny6_-_DjflWMeLaQDgV3QsFU,130990
11
11
  ScriptCollection/TasksForCommonProjectStructure.py,sha256=b3bb3kSHSce3HgaitDyuZdQ82KroU1HFryANBycKo0I,235854
12
12
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- scriptcollection-3.5.136.dist-info/METADATA,sha256=j6cTXr0N7FcfJeIL5MBQZ7V6Zpb8mPgamTnPWXse10E,7694
14
- scriptcollection-3.5.136.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- scriptcollection-3.5.136.dist-info/entry_points.txt,sha256=AhXNaa8RMBRFO_4TzKi9jc32C-ZNIiU12mRGu6wEpBk,3796
16
- scriptcollection-3.5.136.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
- scriptcollection-3.5.136.dist-info/RECORD,,
13
+ scriptcollection-3.5.137.dist-info/METADATA,sha256=DdSE7BdnUmmZ2uSaaGWy5MNjkg63I5rszeyyQ09b_XU,7694
14
+ scriptcollection-3.5.137.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ scriptcollection-3.5.137.dist-info/entry_points.txt,sha256=AhXNaa8RMBRFO_4TzKi9jc32C-ZNIiU12mRGu6wEpBk,3796
16
+ scriptcollection-3.5.137.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
+ scriptcollection-3.5.137.dist-info/RECORD,,