oe-python-template 0.12.16__py3-none-any.whl → 0.12.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oe_python_template/utils/boot.py +9 -17
- {oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/METADATA +1 -1
- {oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/RECORD +7 -7
- /oe_python_template/{vendored → utils/.vendored}/bottle.py +0 -0
- {oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/WHEEL +0 -0
- {oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/entry_points.txt +0 -0
- {oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/licenses/LICENSE +0 -0
oe_python_template/utils/boot.py
CHANGED
@@ -10,6 +10,15 @@ from ._sentry import sentry_initialize
|
|
10
10
|
|
11
11
|
_boot_called = False
|
12
12
|
|
13
|
+
# Import vendored dependencies
|
14
|
+
current_dir = Path(__file__).parent.absolute()
|
15
|
+
vendored_dir = current_dir / ".vendored"
|
16
|
+
if not vendored_dir.is_dir():
|
17
|
+
message = f".vendored/ directory not found at {vendored_dir!s}"
|
18
|
+
raise FileNotFoundError(message)
|
19
|
+
if vendored_dir not in sys.path:
|
20
|
+
sys.path.insert(0, str(vendored_dir))
|
21
|
+
|
13
22
|
|
14
23
|
def boot(modules_to_instrument: list[str]) -> None:
|
15
24
|
"""Boot the application.
|
@@ -23,7 +32,6 @@ def boot(modules_to_instrument: list[str]) -> None:
|
|
23
32
|
if _boot_called:
|
24
33
|
return
|
25
34
|
_boot_called = True
|
26
|
-
_import_from_vendored()
|
27
35
|
sentry_initialize()
|
28
36
|
log_to_logfire = logfire_initialize(modules_to_instrument)
|
29
37
|
logging_initialize(log_to_logfire)
|
@@ -67,22 +75,6 @@ def _parse_env_args() -> None:
|
|
67
75
|
del sys.argv[index]
|
68
76
|
|
69
77
|
|
70
|
-
def _import_from_vendored() -> None:
|
71
|
-
"""Add vendored/ to sys.path enabling to override broken (transitive) dependencies.
|
72
|
-
|
73
|
-
Raises:
|
74
|
-
FileNotFoundError: If the vendored/ directory cannot be found.
|
75
|
-
"""
|
76
|
-
# Get the directory of this file
|
77
|
-
current_dir = Path(__file__).parent.parent.absolute()
|
78
|
-
vendored_dir = current_dir / "vendored"
|
79
|
-
if not vendored_dir.is_dir():
|
80
|
-
message = f"vendored/ directory not found at {vendored_dir!s}"
|
81
|
-
raise FileNotFoundError(message)
|
82
|
-
if vendored_dir not in sys.path:
|
83
|
-
sys.path.insert(0, str(vendored_dir))
|
84
|
-
|
85
|
-
|
86
78
|
def _amend_library_path() -> None:
|
87
79
|
"""Patch environment variables before any other imports."""
|
88
80
|
if "DYLD_FALLBACK_LIBRARY_PATH" not in os.environ:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.17
|
4
4
|
Summary: 🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling.
|
5
5
|
Project-URL: Homepage, https://oe-python-template.readthedocs.io/en/latest/
|
6
6
|
Project-URL: Documentation, https://oe-python-template.readthedocs.io/en/latest/
|
@@ -31,10 +31,10 @@ oe_python_template/utils/_process.py,sha256=40R0NZMqJUn0iUPERzohSUpJgU1HcJApIg1H
|
|
31
31
|
oe_python_template/utils/_sentry.py,sha256=2sXrDSZSYoDEM87v7CakJ6eGBtcIhDI48PsQCLwOHgg,3319
|
32
32
|
oe_python_template/utils/_service.py,sha256=atHAejvBucKXjzhsMSdOBBFa7rRD74zcV70Pp0pl0Tg,1038
|
33
33
|
oe_python_template/utils/_settings.py,sha256=owFoaHEzJnVD3EVyOWF4rfIY7g6eLnU6rN0m4VHhCbA,2464
|
34
|
-
oe_python_template/utils/boot.py,sha256=
|
35
|
-
oe_python_template/vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
|
36
|
-
oe_python_template-0.12.
|
37
|
-
oe_python_template-0.12.
|
38
|
-
oe_python_template-0.12.
|
39
|
-
oe_python_template-0.12.
|
40
|
-
oe_python_template-0.12.
|
34
|
+
oe_python_template/utils/boot.py,sha256=0RKjUx8ibKYz5BGXJHPB9N2g4A36MoX_uAf7CRc_22Y,3051
|
35
|
+
oe_python_template/utils/.vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
|
36
|
+
oe_python_template-0.12.17.dist-info/METADATA,sha256=yzshx2fuUlRs4bMYkOkpaLJJK3h1ie66ChoveGNDsq0,33030
|
37
|
+
oe_python_template-0.12.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
38
|
+
oe_python_template-0.12.17.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
|
39
|
+
oe_python_template-0.12.17.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
|
40
|
+
oe_python_template-0.12.17.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/entry_points.txt
RENAMED
File without changes
|
{oe_python_template-0.12.16.dist-info → oe_python_template-0.12.17.dist-info}/licenses/LICENSE
RENAMED
File without changes
|