oe-python-template-example 0.4.10__tar.gz → 0.4.12__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.
Files changed (40) hide show
  1. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/PKG-INFO +4 -4
  2. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/pyproject.toml +5 -5
  3. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_log.py +4 -1
  4. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/.gitignore +0 -0
  5. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/LICENSE +0 -0
  6. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/README.md +0 -0
  7. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/__init__.py +0 -0
  8. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/api.py +0 -0
  9. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/cli.py +0 -0
  10. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/constants.py +0 -0
  11. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/__init__.py +0 -0
  12. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_api.py +0 -0
  13. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_cli.py +0 -0
  14. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_constants.py +0 -0
  15. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_gui.py +0 -0
  16. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_models.py +0 -0
  17. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_service.py +0 -0
  18. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/hello/_settings.py +0 -0
  19. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/__init__.py +0 -0
  20. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_api.py +0 -0
  21. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_cli.py +0 -0
  22. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_gui.py +0 -0
  23. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_service.py +0 -0
  24. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/system/_settings.py +0 -0
  25. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/.vendored/bottle.py +0 -0
  26. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/__init__.py +0 -0
  27. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_api.py +0 -0
  28. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_cli.py +0 -0
  29. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_console.py +0 -0
  30. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_constants.py +0 -0
  31. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_di.py +0 -0
  32. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_gui.py +0 -0
  33. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_health.py +0 -0
  34. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_logfire.py +0 -0
  35. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_notebook.py +0 -0
  36. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_process.py +0 -0
  37. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_sentry.py +0 -0
  38. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_service.py +0 -0
  39. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/_settings.py +0 -0
  40. {oe_python_template_example-0.4.10 → oe_python_template_example-0.4.12}/src/oe_python_template_example/utils/boot.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oe-python-template-example
3
- Version: 0.4.10
3
+ Version: 0.4.12
4
4
  Summary: 🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
5
5
  Project-URL: Homepage, https://oe-python-template-example.readthedocs.io/en/latest/
6
6
  Project-URL: Documentation, https://oe-python-template-example.readthedocs.io/en/latest/
@@ -49,7 +49,7 @@ Classifier: Programming Language :: Python :: 3.13
49
49
  Classifier: Typing :: Typed
50
50
  Requires-Python: <4.0,>=3.11
51
51
  Requires-Dist: fastapi[all,standard]>=0.115.12
52
- Requires-Dist: logfire[system-metrics]>=3.13.1
52
+ Requires-Dist: logfire[system-metrics]>=3.14.1
53
53
  Requires-Dist: nicegui[native]>=2.15.0
54
54
  Requires-Dist: opentelemetry-instrumentation-fastapi>=0.53b0
55
55
  Requires-Dist: opentelemetry-instrumentation-httpx>=0.53b0
@@ -61,13 +61,13 @@ Requires-Dist: opentelemetry-instrumentation-urllib3>=0.53b0
61
61
  Requires-Dist: opentelemetry-instrumentation-urllib>=0.53b0
62
62
  Requires-Dist: psutil>=7.0.0
63
63
  Requires-Dist: pydantic-settings>=2.9.1
64
- Requires-Dist: sentry-sdk>=2.26.1
64
+ Requires-Dist: sentry-sdk>=2.27.0
65
65
  Requires-Dist: typer>=0.15.1
66
66
  Requires-Dist: uptime>=3.0.1
67
67
  Provides-Extra: examples
68
68
  Requires-Dist: jinja2>=3.1.6; extra == 'examples'
69
69
  Requires-Dist: jupyter>=1.1.1; extra == 'examples'
70
- Requires-Dist: marimo>=0.13.0; extra == 'examples'
70
+ Requires-Dist: marimo>=0.13.1; extra == 'examples'
71
71
  Requires-Dist: matplotlib>=3.10.1; extra == 'examples'
72
72
  Requires-Dist: streamlit>=1.44.1; extra == 'examples'
73
73
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "oe-python-template-example"
3
- version = "0.4.10"
3
+ version = "0.4.12"
4
4
  description = "🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template)."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -64,7 +64,7 @@ requires-python = ">=3.11, <4.0"
64
64
  dependencies = [
65
65
  # From Template
66
66
  "fastapi[standard,all]>=0.115.12",
67
- "logfire[system-metrics]>=3.13.1",
67
+ "logfire[system-metrics]>=3.14.1",
68
68
  "nicegui[native]>=2.15.0",
69
69
  "opentelemetry-instrumentation-fastapi>=0.53b0",
70
70
  "opentelemetry-instrumentation-httpx>=0.53b0",
@@ -76,7 +76,7 @@ dependencies = [
76
76
  "opentelemetry-instrumentation-urllib3>=0.53b0",
77
77
  "psutil>=7.0.0",
78
78
  "pydantic-settings>=2.9.1",
79
- "sentry-sdk>=2.26.1",
79
+ "sentry-sdk>=2.27.0",
80
80
  "typer>=0.15.1",
81
81
  "uptime>=3.0.1",
82
82
  # Custom
@@ -85,7 +85,7 @@ dependencies = [
85
85
 
86
86
  [project.optional-dependencies]
87
87
  examples = [
88
- "marimo>=0.13.0",
88
+ "marimo>=0.13.1",
89
89
  "matplotlib>=3.10.1",
90
90
  "jinja2>=3.1.6",
91
91
  "jupyter>=1.1.1",
@@ -282,7 +282,7 @@ source = ["src/"]
282
282
 
283
283
 
284
284
  [tool.bumpversion]
285
- current_version = "0.4.10"
285
+ current_version = "0.4.12"
286
286
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
287
287
  serialize = ["{major}.{minor}.{patch}"]
288
288
  search = "{current_version}"
@@ -1,5 +1,6 @@
1
1
  """Logging configuration and utilities."""
2
2
 
3
+ import contextlib
3
4
  import logging as python_logging
4
5
  import os
5
6
  import typing as t
@@ -63,11 +64,13 @@ def _validate_file_name(file_name: str | None) -> str | None:
63
64
  else:
64
65
  try:
65
66
  file_path.touch(exist_ok=True)
66
- file_path.unlink()
67
67
  except OSError as e:
68
68
  message = f"File {file_path.absolute()} cannot be created: {e}"
69
69
  raise ValueError(message) from e
70
70
 
71
+ with contextlib.suppress(OSError): # Parallel execution e.g. in tests can create race
72
+ file_path.unlink()
73
+
71
74
  return file_name
72
75
 
73
76