ScriptCollection 3.5.28__py3-none-any.whl → 3.5.30__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 +3 -3
- ScriptCollection/TasksForCommonProjectStructure.py +18 -6
- {ScriptCollection-3.5.28.dist-info → ScriptCollection-3.5.30.dist-info}/METADATA +3 -3
- {ScriptCollection-3.5.28.dist-info → ScriptCollection-3.5.30.dist-info}/RECORD +7 -7
- {ScriptCollection-3.5.28.dist-info → ScriptCollection-3.5.30.dist-info}/WHEEL +1 -1
- {ScriptCollection-3.5.28.dist-info → ScriptCollection-3.5.30.dist-info}/entry_points.txt +0 -0
- {ScriptCollection-3.5.28.dist-info → ScriptCollection-3.5.30.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.30"
|
|
35
35
|
__version__ = version
|
|
36
36
|
|
|
37
37
|
|
|
@@ -1788,7 +1788,7 @@ chmod {permission} {link_file}
|
|
|
1788
1788
|
main_reference_file = f"{reference_root_folder}/Reference.md"
|
|
1789
1789
|
GeneralUtilities.ensure_file_exists(main_reference_file)
|
|
1790
1790
|
GeneralUtilities.write_text_to_file(main_reference_file, f"""# {productname}
|
|
1791
|
-
|
|
1791
|
+
|
|
1792
1792
|
TXDX add minimal service-description here.
|
|
1793
1793
|
|
|
1794
1794
|
## Technical documentation
|
|
@@ -1880,7 +1880,7 @@ TXDX
|
|
|
1880
1880
|
- [Productive-System](TXDX)
|
|
1881
1881
|
- [QualityCheck-system](TXDX)
|
|
1882
1882
|
|
|
1883
|
-
""")
|
|
1883
|
+
""".replace("XDX", "ODO"))
|
|
1884
1884
|
|
|
1885
1885
|
@GeneralUtilities.check_arguments
|
|
1886
1886
|
def run_with_timeout(self, method, timeout_in_seconds: float) -> bool:
|
|
@@ -1692,11 +1692,16 @@ class TasksForCommonProjectStructure:
|
|
|
1692
1692
|
GeneralUtilities.write_text_to_file(file, result)
|
|
1693
1693
|
|
|
1694
1694
|
@GeneralUtilities.check_arguments
|
|
1695
|
-
def do_npm_install(self, package_json_folder: str,force:bool, verbosity: int) -> None:
|
|
1696
|
-
|
|
1695
|
+
def do_npm_install(self, package_json_folder: str, force: bool, verbosity: int) -> None:
|
|
1696
|
+
argument1 = "install"
|
|
1697
1697
|
if force:
|
|
1698
|
-
|
|
1699
|
-
self.run_with_epew("npm",
|
|
1698
|
+
argument1 = f"{argument1} --force"
|
|
1699
|
+
self.run_with_epew("npm", argument1, package_json_folder, verbosity=verbosity)
|
|
1700
|
+
|
|
1701
|
+
argument2 = "clean-install"
|
|
1702
|
+
if force:
|
|
1703
|
+
argument2 = f"{argument2} --force"
|
|
1704
|
+
self.run_with_epew("npm", argument2, package_json_folder, verbosity=verbosity)
|
|
1700
1705
|
|
|
1701
1706
|
@GeneralUtilities.check_arguments
|
|
1702
1707
|
def run_with_epew(self, program: str, argument: str = "", working_directory: str = None, verbosity: int = 1, print_errors_as_information: bool = False, log_file: str = None, timeoutInSeconds: int = 600, addLogOverhead: bool = False, title: str = None, log_namespace: str = "", arguments_for_log: list[str] = None, throw_exception_if_exitcode_is_not_zero: bool = True, custom_argument: object = None, interactive: bool = False) -> tuple[int, str, str, int]:
|
|
@@ -2397,7 +2402,7 @@ class TasksForCommonProjectStructure:
|
|
|
2397
2402
|
def generate_svg_files_from_plantuml_files(self, target_folder: str) -> None:
|
|
2398
2403
|
self.ensure_plantuml_is_available(target_folder)
|
|
2399
2404
|
plant_uml_folder = os.path.join(target_folder, "Other", "Resources", "PlantUML")
|
|
2400
|
-
files_folder = os.path.join(target_folder, "Other
|
|
2405
|
+
files_folder = os.path.join(target_folder, "Other", "Reference")
|
|
2401
2406
|
sc = ScriptCollectionCore()
|
|
2402
2407
|
for file in GeneralUtilities.get_all_files_of_folder(files_folder):
|
|
2403
2408
|
if file.endswith(".plantuml"):
|
|
@@ -2601,6 +2606,13 @@ class TasksForCommonProjectStructure:
|
|
|
2601
2606
|
codeunits = self.get_codeunits(repository_folder)
|
|
2602
2607
|
updated_dependencies = False
|
|
2603
2608
|
verbosity: int = 1 # TODO set value dynamically
|
|
2609
|
+
update_dependencies_script_filename = "UpdateDependencies.py"
|
|
2610
|
+
# update dependencies of resources
|
|
2611
|
+
global_scripts_folder = os.path.join(repository_folder, "Other", "Scripts")
|
|
2612
|
+
if os.path.isfile(os.path.join(global_scripts_folder, update_dependencies_script_filename)):
|
|
2613
|
+
self.__sc.run_program("python", update_dependencies_script_filename, global_scripts_folder)
|
|
2614
|
+
|
|
2615
|
+
# update dependencies of codeunits
|
|
2604
2616
|
for codeunit in codeunits:
|
|
2605
2617
|
codeunit_file = os.path.join(repository_folder, codeunit, f"{codeunit}.codeunit.xml")
|
|
2606
2618
|
codeunit_has_updatable_dependencies = self.codeunit_has_updatable_dependencies(codeunit_file)
|
|
@@ -2608,7 +2620,7 @@ class TasksForCommonProjectStructure:
|
|
|
2608
2620
|
codeunit_folder = os.path.join(repository_folder, codeunit)
|
|
2609
2621
|
update_dependencies_script_folder = os.path.join(codeunit_folder, "Other")
|
|
2610
2622
|
GeneralUtilities.ensure_directory_exists(os.path.join(update_dependencies_script_folder, "Resources", "CodeAnalysisResult"))
|
|
2611
|
-
self.__sc.run_program("python",
|
|
2623
|
+
self.__sc.run_program("python", update_dependencies_script_filename, update_dependencies_script_folder, verbosity)
|
|
2612
2624
|
if self.__sc.git_repository_has_uncommitted_changes(repository_folder):
|
|
2613
2625
|
updated_dependencies = True
|
|
2614
2626
|
version_of_project = self.get_version_of_project(repository_folder)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ScriptCollection
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.30
|
|
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
|
|
@@ -24,7 +24,7 @@ Requires-Python: >=3.10
|
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
Requires-Dist: build >=1.2.2.post1
|
|
26
26
|
Requires-Dist: coverage >=7.6.4
|
|
27
|
-
Requires-Dist: cyclonedx-bom >=5.
|
|
27
|
+
Requires-Dist: cyclonedx-bom >=5.1.1
|
|
28
28
|
Requires-Dist: defusedxml >=0.7.1
|
|
29
29
|
Requires-Dist: keyboard >=0.13.5
|
|
30
30
|
Requires-Dist: lcov-cobertura >=2.0.2
|
|
@@ -41,7 +41,7 @@ Requires-Dist: PyYAML >=6.0.2
|
|
|
41
41
|
Requires-Dist: qrcode >=8.0
|
|
42
42
|
Requires-Dist: send2trash >=1.8.3
|
|
43
43
|
Requires-Dist: twine >=5.1.1
|
|
44
|
-
Requires-Dist: xmlschema >=3.4.
|
|
44
|
+
Requires-Dist: xmlschema >=3.4.3
|
|
45
45
|
|
|
46
46
|
# ScriptCollection
|
|
47
47
|
|
|
@@ -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=LuqrtPRjs03p3Jd34g68sZuygKm1cyRVj5moogdnOwI,101921
|
|
9
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=_9GJp7C1QOQbWDcVnwvAkxpTQlCuvHMvE5yyV3irc1s,194740
|
|
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.30.dist-info/METADATA,sha256=6rdPQb7iZF6B6iIjMtgYTryUTeKkzYqNnZqz_rFwSX4,7684
|
|
13
|
+
ScriptCollection-3.5.30.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
14
|
+
ScriptCollection-3.5.30.dist-info/entry_points.txt,sha256=yASwR6hWZ_b5d4W49YeX1htD8ngfWbwgjpfQiJdtUAU,2322
|
|
15
|
+
ScriptCollection-3.5.30.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
16
|
+
ScriptCollection-3.5.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|