oe-python-template 0.12.16__py3-none-any.whl → 0.12.19__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.
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template
3
- Version: 0.12.16
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/
@@ -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=uwZ-s3nPKTbluAJroWtWFI2OrkWgLrgrpyD0fROwtTo,3336
35
- oe_python_template/vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
36
- oe_python_template-0.12.16.dist-info/METADATA,sha256=AOM38vXxaS2lTJT9Dg07PMRU6rIW4kThnKVYZiDP7kU,33030
37
- oe_python_template-0.12.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
- oe_python_template-0.12.16.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
39
- oe_python_template-0.12.16.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
40
- oe_python_template-0.12.16.dist-info/RECORD,,
34
+ oe_python_template/utils/boot.py,sha256=4B5Dniwm0FrO_M5xPS02eJIfya3ucfEI0Brt12VaXR4,3112
35
+ oe_python_template/utils/.vendored/bottle.py,sha256=D9YkHqkgvKkknd3ZQ-tgflUF6F9Kr2_jpzhod5WqfAM,175461
36
+ oe_python_template-0.12.19.dist-info/METADATA,sha256=yFnY-_GgLsCV0ta841S9hcLxa-nkaqczGReR-sFdFpw,33030
37
+ oe_python_template-0.12.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
+ oe_python_template-0.12.19.dist-info/entry_points.txt,sha256=IroSSWhLGxus9rxcashkYQda39TTvf7LbUMYtOKXUBE,66
39
+ oe_python_template-0.12.19.dist-info/licenses/LICENSE,sha256=5H409K6xzz9U5eUaoAHQExNkoWJRlU0LEj6wL2QJ34s,1113
40
+ oe_python_template-0.12.19.dist-info/RECORD,,