ScriptCollection 3.5.155__py3-none-any.whl → 3.5.156__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/GeneralUtilities.py +8 -4
- ScriptCollection/SCLog.py +3 -1
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TasksForCommonProjectStructure.py +6 -6
- {scriptcollection-3.5.155.dist-info → scriptcollection-3.5.156.dist-info}/METADATA +1 -1
- {scriptcollection-3.5.155.dist-info → scriptcollection-3.5.156.dist-info}/RECORD +9 -9
- {scriptcollection-3.5.155.dist-info → scriptcollection-3.5.156.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.155.dist-info → scriptcollection-3.5.156.dist-info}/entry_points.txt +0 -0
- {scriptcollection-3.5.155.dist-info → scriptcollection-3.5.156.dist-info}/top_level.txt +0 -0
@@ -367,11 +367,15 @@ class GeneralUtilities:
|
|
367
367
|
|
368
368
|
@staticmethod
|
369
369
|
@check_arguments
|
370
|
-
def datetime_to_string_for_logfile_entry(datetime_object: datetime,
|
371
|
-
|
372
|
-
|
370
|
+
def datetime_to_string_for_logfile_entry(datetime_object: datetime, add_milliseconds: bool = False) -> str:
|
371
|
+
pattern: str = None
|
372
|
+
if add_milliseconds:
|
373
|
+
pattern = "%Y-%m-%dT%H:%M:%S.%f%z"
|
373
374
|
else:
|
374
|
-
|
375
|
+
pattern = "%Y-%m-%dT%H:%M:%S%z"
|
376
|
+
s = datetime_object.strftime(pattern)
|
377
|
+
s = s[:-2] + ":" + s[-2:]
|
378
|
+
return s
|
375
379
|
|
376
380
|
@staticmethod
|
377
381
|
@check_arguments
|
ScriptCollection/SCLog.py
CHANGED
@@ -22,6 +22,7 @@ class SCLog:
|
|
22
22
|
add_overhead_to_console: bool
|
23
23
|
add_overhead_to_logfile: bool
|
24
24
|
print_as_color: bool
|
25
|
+
add_milliseconds_to_logfile_entry: bool
|
25
26
|
|
26
27
|
def __init__(self, log_file: str = None, loglevel: LogLevel = None, print_as_color: bool = True):
|
27
28
|
self.log_file = log_file
|
@@ -31,6 +32,7 @@ class SCLog:
|
|
31
32
|
self.loglevel = loglevel
|
32
33
|
self.add_overhead_to_console = False
|
33
34
|
self.add_overhead_to_logfile = False
|
35
|
+
self.add_milliseconds_to_logfile_entry = False
|
34
36
|
self.print_as_color = print_as_color
|
35
37
|
|
36
38
|
@GeneralUtilities.check_arguments
|
@@ -70,7 +72,7 @@ class SCLog:
|
|
70
72
|
|
71
73
|
moment: datetime = datetime.now(datetime.now().astimezone().tzinfo)
|
72
74
|
|
73
|
-
part1 = f"[{GeneralUtilities.datetime_to_string_for_logfile_entry(moment,
|
75
|
+
part1 = f"[{GeneralUtilities.datetime_to_string_for_logfile_entry(moment, self.add_milliseconds_to_logfile_entry)}] ["
|
74
76
|
if loglevel == LogLevel.Information:
|
75
77
|
part2 = f"Information"
|
76
78
|
elif loglevel == LogLevel.Error:
|
@@ -2629,12 +2629,6 @@ class TasksForCommonProjectStructure:
|
|
2629
2629
|
project_version = self.get_version_of_project(repository_folder)
|
2630
2630
|
|
2631
2631
|
now = datetime.now()
|
2632
|
-
if not self.__suport_information_exists(repository_folder, project_version):
|
2633
|
-
support_time = timedelta(days=365*2+30*3+1) # TODO make this configurable
|
2634
|
-
until = now + support_time
|
2635
|
-
until_day = datetime(until.year, until.month, until.day, 0, 0, 0)
|
2636
|
-
from_day = datetime(now.year, now.month, now.day, 0, 0, 0)
|
2637
|
-
self.mark_current_version_as_supported(repository_folder, project_version, from_day, until_day)
|
2638
2632
|
|
2639
2633
|
project_resources_folder = os.path.join(repository_folder, "Other", "Scripts")
|
2640
2634
|
PrepareBuildCodeunits_script_name = "PrepareBuildCodeunits.py"
|
@@ -2649,6 +2643,12 @@ class TasksForCommonProjectStructure:
|
|
2649
2643
|
raise ValueError(f"PrepareBuildCodeunits.py resulted in exitcode {result[0]}.")
|
2650
2644
|
|
2651
2645
|
self.__do_repository_checks(repository_folder, project_version)
|
2646
|
+
if not self.__suport_information_exists(repository_folder, project_version):
|
2647
|
+
support_time = timedelta(days=365*2+30*3+1) # TODO make this configurable
|
2648
|
+
until = now + support_time
|
2649
|
+
until_day = datetime(until.year, until.month, until.day, 0, 0, 0)
|
2650
|
+
from_day = datetime(now.year, now.month, now.day, 0, 0, 0)
|
2651
|
+
self.mark_current_version_as_supported(repository_folder, project_version, from_day, until_day)
|
2652
2652
|
self.build_specific_codeunits(repository_folder, codeunits, verbosity, target_environmenttype, additional_arguments_file, is_pre_merge, export_target_directory, False, commandline_arguments, do_git_clean_when_no_changes, note)
|
2653
2653
|
|
2654
2654
|
@GeneralUtilities.check_arguments
|
@@ -1,17 +1,17 @@
|
|
1
1
|
ScriptCollection/CertificateUpdater.py,sha256=OAxrG21k_o3W3niOOGNSZzUPJlvolOWc1lRB2dMhc3g,9212
|
2
2
|
ScriptCollection/Executables.py,sha256=BojgHGBYn5QqpsdIgn8r8raxb8bE_BUyb-fZ_rCEN0A,37050
|
3
|
-
ScriptCollection/GeneralUtilities.py,sha256=
|
3
|
+
ScriptCollection/GeneralUtilities.py,sha256=OaecNA7tTFlFA8Wu1dDVspug3DRaRRGbJy4AbpwudpQ,48055
|
4
4
|
ScriptCollection/ImageUpdater.py,sha256=qTe3yoqzQJY7LZdXBbjbWvrsSQaeHy1VwmOxaRzU2ig,29305
|
5
5
|
ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
|
6
6
|
ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4bQNM6RV6Y,2480
|
7
7
|
ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
|
8
8
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
9
|
-
ScriptCollection/SCLog.py,sha256=
|
10
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
11
|
-
ScriptCollection/TasksForCommonProjectStructure.py,sha256=
|
9
|
+
ScriptCollection/SCLog.py,sha256=rMdrEzBKQZBdObPJ9nZ5XCEXRoIFqPh8fAoiX6ZOVuw,4493
|
10
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=Rlj0JQG84M1NcsXOKmqJPW3_tkCOJquPreCYTx0Ne4E,139260
|
11
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=c4Ohfh8eQK68ObaC2YirTpNy8bht_uHhvxSGQXRgmiQ,247266
|
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.156.dist-info/METADATA,sha256=pXOv4nagWda_5f1tY4A9uqhtBBtlqh4FU-9xUfxMa_Q,7689
|
14
|
+
scriptcollection-3.5.156.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
scriptcollection-3.5.156.dist-info/entry_points.txt,sha256=yZlEK0r5Ie7xrSLdlWZgFqzLZiIctsIAUJvDCgrYBRo,4193
|
16
|
+
scriptcollection-3.5.156.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
17
|
+
scriptcollection-3.5.156.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|