oe-python-template 0.12.16__tar.gz → 0.12.19__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.
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/PKG-INFO +1 -1
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/pyproject.toml +2 -2
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/boot.py +13 -17
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/.gitignore +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/LICENSE +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/README.md +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/__init__.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_api.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_cli.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_constants.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_gui.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_models.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_service.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_settings.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/__init__.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_api.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_cli.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_gui.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_service.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_settings.py +0 -0
- {oe_python_template-0.12.16/src/oe_python_template/vendored → oe_python_template-0.12.19/src/oe_python_template/utils/.vendored}/bottle.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/__init__.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_api.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_cli.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_console.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_constants.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_di.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_gui.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_health.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_log.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_logfire.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_notebook.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_process.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_sentry.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_service.py +0 -0
- {oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_settings.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oe-python-template
|
3
|
-
Version: 0.12.
|
3
|
+
Version: 0.12.19
|
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/
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template"
|
3
|
-
version = "0.12.
|
3
|
+
version = "0.12.19"
|
4
4
|
description = "🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -280,7 +280,7 @@ source = ["src/"]
|
|
280
280
|
|
281
281
|
|
282
282
|
[tool.bumpversion]
|
283
|
-
current_version = "0.12.
|
283
|
+
current_version = "0.12.19"
|
284
284
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
285
285
|
serialize = ["{major}.{minor}.{patch}"]
|
286
286
|
search = "{current_version}"
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/boot.py
RENAMED
@@ -10,6 +10,19 @@ 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
|
+
|
22
|
+
import bottle # noqa: E402
|
23
|
+
|
24
|
+
the_class = bottle.PasteServer
|
25
|
+
|
13
26
|
|
14
27
|
def boot(modules_to_instrument: list[str]) -> None:
|
15
28
|
"""Boot the application.
|
@@ -23,7 +36,6 @@ def boot(modules_to_instrument: list[str]) -> None:
|
|
23
36
|
if _boot_called:
|
24
37
|
return
|
25
38
|
_boot_called = True
|
26
|
-
_import_from_vendored()
|
27
39
|
sentry_initialize()
|
28
40
|
log_to_logfire = logfire_initialize(modules_to_instrument)
|
29
41
|
logging_initialize(log_to_logfire)
|
@@ -67,22 +79,6 @@ def _parse_env_args() -> None:
|
|
67
79
|
del sys.argv[index]
|
68
80
|
|
69
81
|
|
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
82
|
def _amend_library_path() -> None:
|
87
83
|
"""Patch environment variables before any other imports."""
|
88
84
|
if "DYLD_FALLBACK_LIBRARY_PATH" not in os.environ:
|
File without changes
|
File without changes
|
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/constants.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_api.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_constants.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_models.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_service.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/hello/_settings.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_api.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_service.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/system/_settings.py
RENAMED
File without changes
|
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/__init__.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_api.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_cli.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_console.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_constants.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_di.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_gui.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_health.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_log.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_logfire.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_notebook.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_process.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_sentry.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_service.py
RENAMED
File without changes
|
{oe_python_template-0.12.16 → oe_python_template-0.12.19}/src/oe_python_template/utils/_settings.py
RENAMED
File without changes
|