From 5e6d17cc8655023ea0fe597bd127ffe3dfd3ad8c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 13:28:07 +0200 Subject: [PATCH 1/6] Updated some stuff --- src/cpl_cli/.cpl/__init__.py | 14 +++++++------- src/cpl_cli/__init__.py | 14 +++++++------- src/cpl_cli/_templates/__init__.py | 14 +++++++------- src/cpl_cli/_templates/build/__init__.py | 14 +++++++------- src/cpl_cli/_templates/publish/__init__.py | 14 +++++++------- src/cpl_cli/abc/__init__.py | 14 +++++++------- src/cpl_cli/command/__init__.py | 14 +++++++------- src/cpl_cli/configuration/__init__.py | 14 +++++++------- src/cpl_cli/cpl-cli.json | 4 ++-- src/cpl_cli/helper/__init__.py | 14 +++++++------- src/cpl_cli/live_server/__init__.py | 14 +++++++------- src/cpl_cli/migrations/__init__.py | 14 +++++++------- src/cpl_cli/migrations/base/__init__.py | 14 +++++++------- src/cpl_cli/migrations/service/__init__.py | 14 +++++++------- src/cpl_cli/publish/__init__.py | 14 +++++++------- src/cpl_cli/source_creator/__init__.py | 14 +++++++------- src/cpl_cli/validators/__init__.py | 14 +++++++------- src/cpl_core/__init__.py | 14 +++++++------- src/cpl_core/application/__init__.py | 14 +++++++------- src/cpl_core/configuration/__init__.py | 14 +++++++------- src/cpl_core/console/__init__.py | 14 +++++++------- src/cpl_core/cpl-core.json | 14 +++++++------- src/cpl_core/database/__init__.py | 14 +++++++------- src/cpl_core/database/connection/__init__.py | 14 +++++++------- src/cpl_core/database/context/__init__.py | 14 +++++++------- src/cpl_core/dependency_injection/__init__.py | 14 +++++++------- src/cpl_core/environment/__init__.py | 14 +++++++------- src/cpl_core/logging/__init__.py | 14 +++++++------- src/cpl_core/mailing/__init__.py | 14 +++++++------- src/cpl_core/pipes/__init__.py | 14 +++++++------- src/cpl_core/time/__init__.py | 14 +++++++------- src/cpl_core/utils/__init__.py | 14 +++++++------- src/cpl_discord/.cpl/__init__.py | 14 +++++++------- src/cpl_discord/__init__.py | 14 +++++++------- src/cpl_discord/application/__init__.py | 14 +++++++------- src/cpl_discord/command/__init__.py | 14 +++++++------- src/cpl_discord/configuration/__init__.py | 14 +++++++------- src/cpl_discord/container/__init__.py | 14 +++++++------- src/cpl_discord/cpl-discord.json | 8 ++++---- src/cpl_discord/events/__init__.py | 14 +++++++------- src/cpl_discord/helper/__init__.py | 14 +++++++------- src/cpl_discord/service/__init__.py | 14 +++++++------- src/cpl_query/__init__.py | 14 +++++++------- src/cpl_query/base/__init__.py | 14 +++++++------- src/cpl_query/base/ordered_queryable_abc.py | 6 +++--- src/cpl_query/cpl-query.json | 4 ++-- src/cpl_query/enumerable/__init__.py | 14 +++++++------- src/cpl_query/extension/__init__.py | 14 +++++++------- src/cpl_query/iterable/__init__.py | 14 +++++++------- src/cpl_translation/__init__.py | 15 +++++++-------- src/cpl_translation/cpl-translation.json | 6 +++--- tools/set_pip_urls/__init__.py | 14 +++++++------- tools/set_version/__init__.py | 14 +++++++------- 53 files changed, 350 insertions(+), 351 deletions(-) diff --git a/src/cpl_cli/.cpl/__init__.py b/src/cpl_cli/.cpl/__init__.py index 211386b3..370b3e8b 100644 --- a/src/cpl_cli/.cpl/__init__.py +++ b/src/cpl_cli/.cpl/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/__init__.py b/src/cpl_cli/__init__.py index d6d20caa..e942422b 100644 --- a/src/cpl_cli/__init__.py +++ b/src/cpl_cli/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = "cpl_cli" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -27,5 +27,5 @@ from .error import Error from .main import main from .startup import Startup -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/_templates/__init__.py b/src/cpl_cli/_templates/__init__.py index e90c4518..c6c78af8 100644 --- a/src/cpl_cli/_templates/__init__.py +++ b/src/cpl_cli/_templates/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli._templates" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli._templates' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/_templates/build/__init__.py b/src/cpl_cli/_templates/build/__init__.py index ece37d0b..ad654b08 100644 --- a/src/cpl_cli/_templates/build/__init__.py +++ b/src/cpl_cli/_templates/build/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli._templates.build" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli._templates.build' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/_templates/publish/__init__.py b/src/cpl_cli/_templates/publish/__init__.py index b5986f99..6098d650 100644 --- a/src/cpl_cli/_templates/publish/__init__.py +++ b/src/cpl_cli/_templates/publish/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli._templates.publish" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli._templates.publish' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/abc/__init__.py b/src/cpl_cli/abc/__init__.py index c889d116..f62b552d 100644 --- a/src/cpl_cli/abc/__init__.py +++ b/src/cpl_cli/abc/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.abc" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.abc' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/command/__init__.py b/src/cpl_cli/command/__init__.py index 3d61863a..7ef73255 100644 --- a/src/cpl_cli/command/__init__.py +++ b/src/cpl_cli/command/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.command" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.command' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -28,5 +28,5 @@ from .new_service import NewService from .publish_service import PublishService from .version_service import VersionService -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/configuration/__init__.py b/src/cpl_cli/configuration/__init__.py index f0deecc5..242c9497 100644 --- a/src/cpl_cli/configuration/__init__.py +++ b/src/cpl_cli/configuration/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -30,5 +30,5 @@ from .version_settings_name_enum import VersionSettingsNameEnum from .workspace_settings import WorkspaceSettings from .workspace_settings_name_enum import WorkspaceSettingsNameEnum -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/cpl-cli.json b/src/cpl_cli/cpl-cli.json index e73437ed..fedc4378 100644 --- a/src/cpl_cli/cpl-cli.json +++ b/src/cpl_cli/cpl-cli.json @@ -3,7 +3,7 @@ "Name": "cpl-cli", "Version": { "Major": "2023", - "Minor": "2", + "Minor": "4", "Micro": "0" }, "Author": "Sven Heidemann", @@ -16,7 +16,7 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "cpl-core>=2023.2.0" + "cpl-core>=2023.4.0" ], "DevDependencies": [], "PythonVersion": ">=3.10", diff --git a/src/cpl_cli/helper/__init__.py b/src/cpl_cli/helper/__init__.py index 5cab2e70..3bfeaebe 100644 --- a/src/cpl_cli/helper/__init__.py +++ b/src/cpl_cli/helper/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.helper" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.helper' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/live_server/__init__.py b/src/cpl_cli/live_server/__init__.py index 6f7870d9..f750b0dd 100644 --- a/src/cpl_cli/live_server/__init__.py +++ b/src/cpl_cli/live_server/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.live_server" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.live_server' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/migrations/__init__.py b/src/cpl_cli/migrations/__init__.py index 884ff742..74c424ad 100644 --- a/src/cpl_cli/migrations/__init__.py +++ b/src/cpl_cli/migrations/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.migrations" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.migrations' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/migrations/base/__init__.py b/src/cpl_cli/migrations/base/__init__.py index 5c0949a2..275ae01e 100644 --- a/src/cpl_cli/migrations/base/__init__.py +++ b/src/cpl_cli/migrations/base/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.migrations.base" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.migrations.base' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/migrations/service/__init__.py b/src/cpl_cli/migrations/service/__init__.py index ba64c7c7..82118855 100644 --- a/src/cpl_cli/migrations/service/__init__.py +++ b/src/cpl_cli/migrations/service/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.migrations.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.migrations.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/publish/__init__.py b/src/cpl_cli/publish/__init__.py index 0bcd9dc1..dfbe9881 100644 --- a/src/cpl_cli/publish/__init__.py +++ b/src/cpl_cli/publish/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.publish" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.publish' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .publisher_abc import PublisherABC from .publisher_service import PublisherService -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/source_creator/__init__.py b/src/cpl_cli/source_creator/__init__.py index 244632b0..d4156fee 100644 --- a/src/cpl_cli/source_creator/__init__.py +++ b/src/cpl_cli/source_creator/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.source_creator" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.source_creator' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_cli/validators/__init__.py b/src/cpl_cli/validators/__init__.py index 3ee9c30c..eb425012 100644 --- a/src/cpl_cli/validators/__init__.py +++ b/src/cpl_cli/validators/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = "cpl_cli.validators" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_cli.validators' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/__init__.py b/src/cpl_core/__init__.py index 9d6075d5..bcbe14df 100644 --- a/src/cpl_core/__init__.py +++ b/src/cpl_core/__init__.py @@ -11,16 +11,16 @@ CPL core package """ -__title__ = "cpl_core" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/application/__init__.py b/src/cpl_core/application/__init__.py index bce58fea..b9375271 100644 --- a/src/cpl_core/application/__init__.py +++ b/src/cpl_core/application/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.application" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.application' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -28,5 +28,5 @@ from .application_extension_abc import ApplicationExtensionABC from .startup_abc import StartupABC from .startup_extension_abc import StartupExtensionABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/configuration/__init__.py b/src/cpl_core/configuration/__init__.py index 22029e2d..afe9c0d9 100644 --- a/src/cpl_core/configuration/__init__.py +++ b/src/cpl_core/configuration/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -34,5 +34,5 @@ from .flag_argument import FlagArgument from .validator_abc import ValidatorABC from .variable_argument import VariableArgument -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/console/__init__.py b/src/cpl_core/console/__init__.py index ee160268..fc9f6bdd 100644 --- a/src/cpl_core/console/__init__.py +++ b/src/cpl_core/console/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.console" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.console' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -27,5 +27,5 @@ from .console_call import ConsoleCall from .foreground_color_enum import ForegroundColorEnum from .spinner_thread import SpinnerThread -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/cpl-core.json b/src/cpl_core/cpl-core.json index e02e93e7..58f9d472 100644 --- a/src/cpl_core/cpl-core.json +++ b/src/cpl_core/cpl-core.json @@ -3,7 +3,7 @@ "Name": "cpl-core", "Version": { "Major": "2023", - "Minor": "2", + "Minor": "4", "Micro": "0" }, "Author": "Sven Heidemann", @@ -16,17 +16,17 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "art==5.8", + "art==5.9", "colorama==0.4.6", "mysql-connector==2.2.9", "psutil==5.9.4", - "packaging==22.0", + "packaging==23.0", "pynput==1.7.6", - "setuptools==65.6.3", + "setuptools==67.6.1", "tabulate==0.9.0", - "termcolor==2.1.1", - "watchdog==2.2.0", - "wheel==0.38.4" + "termcolor==2.2.0", + "watchdog==3.0.0", + "wheel==0.40.0" ], "DevDependencies": [ "Sphinx==5.0.2", diff --git a/src/cpl_core/database/__init__.py b/src/cpl_core/database/__init__.py index d677f78c..1f643cee 100644 --- a/src/cpl_core/database/__init__.py +++ b/src/cpl_core/database/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.database" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.database' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -25,5 +25,5 @@ from .database_settings_name_enum import DatabaseSettingsNameEnum from .database_settings import DatabaseSettings from .table_abc import TableABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/database/connection/__init__.py b/src/cpl_core/database/connection/__init__.py index 3d2fe414..3cb8744a 100644 --- a/src/cpl_core/database/connection/__init__.py +++ b/src/cpl_core/database/connection/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.database.connection" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.database.connection' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .database_connection import DatabaseConnection from .database_connection_abc import DatabaseConnectionABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/database/context/__init__.py b/src/cpl_core/database/context/__init__.py index 0f87b4ba..7d31d77f 100644 --- a/src/cpl_core/database/context/__init__.py +++ b/src/cpl_core/database/context/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.database.context" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.database.context' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .database_context import DatabaseContext from .database_context_abc import DatabaseContextABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/dependency_injection/__init__.py b/src/cpl_core/dependency_injection/__init__.py index 12154458..22a84d2c 100644 --- a/src/cpl_core/dependency_injection/__init__.py +++ b/src/cpl_core/dependency_injection/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.dependency_injection" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.dependency_injection' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -30,5 +30,5 @@ from .service_lifetime_enum import ServiceLifetimeEnum from .service_provider import ServiceProvider from .service_provider_abc import ServiceProviderABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/environment/__init__.py b/src/cpl_core/environment/__init__.py index 4a89d740..206fdb77 100644 --- a/src/cpl_core/environment/__init__.py +++ b/src/cpl_core/environment/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.environment" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.environment' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -25,5 +25,5 @@ from .application_environment_abc import ApplicationEnvironmentABC from .environment_name_enum import EnvironmentNameEnum from .application_environment import ApplicationEnvironment -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/logging/__init__.py b/src/cpl_core/logging/__init__.py index 7a2ad7de..bbe55b4d 100644 --- a/src/cpl_core/logging/__init__.py +++ b/src/cpl_core/logging/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.logging" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.logging' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -27,5 +27,5 @@ from .logging_level_enum import LoggingLevelEnum from .logging_settings import LoggingSettings from .logging_settings_name_enum import LoggingSettingsNameEnum -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/mailing/__init__.py b/src/cpl_core/mailing/__init__.py index 8369836f..445aab30 100644 --- a/src/cpl_core/mailing/__init__.py +++ b/src/cpl_core/mailing/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.mailing" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.mailing' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -27,5 +27,5 @@ from .email_client_abc import EMailClientABC from .email_client_settings import EMailClientSettings from .email_client_settings_name_enum import EMailClientSettingsNameEnum -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/pipes/__init__.py b/src/cpl_core/pipes/__init__.py index e136c326..6a4d1f5e 100644 --- a/src/cpl_core/pipes/__init__.py +++ b/src/cpl_core/pipes/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.pipes" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.pipes' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -29,5 +29,5 @@ from .pipe_abc import PipeABC from .to_camel_case_pipe import ToCamelCasePipe from .to_snake_case_pipe import ToSnakeCasePipe -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/time/__init__.py b/src/cpl_core/time/__init__.py index f03e16f8..d3462acb 100644 --- a/src/cpl_core/time/__init__.py +++ b/src/cpl_core/time/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.time" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.time' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .time_format_settings import TimeFormatSettings from .time_format_settings_names_enum import TimeFormatSettingsNamesEnum -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_core/utils/__init__.py b/src/cpl_core/utils/__init__.py index 769fa41c..6d666faf 100644 --- a/src/cpl_core/utils/__init__.py +++ b/src/cpl_core/utils/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = "cpl_core.utils" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_core.utils' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -25,5 +25,5 @@ from .credential_manager import CredentialManager from .string import String from .pip import Pip -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/.cpl/__init__.py b/src/cpl_discord/.cpl/__init__.py index a3df6419..62f71a8c 100644 --- a/src/cpl_discord/.cpl/__init__.py +++ b/src/cpl_discord/.cpl/__init__.py @@ -11,16 +11,16 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/__init__.py b/src/cpl_discord/__init__.py index eed82b75..f5a10186 100644 --- a/src/cpl_discord/__init__.py +++ b/src/cpl_discord/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -58,5 +58,5 @@ def get_discord_collection(services: "ServiceCollectionABC") -> "DiscordCollecti # build-ignore-end -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/application/__init__.py b/src/cpl_discord/application/__init__.py index cf44aef8..e9b33369 100644 --- a/src/cpl_discord/application/__init__.py +++ b/src/cpl_discord/application/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.application" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.application' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .discord_bot_application_abc import DiscordBotApplicationABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/command/__init__.py b/src/cpl_discord/command/__init__.py index f3de7e25..271958e4 100644 --- a/src/cpl_discord/command/__init__.py +++ b/src/cpl_discord/command/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.command" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.command' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .discord_command_abc import DiscordCommandABC from .discord_commands_meta import DiscordCogMeta -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/configuration/__init__.py b/src/cpl_discord/configuration/__init__.py index 7bab63a6..649f06a0 100644 --- a/src/cpl_discord/configuration/__init__.py +++ b/src/cpl_discord/configuration/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.configuration" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.configuration' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .discord_bot_settings import DiscordBotSettings -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/container/__init__.py b/src/cpl_discord/container/__init__.py index 15a40c30..b5761710 100644 --- a/src/cpl_discord/container/__init__.py +++ b/src/cpl_discord/container/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.container" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.container' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -30,5 +30,5 @@ from .text_channel import TextChannel from .thread import Thread from .voice_channel import VoiceChannel -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/cpl-discord.json b/src/cpl_discord/cpl-discord.json index 7761a2c3..1b621b32 100644 --- a/src/cpl_discord/cpl-discord.json +++ b/src/cpl_discord/cpl-discord.json @@ -3,7 +3,7 @@ "Name": "cpl-discord", "Version": { "Major": "2023", - "Minor": "2", + "Minor": "4", "Micro": "0" }, "Author": "Sven Heidemann", @@ -16,12 +16,12 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "cpl-core>=2023.2.0", + "cpl-core>=2023.4.0", "discord.py==2.1.0", - "cpl-query>=2023.2.0" + "cpl-query>=2023.4.0" ], "DevDependencies": [ - "cpl-cli>=2023.2.0" + "cpl-cli>=2023.4.0" ], "PythonVersion": ">=3.10", "PythonPath": {}, diff --git a/src/cpl_discord/events/__init__.py b/src/cpl_discord/events/__init__.py index 011174cc..c142b5d5 100644 --- a/src/cpl_discord/events/__init__.py +++ b/src/cpl_discord/events/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.events" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.events' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -68,5 +68,5 @@ from .on_user_update_abc import OnUserUpdateABC from .on_voice_state_update_abc import OnVoiceStateUpdateABC from .on_webhooks_update_abc import OnWebhooksUpdateABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/helper/__init__.py b/src/cpl_discord/helper/__init__.py index c6f8fe66..b6daeb1d 100644 --- a/src/cpl_discord/helper/__init__.py +++ b/src/cpl_discord/helper/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.helper" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.helper' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .to_containers_converter import ToContainersConverter -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_discord/service/__init__.py b/src/cpl_discord/service/__init__.py index 00a54d86..6bc5d86a 100644 --- a/src/cpl_discord/service/__init__.py +++ b/src/cpl_discord/service/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = "cpl_discord.service" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_discord.service' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -28,5 +28,5 @@ from .discord_collection import DiscordCollection from .discord_service import DiscordService from .discord_service_abc import DiscordServiceABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_query/__init__.py b/src/cpl_query/__init__.py index 99ff3bc8..405599f6 100644 --- a/src/cpl_query/__init__.py +++ b/src/cpl_query/__init__.py @@ -11,16 +11,16 @@ CPL Python integrated Queries """ -__title__ = "cpl_query" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_query' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_query/base/__init__.py b/src/cpl_query/base/__init__.py index b32cff04..b5c8942a 100644 --- a/src/cpl_query/base/__init__.py +++ b/src/cpl_query/base/__init__.py @@ -11,16 +11,16 @@ CPL Python integrated Queries """ -__title__ = "cpl_query.base" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_query.base' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_query/base/ordered_queryable_abc.py b/src/cpl_query/base/ordered_queryable_abc.py index f3a0be55..4a00d10a 100644 --- a/src/cpl_query/base/ordered_queryable_abc.py +++ b/src/cpl_query/base/ordered_queryable_abc.py @@ -1,6 +1,6 @@ from abc import abstractmethod from collections.abc import Callable -from typing import Iterable +from typing import Iterable, Self from cpl_query.base.queryable_abc import QueryableABC @@ -14,7 +14,7 @@ class OrderedQueryableABC(QueryableABC): self._funcs.append(_func) @abstractmethod - def then_by(self, func: Callable) -> "OrderedQueryableABC": + def then_by(self, func: Callable) -> Self: r"""Sorts OrderedList in ascending order by function Parameter: @@ -26,7 +26,7 @@ class OrderedQueryableABC(QueryableABC): pass @abstractmethod - def then_by_descending(self, func: Callable) -> "OrderedQueryableABC": + def then_by_descending(self, func: Callable) -> Self: r"""Sorts OrderedList in descending order by function Parameter: diff --git a/src/cpl_query/cpl-query.json b/src/cpl_query/cpl-query.json index fa3f9e56..19fde564 100644 --- a/src/cpl_query/cpl-query.json +++ b/src/cpl_query/cpl-query.json @@ -3,7 +3,7 @@ "Name": "cpl-query", "Version": { "Major": "2023", - "Minor": "2", + "Minor": "4", "Micro": "0" }, "Author": "Sven Heidemann", @@ -17,7 +17,7 @@ "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [], "DevDependencies": [], - "PythonVersion": ">=3.10", + "PythonVersion": ">=3.11", "PythonPath": {}, "Classifiers": [] }, diff --git a/src/cpl_query/enumerable/__init__.py b/src/cpl_query/enumerable/__init__.py index 4b41c7b4..2b534d3c 100644 --- a/src/cpl_query/enumerable/__init__.py +++ b/src/cpl_query/enumerable/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = "cpl_query.enumerable" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_query.enumerable' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .enumerable import Enumerable from .enumerable_abc import EnumerableABC -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_query/extension/__init__.py b/src/cpl_query/extension/__init__.py index 83cf4f7b..38523e41 100644 --- a/src/cpl_query/extension/__init__.py +++ b/src/cpl_query/extension/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = "cpl_query.extension" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_query.extension' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports: from .list import List -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_query/iterable/__init__.py b/src/cpl_query/iterable/__init__.py index 007eaaa1..bd4e4cc9 100644 --- a/src/cpl_query/iterable/__init__.py +++ b/src/cpl_query/iterable/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = "cpl_query.iterable" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_query.iterable' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .iterable_abc import IterableABC from .iterable import Iterable -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_translation/__init__.py b/src/cpl_translation/__init__.py index 4da3b7f8..dc911bb2 100644 --- a/src/cpl_translation/__init__.py +++ b/src/cpl_translation/__init__.py @@ -11,11 +11,11 @@ CPL translation extension """ -__title__ = "cpl_translation" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" -__version__ = "2023.2.0" +__title__ = 'cpl_translation' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' +__version__ = '2023.4.0' from collections import namedtuple @@ -25,7 +25,6 @@ from .translate_pipe import TranslatePipe from .translation_service import TranslationService from .translation_service_abc import TranslationServiceABC from .translation_settings import TranslationSettings - # build-ignore @@ -52,5 +51,5 @@ def init(): init() # build-ignore-end -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2023", minor="2", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2023', minor='4', micro='0') diff --git a/src/cpl_translation/cpl-translation.json b/src/cpl_translation/cpl-translation.json index d2a9dd9f..f5eb9b0d 100644 --- a/src/cpl_translation/cpl-translation.json +++ b/src/cpl_translation/cpl-translation.json @@ -3,7 +3,7 @@ "Name": "cpl-translation", "Version": { "Major": "2023", - "Minor": "2", + "Minor": "4", "Micro": "0" }, "Author": "Sven Heidemann", @@ -16,10 +16,10 @@ "LicenseName": "MIT", "LicenseDescription": "MIT, see LICENSE for more details.", "Dependencies": [ - "cpl-core>=2023.2.0" + "cpl-core>=2023.4.0" ], "DevDependencies": [ - "cpl-cli>=2023.2.0" + "cpl-cli>=2023.4.0" ], "PythonVersion": ">=3.10", "PythonPath": {}, diff --git a/tools/set_pip_urls/__init__.py b/tools/set_pip_urls/__init__.py index 5c7b277e..c4dc9827 100644 --- a/tools/set_pip_urls/__init__.py +++ b/tools/set_pip_urls/__init__.py @@ -11,16 +11,16 @@ CPL internal tool to set pip URL for CLI by environment """ -__title__ = "set_pip_urls" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 sh-edraft.de" -__version__ = "2022.12.0" +__title__ = 'set_pip_urls' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '2022.12.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2022", minor="12", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2022', minor='12', micro='0') diff --git a/tools/set_version/__init__.py b/tools/set_version/__init__.py index 81e446bc..042d5b2f 100644 --- a/tools/set_version/__init__.py +++ b/tools/set_version/__init__.py @@ -11,16 +11,16 @@ CPL internal tool to set version from branch name """ -__title__ = "set_version" -__author__ = "Sven Heidemann" -__license__ = "MIT" -__copyright__ = "Copyright (c) 2022 sh-edraft.de" -__version__ = "2022.12.0" +__title__ = 'set_version' +__author__ = 'Sven Heidemann' +__license__ = 'MIT' +__copyright__ = 'Copyright (c) 2022 sh-edraft.de' +__version__ = '2022.12.0' from collections import namedtuple # imports: -VersionInfo = namedtuple("VersionInfo", "major minor micro") -version_info = VersionInfo(major="2022", minor="12", micro="0") +VersionInfo = namedtuple('VersionInfo', 'major minor micro') +version_info = VersionInfo(major='2022', minor='12', micro='0') -- 2.45.2 From 8c012e5902d681c01f15dfbdeb56055b80894e4c Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 13:33:45 +0200 Subject: [PATCH 2/6] Set Self type --- src/cpl_core/cpl-core.json | 2 +- src/cpl_query/base/queryable_abc.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/cpl_core/cpl-core.json b/src/cpl_core/cpl-core.json index 58f9d472..040a84ee 100644 --- a/src/cpl_core/cpl-core.json +++ b/src/cpl_core/cpl-core.json @@ -36,7 +36,7 @@ "sphinx-markdown-builder==0.5.5", "pygount==1.5.1" ], - "PythonVersion": ">=3.10", + "PythonVersion": ">=3.11", "PythonPath": {}, "Classifiers": [] }, diff --git a/src/cpl_query/base/queryable_abc.py b/src/cpl_query/base/queryable_abc.py index 7cd6d29d..3a80449c 100644 --- a/src/cpl_query/base/queryable_abc.py +++ b/src/cpl_query/base/queryable_abc.py @@ -1,4 +1,4 @@ -from typing import Optional, Callable, Union, Iterable +from typing import Optional, Callable, Union, Iterable, Self from cpl_query._helper import is_number from cpl_query.base.sequence import Sequence @@ -103,7 +103,7 @@ class QueryableABC(Sequence): return self.where(_func).count() - def distinct(self, _func: Callable = None) -> "QueryableABC": + def distinct(self, _func: Callable = None) -> Self: r"""Returns list without redundancies Parameter @@ -212,7 +212,7 @@ class QueryableABC(Sequence): return self - def group_by(self, _func: Callable = None) -> "QueryableABC": + def group_by(self, _func: Callable = None) -> Self: r"""Groups by func Returns @@ -353,7 +353,7 @@ class QueryableABC(Sequence): return OrderedQueryable(self.type, sorted(self, key=_func, reverse=True), _func) - def reverse(self) -> "QueryableABC": + def reverse(self) -> Self: r"""Reverses list Returns @@ -362,7 +362,7 @@ class QueryableABC(Sequence): """ return type(self)(self._type, reversed(self._values)) - def select(self, _func: Callable) -> "QueryableABC": + def select(self, _func: Callable) -> Self: r"""Formats each element of list to a given format Returns @@ -374,7 +374,7 @@ class QueryableABC(Sequence): return type(self)(object, [_func(_o) for _o in self]) - def select_many(self, _func: Callable) -> "QueryableABC": + def select_many(self, _func: Callable) -> Self: r"""Flattens resulting lists to one Returns @@ -418,7 +418,7 @@ class QueryableABC(Sequence): return self._values[0] - def skip(self, _index: int) -> "QueryableABC": + def skip(self, _index: int) -> Self: r"""Skips all elements from index Parameter @@ -435,7 +435,7 @@ class QueryableABC(Sequence): return type(self)(self.type, self._values[_index:]) - def skip_last(self, _index: int) -> "QueryableABC": + def skip_last(self, _index: int) -> Self: r"""Skips all elements after index Parameter @@ -477,7 +477,7 @@ class QueryableABC(Sequence): return result - def split(self, _func: Callable) -> "QueryableABC": + def split(self, _func: Callable) -> Self: r"""Splits the list by given function @@ -510,7 +510,7 @@ class QueryableABC(Sequence): return type(self)(self._type, query_groups) - def take(self, _index: int) -> "QueryableABC": + def take(self, _index: int) -> Self: r"""Takes all elements from index Parameter @@ -527,7 +527,7 @@ class QueryableABC(Sequence): return type(self)(self._type, self._values[:_index]) - def take_last(self, _index: int) -> "QueryableABC": + def take_last(self, _index: int) -> Self: r"""Takes all elements after index Parameter @@ -546,7 +546,7 @@ class QueryableABC(Sequence): return type(self)(self._type, self._values[index:]) - def where(self, _func: Callable = None) -> "QueryableABC": + def where(self, _func: Callable = None) -> Self: r"""Select element by function Parameter -- 2.45.2 From 083e1ce4a18b6a3fdbc541ce94486e2d6c104395 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 13:55:50 +0200 Subject: [PATCH 3/6] Fixed OrderedQueryable imports --- src/cpl_query/base/ordered_queryable.py | 7 ++++--- src/cpl_query/base/queryable_abc.py | 8 +++++++- unittests/unittests_query/iterable_query_test_case.py | 2 ++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/cpl_query/base/ordered_queryable.py b/src/cpl_query/base/ordered_queryable.py index 96453089..2bc18bf4 100644 --- a/src/cpl_query/base/ordered_queryable.py +++ b/src/cpl_query/base/ordered_queryable.py @@ -1,4 +1,5 @@ from collections.abc import Callable +from typing import Self from cpl_query.base.ordered_queryable_abc import OrderedQueryableABC from cpl_query.exceptions import ArgumentNoneException, ExceptionArgument @@ -6,12 +7,12 @@ from cpl_query.iterable.iterable import Iterable class OrderedQueryable(OrderedQueryableABC): - r"""Implementation of :class: `cpl_query.extension.Iterable` `cpl_query.extension.OrderedIterableABC`""" + r"""Implementation of :class: `cpl_query.base.ordered_queryable_abc.OrderedQueryableABC`""" def __init__(self, _t: type, _values: Iterable = None, _func: Callable = None): OrderedQueryableABC.__init__(self, _t, _values, _func) - def then_by(self: OrderedQueryableABC, _func: Callable) -> OrderedQueryableABC: + def then_by(self, _func: Callable) -> Self: if self is None: raise ArgumentNoneException(ExceptionArgument.list) @@ -22,7 +23,7 @@ class OrderedQueryable(OrderedQueryableABC): return OrderedQueryable(self.type, sorted(self, key=lambda *args: [f(*args) for f in self._funcs]), _func) - def then_by_descending(self: OrderedQueryableABC, _func: Callable) -> OrderedQueryableABC: + def then_by_descending(self, _func: Callable) -> Self: if self is None: raise ArgumentNoneException(ExceptionArgument.list) diff --git a/src/cpl_query/base/queryable_abc.py b/src/cpl_query/base/queryable_abc.py index 3a80449c..578c3c53 100644 --- a/src/cpl_query/base/queryable_abc.py +++ b/src/cpl_query/base/queryable_abc.py @@ -1,6 +1,12 @@ +from __future__ import annotations + from typing import Optional, Callable, Union, Iterable, Self +from typing import TYPE_CHECKING from cpl_query._helper import is_number + +if TYPE_CHECKING: + from cpl_query.base.ordered_queryable_abc import OrderedQueryableABC from cpl_query.base.sequence import Sequence from cpl_query.exceptions import ( InvalidTypeException, @@ -315,7 +321,7 @@ class QueryableABC(Sequence): return _func(min(self, key=_func)) - def order_by(self, _func: Callable = None) -> "OrderedQueryableABC": + def order_by(self, _func: Callable = None) -> OrderedQueryableABC: r"""Sorts elements by function in ascending order Parameter diff --git a/unittests/unittests_query/iterable_query_test_case.py b/unittests/unittests_query/iterable_query_test_case.py index 2b44c25e..71f2e6eb 100644 --- a/unittests/unittests_query/iterable_query_test_case.py +++ b/unittests/unittests_query/iterable_query_test_case.py @@ -251,6 +251,8 @@ class IterableQueryTestCase(unittest.TestCase): self.assertEqual(res, s_res) def test_then_by_descending(self): + x = List(int, List.range(1, 10)).order_by(lambda x: x).th + res = ( self._tests.order_by_descending(lambda user: user.address.street) .then_by_descending(lambda user: user.address.nr) -- 2.45.2 From 01309e3124bba5cf5c567772b520e627b9187fa7 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 13:58:37 +0200 Subject: [PATCH 4/6] Cleaned code --- src/cpl_query/base/__init__.py | 20 +++++++++++-------- .../iterable_query_test_case.py | 2 -- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/cpl_query/base/__init__.py b/src/cpl_query/base/__init__.py index b5c8942a..12c9541e 100644 --- a/src/cpl_query/base/__init__.py +++ b/src/cpl_query/base/__init__.py @@ -11,16 +11,20 @@ CPL Python integrated Queries """ -__title__ = 'cpl_query.base' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_query.base" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple - # imports: +from .default_lambda import default_lambda +from .ordered_queryable import OrderedQueryable +from .ordered_queryable_abc import OrderedQueryableABC +from .queryable_abc import QueryableABC +from .sequence import Sequence -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/unittests/unittests_query/iterable_query_test_case.py b/unittests/unittests_query/iterable_query_test_case.py index 71f2e6eb..2b44c25e 100644 --- a/unittests/unittests_query/iterable_query_test_case.py +++ b/unittests/unittests_query/iterable_query_test_case.py @@ -251,8 +251,6 @@ class IterableQueryTestCase(unittest.TestCase): self.assertEqual(res, s_res) def test_then_by_descending(self): - x = List(int, List.range(1, 10)).order_by(lambda x: x).th - res = ( self._tests.order_by_descending(lambda user: user.address.street) .then_by_descending(lambda user: user.address.nr) -- 2.45.2 From 5d6e7677dee6107c765f839e0dbeaebb10c55074 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 14:42:43 +0200 Subject: [PATCH 5/6] Improved typing in query --- src/cpl_query/base/queryable_abc.py | 7 +++++-- src/cpl_query/base/sequence.py | 2 +- unittests/unittests_query/iterable_query_test_case.py | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/cpl_query/base/queryable_abc.py b/src/cpl_query/base/queryable_abc.py index 578c3c53..95cadadd 100644 --- a/src/cpl_query/base/queryable_abc.py +++ b/src/cpl_query/base/queryable_abc.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import Optional, Callable, Union, Iterable, Self +from typing import Optional, Callable, Union, Iterable, Self, Any from typing import TYPE_CHECKING from cpl_query._helper import is_number @@ -378,7 +378,10 @@ class QueryableABC(Sequence): if _func is None: _func = _default_lambda - return type(self)(object, [_func(_o) for _o in self]) + _l = [_func(_o) for _o in self] + _t = type(_l[0]) if len(_l) > 0 else Any + + return type(self)(_t, _l) def select_many(self, _func: Callable) -> Self: r"""Flattens resulting lists to one diff --git a/src/cpl_query/base/sequence.py b/src/cpl_query/base/sequence.py index 95aaaa0a..22ea0f34 100644 --- a/src/cpl_query/base/sequence.py +++ b/src/cpl_query/base/sequence.py @@ -25,7 +25,7 @@ class Sequence(ABC): return self.to_list().__len__() @classmethod - def __class_getitem__(cls, _t: type): + def __class_getitem__(cls, _t: type) -> type: return _t def __repr__(self): diff --git a/unittests/unittests_query/iterable_query_test_case.py b/unittests/unittests_query/iterable_query_test_case.py index 2b44c25e..3592d4f1 100644 --- a/unittests/unittests_query/iterable_query_test_case.py +++ b/unittests/unittests_query/iterable_query_test_case.py @@ -270,6 +270,12 @@ class IterableQueryTestCase(unittest.TestCase): self.assertEqual(res.to_list(), l_res) def test_select(self): + def test(_l: List) -> List[int]: + return _l.select(lambda user: user.address.nr) + + self.assertEqual(List[User], self._tests.type) + self.assertEqual(List[int], test(self._tests).type) + range_list = List(int, range(0, 100)) selected_range = range_list.select(lambda x: x + 1) -- 2.45.2 From d0a19458c5ab1d2c12a688805964967fa3304c69 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 4 Apr 2023 14:50:19 +0200 Subject: [PATCH 6/6] Formatted code --- src/cpl_cli/.cpl/__init__.py | 14 +++++++------- src/cpl_cli/__init__.py | 14 +++++++------- src/cpl_cli/_templates/__init__.py | 14 +++++++------- src/cpl_cli/_templates/publish/__init__.py | 14 +++++++------- src/cpl_cli/abc/__init__.py | 14 +++++++------- src/cpl_cli/command/__init__.py | 14 +++++++------- src/cpl_cli/configuration/__init__.py | 14 +++++++------- src/cpl_cli/helper/__init__.py | 14 +++++++------- src/cpl_cli/live_server/__init__.py | 14 +++++++------- src/cpl_cli/migrations/__init__.py | 14 +++++++------- src/cpl_cli/migrations/base/__init__.py | 14 +++++++------- src/cpl_cli/migrations/service/__init__.py | 14 +++++++------- src/cpl_cli/publish/__init__.py | 14 +++++++------- src/cpl_cli/source_creator/__init__.py | 14 +++++++------- src/cpl_cli/validators/__init__.py | 14 +++++++------- src/cpl_core/__init__.py | 14 +++++++------- src/cpl_core/application/__init__.py | 14 +++++++------- src/cpl_core/configuration/__init__.py | 14 +++++++------- src/cpl_core/console/__init__.py | 14 +++++++------- src/cpl_core/database/__init__.py | 14 +++++++------- src/cpl_core/database/connection/__init__.py | 14 +++++++------- src/cpl_core/database/context/__init__.py | 14 +++++++------- src/cpl_core/dependency_injection/__init__.py | 14 +++++++------- src/cpl_core/environment/__init__.py | 14 +++++++------- src/cpl_core/logging/__init__.py | 14 +++++++------- src/cpl_core/mailing/__init__.py | 14 +++++++------- src/cpl_core/pipes/__init__.py | 14 +++++++------- src/cpl_core/time/__init__.py | 14 +++++++------- src/cpl_core/utils/__init__.py | 14 +++++++------- src/cpl_discord/.cpl/__init__.py | 14 +++++++------- src/cpl_discord/__init__.py | 14 +++++++------- src/cpl_discord/application/__init__.py | 14 +++++++------- src/cpl_discord/command/__init__.py | 14 +++++++------- src/cpl_discord/configuration/__init__.py | 14 +++++++------- src/cpl_discord/container/__init__.py | 14 +++++++------- src/cpl_discord/events/__init__.py | 14 +++++++------- src/cpl_discord/helper/__init__.py | 14 +++++++------- src/cpl_discord/service/__init__.py | 14 +++++++------- src/cpl_query/__init__.py | 14 +++++++------- src/cpl_query/enumerable/__init__.py | 14 +++++++------- src/cpl_query/extension/__init__.py | 14 +++++++------- src/cpl_query/iterable/__init__.py | 14 +++++++------- src/cpl_translation/__init__.py | 15 ++++++++------- tools/set_pip_urls/__init__.py | 14 +++++++------- tools/set_version/__init__.py | 14 +++++++------- 45 files changed, 316 insertions(+), 315 deletions(-) diff --git a/src/cpl_cli/.cpl/__init__.py b/src/cpl_cli/.cpl/__init__.py index 370b3e8b..b89a974a 100644 --- a/src/cpl_cli/.cpl/__init__.py +++ b/src/cpl_cli/.cpl/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/__init__.py b/src/cpl_cli/__init__.py index e942422b..daff2148 100644 --- a/src/cpl_cli/__init__.py +++ b/src/cpl_cli/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -27,5 +27,5 @@ from .error import Error from .main import main from .startup import Startup -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/_templates/__init__.py b/src/cpl_cli/_templates/__init__.py index c6c78af8..7d78b8f1 100644 --- a/src/cpl_cli/_templates/__init__.py +++ b/src/cpl_cli/_templates/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli._templates' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli._templates" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/_templates/publish/__init__.py b/src/cpl_cli/_templates/publish/__init__.py index 6098d650..4e2340d9 100644 --- a/src/cpl_cli/_templates/publish/__init__.py +++ b/src/cpl_cli/_templates/publish/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli._templates.publish' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli._templates.publish" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/abc/__init__.py b/src/cpl_cli/abc/__init__.py index f62b552d..92f00d2f 100644 --- a/src/cpl_cli/abc/__init__.py +++ b/src/cpl_cli/abc/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.abc' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.abc" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/command/__init__.py b/src/cpl_cli/command/__init__.py index 7ef73255..8a33ad19 100644 --- a/src/cpl_cli/command/__init__.py +++ b/src/cpl_cli/command/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.command' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.command" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -28,5 +28,5 @@ from .new_service import NewService from .publish_service import PublishService from .version_service import VersionService -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/configuration/__init__.py b/src/cpl_cli/configuration/__init__.py index 242c9497..facabf20 100644 --- a/src/cpl_cli/configuration/__init__.py +++ b/src/cpl_cli/configuration/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.configuration' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.configuration" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -30,5 +30,5 @@ from .version_settings_name_enum import VersionSettingsNameEnum from .workspace_settings import WorkspaceSettings from .workspace_settings_name_enum import WorkspaceSettingsNameEnum -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/helper/__init__.py b/src/cpl_cli/helper/__init__.py index 3bfeaebe..78ac4c3f 100644 --- a/src/cpl_cli/helper/__init__.py +++ b/src/cpl_cli/helper/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.helper' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.helper" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/live_server/__init__.py b/src/cpl_cli/live_server/__init__.py index f750b0dd..ed81df4a 100644 --- a/src/cpl_cli/live_server/__init__.py +++ b/src/cpl_cli/live_server/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.live_server' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.live_server" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/migrations/__init__.py b/src/cpl_cli/migrations/__init__.py index 74c424ad..f93b3ce8 100644 --- a/src/cpl_cli/migrations/__init__.py +++ b/src/cpl_cli/migrations/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.migrations' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.migrations" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/migrations/base/__init__.py b/src/cpl_cli/migrations/base/__init__.py index 275ae01e..98ed351b 100644 --- a/src/cpl_cli/migrations/base/__init__.py +++ b/src/cpl_cli/migrations/base/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.migrations.base' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.migrations.base" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/migrations/service/__init__.py b/src/cpl_cli/migrations/service/__init__.py index 82118855..7c0e2c76 100644 --- a/src/cpl_cli/migrations/service/__init__.py +++ b/src/cpl_cli/migrations/service/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.migrations.service' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.migrations.service" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/publish/__init__.py b/src/cpl_cli/publish/__init__.py index dfbe9881..e27216bb 100644 --- a/src/cpl_cli/publish/__init__.py +++ b/src/cpl_cli/publish/__init__.py @@ -11,11 +11,11 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.publish' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.publish" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .publisher_abc import PublisherABC from .publisher_service import PublisherService -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/source_creator/__init__.py b/src/cpl_cli/source_creator/__init__.py index d4156fee..4a700c0c 100644 --- a/src/cpl_cli/source_creator/__init__.py +++ b/src/cpl_cli/source_creator/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.source_creator' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.source_creator" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_cli/validators/__init__.py b/src/cpl_cli/validators/__init__.py index eb425012..0d420638 100644 --- a/src/cpl_cli/validators/__init__.py +++ b/src/cpl_cli/validators/__init__.py @@ -11,16 +11,16 @@ CPL Command Line Interface """ -__title__ = 'cpl_cli.validators' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_cli.validators" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/__init__.py b/src/cpl_core/__init__.py index bcbe14df..217cdd72 100644 --- a/src/cpl_core/__init__.py +++ b/src/cpl_core/__init__.py @@ -11,16 +11,16 @@ CPL core package """ -__title__ = 'cpl_core' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/application/__init__.py b/src/cpl_core/application/__init__.py index b9375271..b0b3ed12 100644 --- a/src/cpl_core/application/__init__.py +++ b/src/cpl_core/application/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.application' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.application" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -28,5 +28,5 @@ from .application_extension_abc import ApplicationExtensionABC from .startup_abc import StartupABC from .startup_extension_abc import StartupExtensionABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/configuration/__init__.py b/src/cpl_core/configuration/__init__.py index afe9c0d9..0d6466ac 100644 --- a/src/cpl_core/configuration/__init__.py +++ b/src/cpl_core/configuration/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.configuration' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.configuration" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -34,5 +34,5 @@ from .flag_argument import FlagArgument from .validator_abc import ValidatorABC from .variable_argument import VariableArgument -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/console/__init__.py b/src/cpl_core/console/__init__.py index fc9f6bdd..5ce225db 100644 --- a/src/cpl_core/console/__init__.py +++ b/src/cpl_core/console/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.console' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.console" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -27,5 +27,5 @@ from .console_call import ConsoleCall from .foreground_color_enum import ForegroundColorEnum from .spinner_thread import SpinnerThread -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/database/__init__.py b/src/cpl_core/database/__init__.py index 1f643cee..beecbfd7 100644 --- a/src/cpl_core/database/__init__.py +++ b/src/cpl_core/database/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.database' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.database" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -25,5 +25,5 @@ from .database_settings_name_enum import DatabaseSettingsNameEnum from .database_settings import DatabaseSettings from .table_abc import TableABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/database/connection/__init__.py b/src/cpl_core/database/connection/__init__.py index 3cb8744a..1f13709c 100644 --- a/src/cpl_core/database/connection/__init__.py +++ b/src/cpl_core/database/connection/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.database.connection' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.database.connection" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .database_connection import DatabaseConnection from .database_connection_abc import DatabaseConnectionABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/database/context/__init__.py b/src/cpl_core/database/context/__init__.py index 7d31d77f..dc42a7d5 100644 --- a/src/cpl_core/database/context/__init__.py +++ b/src/cpl_core/database/context/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.database.context' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.database.context" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .database_context import DatabaseContext from .database_context_abc import DatabaseContextABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/dependency_injection/__init__.py b/src/cpl_core/dependency_injection/__init__.py index 22a84d2c..cf2c4ad1 100644 --- a/src/cpl_core/dependency_injection/__init__.py +++ b/src/cpl_core/dependency_injection/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.dependency_injection' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.dependency_injection" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -30,5 +30,5 @@ from .service_lifetime_enum import ServiceLifetimeEnum from .service_provider import ServiceProvider from .service_provider_abc import ServiceProviderABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/environment/__init__.py b/src/cpl_core/environment/__init__.py index 206fdb77..ce175378 100644 --- a/src/cpl_core/environment/__init__.py +++ b/src/cpl_core/environment/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.environment' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.environment" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -25,5 +25,5 @@ from .application_environment_abc import ApplicationEnvironmentABC from .environment_name_enum import EnvironmentNameEnum from .application_environment import ApplicationEnvironment -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/logging/__init__.py b/src/cpl_core/logging/__init__.py index bbe55b4d..ff387229 100644 --- a/src/cpl_core/logging/__init__.py +++ b/src/cpl_core/logging/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.logging' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.logging" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -27,5 +27,5 @@ from .logging_level_enum import LoggingLevelEnum from .logging_settings import LoggingSettings from .logging_settings_name_enum import LoggingSettingsNameEnum -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/mailing/__init__.py b/src/cpl_core/mailing/__init__.py index 445aab30..6876693e 100644 --- a/src/cpl_core/mailing/__init__.py +++ b/src/cpl_core/mailing/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.mailing' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.mailing" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -27,5 +27,5 @@ from .email_client_abc import EMailClientABC from .email_client_settings import EMailClientSettings from .email_client_settings_name_enum import EMailClientSettingsNameEnum -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/pipes/__init__.py b/src/cpl_core/pipes/__init__.py index 6a4d1f5e..5a25afb1 100644 --- a/src/cpl_core/pipes/__init__.py +++ b/src/cpl_core/pipes/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.pipes' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.pipes" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -29,5 +29,5 @@ from .pipe_abc import PipeABC from .to_camel_case_pipe import ToCamelCasePipe from .to_snake_case_pipe import ToSnakeCasePipe -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/time/__init__.py b/src/cpl_core/time/__init__.py index d3462acb..070578f0 100644 --- a/src/cpl_core/time/__init__.py +++ b/src/cpl_core/time/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.time' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.time" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .time_format_settings import TimeFormatSettings from .time_format_settings_names_enum import TimeFormatSettingsNamesEnum -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_core/utils/__init__.py b/src/cpl_core/utils/__init__.py index 6d666faf..8dde8c3b 100644 --- a/src/cpl_core/utils/__init__.py +++ b/src/cpl_core/utils/__init__.py @@ -11,11 +11,11 @@ CPL core package """ -__title__ = 'cpl_core.utils' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_core.utils" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -25,5 +25,5 @@ from .credential_manager import CredentialManager from .string import String from .pip import Pip -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/.cpl/__init__.py b/src/cpl_discord/.cpl/__init__.py index 62f71a8c..3c5411c5 100644 --- a/src/cpl_discord/.cpl/__init__.py +++ b/src/cpl_discord/.cpl/__init__.py @@ -11,16 +11,16 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/__init__.py b/src/cpl_discord/__init__.py index f5a10186..c1a6b138 100644 --- a/src/cpl_discord/__init__.py +++ b/src/cpl_discord/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -58,5 +58,5 @@ def get_discord_collection(services: "ServiceCollectionABC") -> "DiscordCollecti # build-ignore-end -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/application/__init__.py b/src/cpl_discord/application/__init__.py index e9b33369..70e4c531 100644 --- a/src/cpl_discord/application/__init__.py +++ b/src/cpl_discord/application/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.application' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.application" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .discord_bot_application_abc import DiscordBotApplicationABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/command/__init__.py b/src/cpl_discord/command/__init__.py index 271958e4..7b0adcc2 100644 --- a/src/cpl_discord/command/__init__.py +++ b/src/cpl_discord/command/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.command' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.command" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .discord_command_abc import DiscordCommandABC from .discord_commands_meta import DiscordCogMeta -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/configuration/__init__.py b/src/cpl_discord/configuration/__init__.py index 649f06a0..30a98b85 100644 --- a/src/cpl_discord/configuration/__init__.py +++ b/src/cpl_discord/configuration/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.configuration' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.configuration" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .discord_bot_settings import DiscordBotSettings -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/container/__init__.py b/src/cpl_discord/container/__init__.py index b5761710..7372d5ba 100644 --- a/src/cpl_discord/container/__init__.py +++ b/src/cpl_discord/container/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.container' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.container" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -30,5 +30,5 @@ from .text_channel import TextChannel from .thread import Thread from .voice_channel import VoiceChannel -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/events/__init__.py b/src/cpl_discord/events/__init__.py index c142b5d5..ac4a3700 100644 --- a/src/cpl_discord/events/__init__.py +++ b/src/cpl_discord/events/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.events' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.events" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -68,5 +68,5 @@ from .on_user_update_abc import OnUserUpdateABC from .on_voice_state_update_abc import OnVoiceStateUpdateABC from .on_webhooks_update_abc import OnWebhooksUpdateABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/helper/__init__.py b/src/cpl_discord/helper/__init__.py index b6daeb1d..4c310fe5 100644 --- a/src/cpl_discord/helper/__init__.py +++ b/src/cpl_discord/helper/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.helper' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.helper" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports from .to_containers_converter import ToContainersConverter -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_discord/service/__init__.py b/src/cpl_discord/service/__init__.py index 6bc5d86a..b8ea43f0 100644 --- a/src/cpl_discord/service/__init__.py +++ b/src/cpl_discord/service/__init__.py @@ -11,11 +11,11 @@ Link between discord.py and CPL """ -__title__ = 'cpl_discord.service' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_discord.service" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -28,5 +28,5 @@ from .discord_collection import DiscordCollection from .discord_service import DiscordService from .discord_service_abc import DiscordServiceABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_query/__init__.py b/src/cpl_query/__init__.py index 405599f6..67c9bb4a 100644 --- a/src/cpl_query/__init__.py +++ b/src/cpl_query/__init__.py @@ -11,16 +11,16 @@ CPL Python integrated Queries """ -__title__ = 'cpl_query' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_query" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_query/enumerable/__init__.py b/src/cpl_query/enumerable/__init__.py index 2b534d3c..39a07797 100644 --- a/src/cpl_query/enumerable/__init__.py +++ b/src/cpl_query/enumerable/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = 'cpl_query.enumerable' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_query.enumerable" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .enumerable import Enumerable from .enumerable_abc import EnumerableABC -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_query/extension/__init__.py b/src/cpl_query/extension/__init__.py index 38523e41..6943b963 100644 --- a/src/cpl_query/extension/__init__.py +++ b/src/cpl_query/extension/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = 'cpl_query.extension' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_query.extension" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -23,5 +23,5 @@ from collections import namedtuple # imports: from .list import List -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_query/iterable/__init__.py b/src/cpl_query/iterable/__init__.py index bd4e4cc9..c1b5035a 100644 --- a/src/cpl_query/iterable/__init__.py +++ b/src/cpl_query/iterable/__init__.py @@ -11,11 +11,11 @@ CPL Python integrated Queries """ -__title__ = 'cpl_query.iterable' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2021 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_query.iterable" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2021 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -24,5 +24,5 @@ from collections import namedtuple from .iterable_abc import IterableABC from .iterable import Iterable -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/src/cpl_translation/__init__.py b/src/cpl_translation/__init__.py index dc911bb2..1a7cbe5d 100644 --- a/src/cpl_translation/__init__.py +++ b/src/cpl_translation/__init__.py @@ -11,11 +11,11 @@ CPL translation extension """ -__title__ = 'cpl_translation' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 - 2023 sh-edraft.de' -__version__ = '2023.4.0' +__title__ = "cpl_translation" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 - 2023 sh-edraft.de" +__version__ = "2023.4.0" from collections import namedtuple @@ -25,6 +25,7 @@ from .translate_pipe import TranslatePipe from .translation_service import TranslationService from .translation_service_abc import TranslationServiceABC from .translation_settings import TranslationSettings + # build-ignore @@ -51,5 +52,5 @@ def init(): init() # build-ignore-end -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2023', minor='4', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2023", minor="4", micro="0") diff --git a/tools/set_pip_urls/__init__.py b/tools/set_pip_urls/__init__.py index c4dc9827..5c7b277e 100644 --- a/tools/set_pip_urls/__init__.py +++ b/tools/set_pip_urls/__init__.py @@ -11,16 +11,16 @@ CPL internal tool to set pip URL for CLI by environment """ -__title__ = 'set_pip_urls' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '2022.12.0' +__title__ = "set_pip_urls" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 sh-edraft.de" +__version__ = "2022.12.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2022', minor='12', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2022", minor="12", micro="0") diff --git a/tools/set_version/__init__.py b/tools/set_version/__init__.py index 042d5b2f..81e446bc 100644 --- a/tools/set_version/__init__.py +++ b/tools/set_version/__init__.py @@ -11,16 +11,16 @@ CPL internal tool to set version from branch name """ -__title__ = 'set_version' -__author__ = 'Sven Heidemann' -__license__ = 'MIT' -__copyright__ = 'Copyright (c) 2022 sh-edraft.de' -__version__ = '2022.12.0' +__title__ = "set_version" +__author__ = "Sven Heidemann" +__license__ = "MIT" +__copyright__ = "Copyright (c) 2022 sh-edraft.de" +__version__ = "2022.12.0" from collections import namedtuple # imports: -VersionInfo = namedtuple('VersionInfo', 'major minor micro') -version_info = VersionInfo(major='2022', minor='12', micro='0') +VersionInfo = namedtuple("VersionInfo", "major minor micro") +version_info = VersionInfo(major="2022", minor="12", micro="0") -- 2.45.2