ae-base 0.3.57__tar.gz → 0.3.59__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.
- {ae_base-0.3.57/ae_base.egg-info → ae_base-0.3.59}/PKG-INFO +4 -4
- {ae_base-0.3.57 → ae_base-0.3.59}/README.md +3 -3
- {ae_base-0.3.57 → ae_base-0.3.59}/ae/base.py +3 -2
- {ae_base-0.3.57 → ae_base-0.3.59/ae_base.egg-info}/PKG-INFO +4 -4
- {ae_base-0.3.57 → ae_base-0.3.59}/setup.py +2 -2
- {ae_base-0.3.57 → ae_base-0.3.59}/tests/test_base.py +11 -4
- {ae_base-0.3.57 → ae_base-0.3.59}/LICENSE.md +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/ae_base.egg-info/SOURCES.txt +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/ae_base.egg-info/dependency_links.txt +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/ae_base.egg-info/requires.txt +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/ae_base.egg-info/top_level.txt +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/ae_base.egg-info/zip-safe +0 -0
- {ae_base-0.3.57 → ae_base-0.3.59}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_base
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.59
|
|
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.
|
|
72
|
+
# base 0.3.59
|
|
73
73
|
|
|
74
74
|
[](
|
|
75
75
|
https://gitlab.com/ae-group/ae_base)
|
|
76
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.57)
|
|
79
79
|
[](
|
|
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.
|
|
3
|
+
# base 0.3.59
|
|
4
4
|
|
|
5
5
|
[](
|
|
6
6
|
https://gitlab.com/ae-group/ae_base)
|
|
7
7
|
[](
|
|
9
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.57)
|
|
10
10
|
[](
|
|
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.
|
|
174
|
+
__version__ = '0.3.59'
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
os_path_abspath = os.path.abspath
|
|
@@ -652,7 +652,8 @@ def load_env_var_defaults(start_dir: str, env_vars: MutableMapping[str, str]):
|
|
|
652
652
|
found ``.env`` file. pass Python's :data:`os.environ` to amend this mapping directly
|
|
653
653
|
with all the already not declared environment variables.
|
|
654
654
|
"""
|
|
655
|
-
|
|
655
|
+
start_dir = norm_path(start_dir)
|
|
656
|
+
file_path = os_path_join(start_dir, DOTENV_FILE_NAME)
|
|
656
657
|
if not os_path_isfile(file_path):
|
|
657
658
|
file_path = os_path_join(os_path_dirname(start_dir), DOTENV_FILE_NAME)
|
|
658
659
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ae_base
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.59
|
|
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.
|
|
72
|
+
# base 0.3.59
|
|
73
73
|
|
|
74
74
|
[](
|
|
75
75
|
https://gitlab.com/ae-group/ae_base)
|
|
76
76
|
[](
|
|
78
|
+
https://gitlab.com/ae-group/ae_base/-/tree/release0.3.57)
|
|
79
79
|
[](
|
|
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.
|
|
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.59\n\n[](\n https://gitlab.com/ae-group/ae_base)\n[](\n https://gitlab.com/ae-group/ae_base/-/tree/release0.3.57)\n[](\n https://pypi.org/project/ae-base/#history)\n\n>ae namespace module portion base: basic constants, helper functions and context manager.\n\n[](\n https://ae-group.gitlab.io/ae_base/coverage/index.html)\n[](\n https://ae-group.gitlab.io/ae_base/lineprecision.txt)\n[](\n https://ae-group.gitlab.io/ae_base/pylint.log)\n\n[](\n https://gitlab.com/ae-group/ae_base/)\n[](\n https://gitlab.com/ae-group/ae_base/)\n[](\n https://gitlab.com/ae-group/ae_base/)\n[](\n https://pypi.org/project/ae-base/)\n[](\n https://gitlab.com/ae-group/ae_base/-/blob/develop/LICENSE.md)\n[](\n https://libraries.io/pypi/ae-base)\n[](\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.
|
|
27
|
+
'version': '0.3.59',
|
|
28
28
|
'zip_safe': True,
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -496,7 +496,9 @@ class TestBaseHelpers:
|
|
|
496
496
|
|
|
497
497
|
with pytest.raises(TypeError):
|
|
498
498
|
# noinspection PyTypeChecker
|
|
499
|
-
load_env_var_defaults(None, None)
|
|
499
|
+
load_env_var_defaults(None, None) # STRANGE: raising TypeError in Python 3.9.21/local but not in 3.9.23/CI
|
|
500
|
+
# noinspection PyArgumentList
|
|
501
|
+
load_env_var_defaults(None) # HOTFIX ensuring failure - could not find any changelog notes )
|
|
500
502
|
|
|
501
503
|
# noinspection PyTypeChecker
|
|
502
504
|
load_env_var_defaults("inv:_ file path", ()) # NO ERROR EXCEPTIONS on these invalid arg values!!!
|
|
@@ -526,9 +528,14 @@ class TestBaseHelpers:
|
|
|
526
528
|
assert env_var_name not in os.environ
|
|
527
529
|
|
|
528
530
|
def test_load_env_var_defaults_load_start_parent_first_no_chain(self, os_env_test_env):
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
531
|
+
old_cwd = os.getcwd()
|
|
532
|
+
try:
|
|
533
|
+
os.chdir(os.path.join(os_env_test_env, *((folder_name, ) * 4)))
|
|
534
|
+
load_env_var_defaults("", os.environ)
|
|
535
|
+
assert env_var_name in os.environ
|
|
536
|
+
assert os.environ[env_var_name] == env_var_val + '3'
|
|
537
|
+
finally:
|
|
538
|
+
os.chdir(old_cwd)
|
|
532
539
|
|
|
533
540
|
def test_load_env_var_defaults_load_start_first_no_chain(self, os_env_test_env):
|
|
534
541
|
load_env_var_defaults(os.path.join(os_env_test_env, *((folder_name, ) * 3)), os.environ)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|