ScriptCollection 3.5.150__py3-none-any.whl → 3.5.151__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 +1 -1
- ScriptCollection/TasksForCommonProjectStructure.py +46 -5
- {scriptcollection-3.5.150.dist-info → scriptcollection-3.5.151.dist-info}/METADATA +2 -2
- {scriptcollection-3.5.150.dist-info → scriptcollection-3.5.151.dist-info}/RECORD +7 -7
- {scriptcollection-3.5.150.dist-info → scriptcollection-3.5.151.dist-info}/entry_points.txt +1 -2
- {scriptcollection-3.5.150.dist-info → scriptcollection-3.5.151.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.150.dist-info → scriptcollection-3.5.151.dist-info}/top_level.txt +0 -0
@@ -485,8 +485,7 @@ class TasksForCommonProjectStructure:
|
|
485
485
|
self.write_version_to_codeunit_file(codeunit_file, current_version)
|
486
486
|
|
487
487
|
@GeneralUtilities.check_arguments
|
488
|
-
def t4_transform(self, commontasks_script_file_of_current_file: str, verbosity: int):
|
489
|
-
sc = ScriptCollectionCore()
|
488
|
+
def t4_transform(self, commontasks_script_file_of_current_file: str, verbosity: int,ignore_git_ignored_files:bool=True):
|
490
489
|
codeunit_folder = GeneralUtilities.resolve_relative_path("../..", commontasks_script_file_of_current_file)
|
491
490
|
self.__ensure_grylibrary_is_available(codeunit_folder)
|
492
491
|
repository_folder: str = os.path.dirname(codeunit_folder)
|
@@ -494,9 +493,51 @@ class TasksForCommonProjectStructure:
|
|
494
493
|
codeunit_folder = os.path.join(repository_folder, codeunitname)
|
495
494
|
for search_result in Path(codeunit_folder).glob('**/*.tt'):
|
496
495
|
tt_file = str(search_result)
|
497
|
-
|
498
|
-
|
499
|
-
|
496
|
+
relative_path_to_tt_file_from_repository = str(Path(tt_file).relative_to(repository_folder))
|
497
|
+
if (not ignore_git_ignored_files) or (ignore_git_ignored_files and not self.__sc.file_is_git_ignored(relative_path_to_tt_file_from_repository,repository_folder)):
|
498
|
+
relative_path_to_tt_file_from_codeunit_file = str(Path(tt_file).relative_to(codeunit_folder))
|
499
|
+
argument = [f"--parameter=repositoryFolder={repository_folder}", f"--parameter=codeUnitName={codeunitname}", relative_path_to_tt_file_from_codeunit_file]
|
500
|
+
self.__sc.run_program_argsasarray("t4", argument, codeunit_folder, verbosity=verbosity)
|
501
|
+
|
502
|
+
@GeneralUtilities.check_arguments
|
503
|
+
def get_resource_from_global_resource(self,codeunit_folder:str,resource_name:str):
|
504
|
+
repository_folder:str= GeneralUtilities.resolve_relative_path("..", codeunit_folder)
|
505
|
+
source_folder:str=os.path.join(repository_folder,"Other","Resources",resource_name)
|
506
|
+
target_folder:str=os.path.join(codeunit_folder,"Other","Resources",resource_name)
|
507
|
+
GeneralUtilities.ensure_folder_exists_and_is_empty(target_folder)
|
508
|
+
GeneralUtilities.copy_content_of_folder(source_folder, target_folder)
|
509
|
+
|
510
|
+
@GeneralUtilities.check_arguments
|
511
|
+
def clone_repository_as_resource(self,local_repository_folder:str,remote_repository_link:str, resource_name:str,repository_subname:str=None)->str:
|
512
|
+
commit_id:str=None
|
513
|
+
target_folder:str=os.path.join(local_repository_folder,"Other","Resources",resource_name)
|
514
|
+
if repository_subname is not None:
|
515
|
+
target_folder=os.path.join(target_folder,repository_subname)
|
516
|
+
if not os.path.isdir(target_folder):
|
517
|
+
GeneralUtilities.ensure_directory_exists(target_folder)
|
518
|
+
GeneralUtilities.write_message_to_stdout(f"Clone {remote_repository_link} into {target_folder}...")
|
519
|
+
self.__sc.run_program("git",f"clone --recurse-submodules {remote_repository_link} {target_folder}")
|
520
|
+
|
521
|
+
self.__sc.git_get_commit_id(target_folder)
|
522
|
+
|
523
|
+
git_folders:list[str]=[]
|
524
|
+
git_files:list[str]=[]
|
525
|
+
for dirpath, dirnames, filenames in os.walk(target_folder):
|
526
|
+
for dirname in dirnames:
|
527
|
+
if dirname == ".git":
|
528
|
+
full_path = os.path.join(dirpath, dirname)
|
529
|
+
git_folders.append(full_path)
|
530
|
+
for filename in filenames:
|
531
|
+
if filename == ".git":
|
532
|
+
full_path = os.path.join(dirpath, filename)
|
533
|
+
git_files.append(full_path)
|
534
|
+
for git_folder in git_folders:
|
535
|
+
if os.path.isdir(git_folder):
|
536
|
+
GeneralUtilities.ensure_directory_does_not_exist(git_folder)
|
537
|
+
for git_file in git_files:
|
538
|
+
if os.path.isdir(git_file):
|
539
|
+
GeneralUtilities.ensure_file_does_not_exist(git_file)
|
540
|
+
return commit_id
|
500
541
|
|
501
542
|
@GeneralUtilities.check_arguments
|
502
543
|
def standardized_tasks_generate_reference_by_docfx(self, generate_reference_script_file: str, verbosity: int, targetenvironmenttype: str, commandline_arguments: list[str]) -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ScriptCollection
|
3
|
-
Version: 3.5.
|
3
|
+
Version: 3.5.151
|
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
|
@@ -34,7 +34,7 @@ Requires-Dist: Pillow>=11.3.0
|
|
34
34
|
Requires-Dist: psutil>=7.0.0
|
35
35
|
Requires-Dist: pycdlib>=1.14.0
|
36
36
|
Requires-Dist: Pygments>=2.19.2
|
37
|
-
Requires-Dist: pylint>=3.3.
|
37
|
+
Requires-Dist: pylint>=3.3.8
|
38
38
|
Requires-Dist: pyOpenSSL>=25.1.0
|
39
39
|
Requires-Dist: PyPDF>=5.9.0
|
40
40
|
Requires-Dist: pytest>=8.4.1
|
@@ -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=GJ44S6VaBVwX5Dd6MIrdZn6I0dpaaYKVq9w-N0nMXlo,4496
|
10
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
11
|
-
ScriptCollection/TasksForCommonProjectStructure.py,sha256=
|
10
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=YJ6uOGQa224jtsva_OX3r8h2aIzGR9GAfJH4h-9iIAc,138093
|
11
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=9vccEWsxlW7xGXFLc2RPPFMWCkmoGxbSGu7hi9NxkeU,244959
|
12
12
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
scriptcollection-3.5.
|
14
|
-
scriptcollection-3.5.
|
15
|
-
scriptcollection-3.5.
|
16
|
-
scriptcollection-3.5.
|
17
|
-
scriptcollection-3.5.
|
13
|
+
scriptcollection-3.5.151.dist-info/METADATA,sha256=-EuHJHBjH-Oe9njZujrMzqr5aUXDVt_20DyCPY_81RE,7689
|
14
|
+
scriptcollection-3.5.151.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
scriptcollection-3.5.151.dist-info/entry_points.txt,sha256=AvmVO9iyWImExpvzL3YYQ9AOEiUIN9guPRRG_W_VNWY,4116
|
16
|
+
scriptcollection-3.5.151.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
17
|
+
scriptcollection-3.5.151.dist-info/RECORD,,
|
@@ -28,7 +28,6 @@ scgeneratecertificate = ScriptCollection.Executables:GenerateCertificate
|
|
28
28
|
scgeneratecertificateauthority = ScriptCollection.Executables:GenerateCertificateAuthority
|
29
29
|
scgeneratecertificatesignrequest = ScriptCollection.Executables:GenerateCertificateSignRequest
|
30
30
|
scgeneratesnkfiles = ScriptCollection.Executables:GenerateSnkFiles
|
31
|
-
scgeneratetasksfilefromworkspacefile = ScriptCollection.Executables:GenerateTaskfileFromWorkspacefile
|
32
31
|
scgeneratethumbnail = ScriptCollection.Executables:GenerateThumbnail
|
33
32
|
schealthcheck = ScriptCollection.Executables:Healthcheck
|
34
33
|
sckeyboarddiagnosis = ScriptCollection.Executables:KeyboardDiagnosis
|
@@ -51,7 +50,7 @@ scremovefolder = ScriptCollection.Executables:RemoveFolder
|
|
51
50
|
screname = ScriptCollection.Executables:Rename
|
52
51
|
screplacesubstringsinfilenames = ScriptCollection.Executables:ReplaceSubstringsInFilenames
|
53
52
|
scsearchinfiles = ScriptCollection.Executables:SearchInFiles
|
54
|
-
|
53
|
+
scsetcontentoffile = ScriptCollection.Executables:SetContentOfFile
|
55
54
|
scshow2faasqrcode = ScriptCollection.Executables:Show2FAAsQRCode
|
56
55
|
scshowmissingfiles = ScriptCollection.Executables:ShowMissingFiles
|
57
56
|
scsigncertificate = ScriptCollection.Executables:SignCertificate
|
File without changes
|
File without changes
|