From d5b2d3605b149f7711ff7f07627855ae86ad4fd0 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 23 May 2021 12:41:59 +0200 Subject: [PATCH] CPL Release 2021.4.0.post2 --- src/cpl/__init__.py | 4 ++-- src/cpl/application/__init__.py | 4 ++-- src/cpl/configuration/__init__.py | 4 ++-- src/cpl/console/__init__.py | 4 ++-- src/cpl/cpl.json | 2 +- src/cpl/database/__init__.py | 4 ++-- src/cpl/database/connection/__init__.py | 4 ++-- src/cpl/database/context/__init__.py | 4 ++-- src/cpl/dependency_injection/__init__.py | 4 ++-- src/cpl/environment/__init__.py | 4 ++-- src/cpl/logging/__init__.py | 4 ++-- src/cpl/logging/logger_service.py | 6 +++++- src/cpl/mailing/__init__.py | 4 ++-- src/cpl/time/__init__.py | 4 ++-- src/cpl/utils/__init__.py | 4 ++-- src/cpl_cli/cpl_cli.json | 2 +- 16 files changed, 33 insertions(+), 29 deletions(-) diff --git a/src/cpl/__init__.py b/src/cpl/__init__.py index 6fd3d314..5f00f458 100644 --- a/src/cpl/__init__.py +++ b/src/cpl/__init__.py @@ -15,11 +15,11 @@ __title__ = 'cpl' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple # imports: VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/application/__init__.py b/src/cpl/application/__init__.py index ed424780..ad9e6f8e 100644 --- a/src/cpl/application/__init__.py +++ b/src/cpl/application/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.application' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -26,4 +26,4 @@ from .application_builder_abc import ApplicationBuilderABC from .startup_abc import StartupABC VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/configuration/__init__.py b/src/cpl/configuration/__init__.py index f809a40c..9646702a 100644 --- a/src/cpl/configuration/__init__.py +++ b/src/cpl/configuration/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.configuration' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -27,4 +27,4 @@ from .configuration_variable_name_enum import ConfigurationVariableNameEnum from .console_argument import ConsoleArgument VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/console/__init__.py b/src/cpl/console/__init__.py index f3207a24..86577a82 100644 --- a/src/cpl/console/__init__.py +++ b/src/cpl/console/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.console' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -27,4 +27,4 @@ from .foreground_color_enum import ForegroundColorEnum from .spinner_thread import SpinnerThread VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/cpl.json b/src/cpl/cpl.json index 01eb8038..62bdf62d 100644 --- a/src/cpl/cpl.json +++ b/src/cpl/cpl.json @@ -4,7 +4,7 @@ "Version": { "Major": "2021", "Minor": "4", - "Micro": "0.post1" + "Micro": "0.post2" }, "Author": "Sven Heidemann", "AuthorEmail": "sven.heidemann@sh-edraft.de", diff --git a/src/cpl/database/__init__.py b/src/cpl/database/__init__.py index 905a677e..da47460c 100644 --- a/src/cpl/database/__init__.py +++ b/src/cpl/database/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.database' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -25,4 +25,4 @@ from .database_settings import DatabaseSettings from .database_settings_name_enum import DatabaseSettingsNameEnum VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/database/connection/__init__.py b/src/cpl/database/connection/__init__.py index fa73edb7..78da6595 100644 --- a/src/cpl/database/connection/__init__.py +++ b/src/cpl/database/connection/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.database.connection' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -24,4 +24,4 @@ from .database_connection import DatabaseConnection from .database_connection_abc import DatabaseConnectionABC VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/database/context/__init__.py b/src/cpl/database/context/__init__.py index 4144583e..b593a1b7 100644 --- a/src/cpl/database/context/__init__.py +++ b/src/cpl/database/context/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.database.context' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -24,4 +24,4 @@ from .database_context import DatabaseContext from .database_context_abc import DatabaseContextABC VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/dependency_injection/__init__.py b/src/cpl/dependency_injection/__init__.py index 7f93d971..02faf19c 100644 --- a/src/cpl/dependency_injection/__init__.py +++ b/src/cpl/dependency_injection/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.dependency_injection' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -28,4 +28,4 @@ from .service_provider import ServiceProvider from .service_provider_abc import ServiceProviderABC VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/environment/__init__.py b/src/cpl/environment/__init__.py index 6809bcde..1be12aa5 100644 --- a/src/cpl/environment/__init__.py +++ b/src/cpl/environment/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.environment' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -25,4 +25,4 @@ from .environment_name_enum import EnvironmentNameEnum from .application_environment import ApplicationEnvironment VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/logging/__init__.py b/src/cpl/logging/__init__.py index 404da72b..4a6ac554 100644 --- a/src/cpl/logging/__init__.py +++ b/src/cpl/logging/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.logging' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -27,4 +27,4 @@ from .logging_settings import LoggingSettings from .logging_settings_name_enum import LoggingSettingsNameEnum VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/logging/logger_service.py b/src/cpl/logging/logger_service.py index b27e1320..e4f13e38 100644 --- a/src/cpl/logging/logger_service.py +++ b/src/cpl/logging/logger_service.py @@ -81,7 +81,11 @@ class Logger(LoggerABC): try: # open log file, create if not exists path = f'{self._path}{self._log}' - f = open(path, "w+") + permission = 'a+' + if not os.path.isfile(path): + permission = 'w+' + + f = open(path, permission) Console.write_line(f'[{__name__}]: Using log file: {path}') f.close() except Exception as e: diff --git a/src/cpl/mailing/__init__.py b/src/cpl/mailing/__init__.py index 2c57dd7e..3e945b74 100644 --- a/src/cpl/mailing/__init__.py +++ b/src/cpl/mailing/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.mailing' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -27,4 +27,4 @@ from .email_client_settings import EMailClientSettings from .email_client_settings_name_enum import EMailClientSettingsNameEnum VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/time/__init__.py b/src/cpl/time/__init__.py index 5d8f524f..644d91c8 100644 --- a/src/cpl/time/__init__.py +++ b/src/cpl/time/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.time' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -24,4 +24,4 @@ from .time_format_settings import TimeFormatSettings from .time_format_settings_names_enum import TimeFormatSettingsNamesEnum VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl/utils/__init__.py b/src/cpl/utils/__init__.py index 5dfe1110..85dc95fd 100644 --- a/src/cpl/utils/__init__.py +++ b/src/cpl/utils/__init__.py @@ -15,7 +15,7 @@ __title__ = 'cpl.utils' __author__ = 'Sven Heidemann' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de' -__version__ = '2021.4.0.post1' +__version__ = '2021.4.0.post2' from collections import namedtuple @@ -25,4 +25,4 @@ from .string import String from .pip import Pip VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2021', minor='4', micro='0.post1') +version_info = VersionInfo(major='2021', minor='4', micro='0.post2') diff --git a/src/cpl_cli/cpl_cli.json b/src/cpl_cli/cpl_cli.json index 48db5155..c8b3eab0 100644 --- a/src/cpl_cli/cpl_cli.json +++ b/src/cpl_cli/cpl_cli.json @@ -16,7 +16,7 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "sh_cpl==2021.4.0.post1" + "sh_cpl>=2021.4.0.post1" ], "PythonVersion": ">=3.8", "PythonPath": {},