ae-base 0.3.63__tar.gz → 0.3.64__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_base
3
- Version: 0.3.63
3
+ Version: 0.3.64
4
4
  Summary: ae namespace module portion base: basic constants, helper functions and context manager
5
5
  Home-page: https://gitlab.com/ae-group/ae_base
6
6
  Author: AndiEcker
@@ -69,13 +69,13 @@ Dynamic: summary
69
69
 
70
70
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.96 -->
71
71
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
72
- # base 0.3.63
72
+ # base 0.3.64
73
73
 
74
74
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
75
75
  https://gitlab.com/ae-group/ae_base)
76
76
  [![LatestPyPIrelease](
77
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.61?logo=python)](
78
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.61)
77
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.63?logo=python)](
78
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.63)
79
79
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
80
80
  https://pypi.org/project/ae-base/#history)
81
81
 
@@ -1,12 +1,12 @@
1
1
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.96 -->
2
2
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
3
- # base 0.3.63
3
+ # base 0.3.64
4
4
 
5
5
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
6
6
  https://gitlab.com/ae-group/ae_base)
7
7
  [![LatestPyPIrelease](
8
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.61?logo=python)](
9
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.61)
8
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.63?logo=python)](
9
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.63)
10
10
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
11
11
  https://pypi.org/project/ae-base/#history)
12
12
 
@@ -171,7 +171,7 @@ from types import ModuleType
171
171
  from typing import Any, Callable, Generator, Iterable, MutableMapping, Optional, Union, cast
172
172
 
173
173
 
174
- __version__ = '0.3.63'
174
+ __version__ = '0.3.64'
175
175
 
176
176
 
177
177
  os_path_abspath = os.path.abspath
@@ -1249,30 +1249,25 @@ def write_file(file_path: str, content: Union[str, bytes],
1249
1249
  class ErrorMsgMixin: # pylint: disable=too-few-public-methods
1250
1250
  """ mixin class providing sophisticated error message handling. """
1251
1251
  _err_msg: str = ""
1252
-
1253
- cae = None
1254
- po = print
1255
- dpo = print
1256
- vpo = print
1252
+ main_app = None
1253
+ po = dpo = vpo = print
1257
1254
 
1258
1255
  def __init__(self):
1259
1256
  try:
1260
1257
  from ae.core import main_app_instance # type: ignore # pylint: disable=import-outside-toplevel
1261
1258
 
1262
- self.cae = cae = main_app_instance()
1263
- assert cae is not None, f"{self.__class__.__name__}.__init__() called too early; main app instance not"
1259
+ self.main_app = main_app = main_app_instance()
1260
+ assert main_app is not None, f"{self.__class__.__name__}.__init__() called too early; main app instance not"
1264
1261
 
1265
- self.po = cae.po
1266
- self.dpo = cae.dpo
1267
- self.vpo = cae.vpo
1262
+ self.po = main_app.po
1263
+ self.dpo = main_app.dpo
1264
+ self.vpo = main_app.vpo
1268
1265
 
1269
1266
  except (ImportError, AssertionError, Exception) as exc: # pylint: disable=broad-except
1270
1267
  print(f"{self.__class__.__name__}.__init__() raised {exc}; using print() instead of main app error loggers")
1271
1268
 
1272
- # self.cae = None
1273
- # self.po = print
1274
- # self.dpo = print
1275
- # self.vpo = print
1269
+ # self.main_app = None
1270
+ # self.po = self.dpo = self.vpo = print
1276
1271
 
1277
1272
  @property
1278
1273
  def error_message(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ae_base
3
- Version: 0.3.63
3
+ Version: 0.3.64
4
4
  Summary: ae namespace module portion base: basic constants, helper functions and context manager
5
5
  Home-page: https://gitlab.com/ae-group/ae_base
6
6
  Author: AndiEcker
@@ -69,13 +69,13 @@ Dynamic: summary
69
69
 
70
70
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.96 -->
71
71
  <!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->
72
- # base 0.3.63
72
+ # base 0.3.64
73
73
 
74
74
  [![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](
75
75
  https://gitlab.com/ae-group/ae_base)
76
76
  [![LatestPyPIrelease](
77
- https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.61?logo=python)](
78
- https://gitlab.com/ae-group/ae_base/-/tree/release0.3.61)
77
+ https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.63?logo=python)](
78
+ https://gitlab.com/ae-group/ae_base/-/tree/release0.3.63)
79
79
  [![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](
80
80
  https://pypi.org/project/ae-base/#history)
81
81
 
@@ -15,7 +15,7 @@ setup_kwargs = {
15
15
  'install_requires': [],
16
16
  'keywords': ['configuration', 'development', 'environment', 'productivity'],
17
17
  'license': 'OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
18
- 'long_description': '<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.96 -->\n<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->\n# base 0.3.63\n\n[![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](\n https://gitlab.com/ae-group/ae_base)\n[![LatestPyPIrelease](\n https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.61?logo=python)](\n https://gitlab.com/ae-group/ae_base/-/tree/release0.3.61)\n[![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](\n https://pypi.org/project/ae-base/#history)\n\n>ae namespace module portion base: basic constants, helper functions and context manager.\n\n[![Coverage](https://ae-group.gitlab.io/ae_base/coverage.svg)](\n https://ae-group.gitlab.io/ae_base/coverage/index.html)\n[![MyPyPrecision](https://ae-group.gitlab.io/ae_base/mypy.svg)](\n https://ae-group.gitlab.io/ae_base/lineprecision.txt)\n[![PyLintScore](https://ae-group.gitlab.io/ae_base/pylint.svg)](\n https://ae-group.gitlab.io/ae_base/pylint.log)\n\n[![PyPIImplementation](https://img.shields.io/pypi/implementation/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIPyVersions](https://img.shields.io/pypi/pyversions/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIWheel](https://img.shields.io/pypi/wheel/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIFormat](https://img.shields.io/pypi/format/ae_base)](\n https://pypi.org/project/ae-base/)\n[![PyPILicense](https://img.shields.io/pypi/l/ae_base)](\n https://gitlab.com/ae-group/ae_base/-/blob/develop/LICENSE.md)\n[![PyPIStatus](https://img.shields.io/pypi/status/ae_base)](\n https://libraries.io/pypi/ae-base)\n[![PyPIDownloads](https://img.shields.io/pypi/dm/ae_base)](\n https://pypi.org/project/ae-base/#files)\n\n\n## installation\n\n\nexecute the following command to install the\nae.base module\nin the currently active virtual environment:\n \n```shell script\npip install ae-base\n```\n\nif you want to contribute to this portion then first fork\n[the ae_base repository at GitLab](\nhttps://gitlab.com/ae-group/ae_base "ae.base code repository").\nafter that pull it to your machine and finally execute the\nfollowing command in the root folder of this repository\n(ae_base):\n\n```shell script\npip install -e .[dev]\n```\n\nthe last command will install this module portion, along with the tools you need\nto develop and run tests or to extend the portion documentation. to contribute only to the unit tests or to the\ndocumentation of this portion, replace the setup extras key `dev` in the above command with `tests` or `docs`\nrespectively.\n\nmore detailed explanations on how to contribute to this project\n[are available here](\nhttps://gitlab.com/ae-group/ae_base/-/blob/develop/CONTRIBUTING.rst)\n\n\n## namespace portion documentation\n\ninformation on the features and usage of this portion are available at\n[ReadTheDocs](\nhttps://ae.readthedocs.io/en/latest/_autosummary/ae.base.html\n"ae_base documentation").\n',
18
+ 'long_description': '<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project ae.ae V0.3.96 -->\n<!-- THIS FILE IS EXCLUSIVELY MAINTAINED by the project aedev.tpl_namespace_root V0.3.14 -->\n# base 0.3.64\n\n[![GitLab develop](https://img.shields.io/gitlab/pipeline/ae-group/ae_base/develop?logo=python)](\n https://gitlab.com/ae-group/ae_base)\n[![LatestPyPIrelease](\n https://img.shields.io/gitlab/pipeline/ae-group/ae_base/release0.3.63?logo=python)](\n https://gitlab.com/ae-group/ae_base/-/tree/release0.3.63)\n[![PyPIVersions](https://img.shields.io/pypi/v/ae_base)](\n https://pypi.org/project/ae-base/#history)\n\n>ae namespace module portion base: basic constants, helper functions and context manager.\n\n[![Coverage](https://ae-group.gitlab.io/ae_base/coverage.svg)](\n https://ae-group.gitlab.io/ae_base/coverage/index.html)\n[![MyPyPrecision](https://ae-group.gitlab.io/ae_base/mypy.svg)](\n https://ae-group.gitlab.io/ae_base/lineprecision.txt)\n[![PyLintScore](https://ae-group.gitlab.io/ae_base/pylint.svg)](\n https://ae-group.gitlab.io/ae_base/pylint.log)\n\n[![PyPIImplementation](https://img.shields.io/pypi/implementation/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIPyVersions](https://img.shields.io/pypi/pyversions/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIWheel](https://img.shields.io/pypi/wheel/ae_base)](\n https://gitlab.com/ae-group/ae_base/)\n[![PyPIFormat](https://img.shields.io/pypi/format/ae_base)](\n https://pypi.org/project/ae-base/)\n[![PyPILicense](https://img.shields.io/pypi/l/ae_base)](\n https://gitlab.com/ae-group/ae_base/-/blob/develop/LICENSE.md)\n[![PyPIStatus](https://img.shields.io/pypi/status/ae_base)](\n https://libraries.io/pypi/ae-base)\n[![PyPIDownloads](https://img.shields.io/pypi/dm/ae_base)](\n https://pypi.org/project/ae-base/#files)\n\n\n## installation\n\n\nexecute the following command to install the\nae.base module\nin the currently active virtual environment:\n \n```shell script\npip install ae-base\n```\n\nif you want to contribute to this portion then first fork\n[the ae_base repository at GitLab](\nhttps://gitlab.com/ae-group/ae_base "ae.base code repository").\nafter that pull it to your machine and finally execute the\nfollowing command in the root folder of this repository\n(ae_base):\n\n```shell script\npip install -e .[dev]\n```\n\nthe last command will install this module portion, along with the tools you need\nto develop and run tests or to extend the portion documentation. to contribute only to the unit tests or to the\ndocumentation of this portion, replace the setup extras key `dev` in the above command with `tests` or `docs`\nrespectively.\n\nmore detailed explanations on how to contribute to this project\n[are available here](\nhttps://gitlab.com/ae-group/ae_base/-/blob/develop/CONTRIBUTING.rst)\n\n\n## namespace portion documentation\n\ninformation on the features and usage of this portion are available at\n[ReadTheDocs](\nhttps://ae.readthedocs.io/en/latest/_autosummary/ae.base.html\n"ae_base documentation").\n',
19
19
  'long_description_content_type': 'text/markdown',
20
20
  'name': 'ae_base',
21
21
  'package_data': {'': []},
@@ -24,7 +24,7 @@ setup_kwargs = {
24
24
  'python_requires': '>=3.9',
25
25
  'setup_requires': ['aedev_setup_project'],
26
26
  'url': 'https://gitlab.com/ae-group/ae_base',
27
- 'version': '0.3.63',
27
+ 'version': '0.3.64',
28
28
  'zip_safe': True,
29
29
  }
30
30
 
@@ -77,17 +77,17 @@ class TestErrorMsgMixin:
77
77
  def test_instantiation(self):
78
78
  ins = ErrorMsgMixin()
79
79
  assert ins
80
- assert ins.cae is None # in test env is no console/gui app available
80
+ assert ins.main_app is None # in test env is no console/gui app available
81
81
  assert ins.po is ins.dpo is ins.vpo is print
82
82
 
83
83
  with patch('ae.core.main_app_instance', lambda: None):
84
84
  ins = ErrorMsgMixin()
85
85
  assert ins
86
- assert ins.cae is None
86
+ assert ins.main_app is None
87
87
  assert ins.po is ins.dpo is ins.vpo is print
88
88
 
89
89
  class _AppMock(ErrorMsgMixin):
90
- cae = None
90
+ main_app = None
91
91
 
92
92
  @staticmethod
93
93
  def po():
@@ -108,7 +108,7 @@ class TestErrorMsgMixin:
108
108
 
109
109
  with patch('ae.core.main_app_instance', lambda: app_ins):
110
110
  ins = ErrorMsgMixin()
111
- assert ins.cae is app_ins
111
+ assert ins.main_app is app_ins
112
112
  assert ins.po is not print
113
113
  assert ins.po() == "po"
114
114
  assert ins.dpo is not print
File without changes
File without changes