oe-python-template 0.12.13__tar.gz → 0.12.14__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.13 → oe_python_template-0.12.14}/PKG-INFO +2 -1
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/pyproject.toml +6 -4
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/boot.py +0 -7
- oe_python_template-0.12.13/src/bottle.py +0 -4756
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/.gitignore +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/LICENSE +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/README.md +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/__init__.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/api.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/cli.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/constants.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/__init__.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_api.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_cli.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_constants.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_gui.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_models.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_service.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/hello/_settings.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/__init__.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/_api.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/_cli.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/_gui.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/_service.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/system/_settings.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/__init__.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_api.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_cli.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_console.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_constants.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_di.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_gui.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_health.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_log.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_logfire.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_notebook.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_process.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_sentry.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/_service.py +0 -0
- {oe_python_template-0.12.13 → oe_python_template-0.12.14}/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.14
|
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/
|
@@ -48,6 +48,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
48
48
|
Classifier: Programming Language :: Python :: 3.13
|
49
49
|
Classifier: Typing :: Typed
|
50
50
|
Requires-Python: <4.0,>=3.11
|
51
|
+
Requires-Dist: bottle
|
51
52
|
Requires-Dist: fastapi[all,standard]>=0.115.12
|
52
53
|
Requires-Dist: logfire[system-metrics]>=3.13.1
|
53
54
|
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.53b0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "oe-python-template"
|
3
|
-
version = "0.12.
|
3
|
+
version = "0.12.14"
|
4
4
|
description = "🧠 Copier template to scaffold Python projects compliant with best practices and modern tooling."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [{ name = "Helmut Hoffer von Ankershoffen", email = "helmuthva@gmail.com" }]
|
@@ -61,6 +61,7 @@ requires-python = ">=3.11, <4.0"
|
|
61
61
|
|
62
62
|
dependencies = [
|
63
63
|
# From Template
|
64
|
+
"bottle",
|
64
65
|
"fastapi[standard,all]>=0.115.12",
|
65
66
|
"logfire[system-metrics]>=3.13.1",
|
66
67
|
"opentelemetry-instrumentation-fastapi>=0.53b0",
|
@@ -160,13 +161,15 @@ override-dependencies = [ # https://github.com/astral-sh/uv/issues/4422
|
|
160
161
|
"rfc3987; sys_platform == 'never'", # GPLv3
|
161
162
|
]
|
162
163
|
|
164
|
+
[tool.uv.sources]
|
165
|
+
bottle = { git = "https://github.com/helmut-hoffer-von-ankershoffen/bottle" }
|
163
166
|
|
164
167
|
[tool.ruff]
|
165
168
|
target-version = "py311"
|
166
169
|
preview = true
|
167
170
|
fix = true
|
168
171
|
line-length = 120
|
169
|
-
extend-exclude = [".fixme", "notebook.py", "template/*.py"
|
172
|
+
extend-exclude = [".fixme", "notebook.py", "template/*.py"]
|
170
173
|
|
171
174
|
[tool.ruff.lint]
|
172
175
|
select = ["ALL"]
|
@@ -229,7 +232,6 @@ docstring-code-format = true
|
|
229
232
|
convention = "google"
|
230
233
|
|
231
234
|
[tool.mypy] # https://mypy.readthedocs.io/en/latest/config_file.html
|
232
|
-
exclude = ["bottle.py"]
|
233
235
|
junit_xml = "reports/mypy_junit.xml"
|
234
236
|
plugins = "pydantic.mypy"
|
235
237
|
strict = true
|
@@ -281,7 +283,7 @@ source = ["src/"]
|
|
281
283
|
|
282
284
|
|
283
285
|
[tool.bumpversion]
|
284
|
-
current_version = "0.12.
|
286
|
+
current_version = "0.12.14"
|
285
287
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
286
288
|
serialize = ["{major}.{minor}.{patch}"]
|
287
289
|
search = "{current_version}"
|
{oe_python_template-0.12.13 → oe_python_template-0.12.14}/src/oe_python_template/utils/boot.py
RENAMED
@@ -22,7 +22,6 @@ def boot(modules_to_instrument: list[str]) -> None:
|
|
22
22
|
if _boot_called:
|
23
23
|
return
|
24
24
|
_boot_called = True
|
25
|
-
_prioritize_src()
|
26
25
|
sentry_initialize()
|
27
26
|
log_to_logfire = logfire_initialize(modules_to_instrument)
|
28
27
|
logging_initialize(log_to_logfire)
|
@@ -72,12 +71,6 @@ def _amend_library_path() -> None:
|
|
72
71
|
os.environ["DYLD_FALLBACK_LIBRARY_PATH"] = f"{os.getenv('HOMEBREW_PREFIX', '/opt/homebrew')}/lib/"
|
73
72
|
|
74
73
|
|
75
|
-
def _prioritize_src() -> None:
|
76
|
-
if len(sys.path) > 0:
|
77
|
-
src_path = sys.path.pop(-1)
|
78
|
-
sys.path.insert(0, src_path)
|
79
|
-
|
80
|
-
|
81
74
|
def _log_boot_message() -> None:
|
82
75
|
"""Log boot message with version and process information."""
|
83
76
|
logger = get_logger(__name__)
|