Skip to content

Commit 74ac97a

Browse files
chore(deps): update from template
1 parent 4595c67 commit 74ac97a

6 files changed

Lines changed: 14 additions & 11 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_commit: v0.15.2
1+
_commit: v0.15.3
22
_src_path: gh:helmut-hoffer-von-ankershoffen/oe-python-template
33
attestations_enabled: true
44
author_email: helmuthva@gmail.com

.github/workflows/test-scheduled.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ jobs:
3636

3737
- name: Run scheduled tests
3838
env:
39-
BETTERSTACK_HEARTBEAT_URL: "${{ secrets.BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL }}"
39+
BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL: "${{ secrets.BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL }}"
4040
run: |
4141
make test_scheduled
4242
EXIT_CODE=$?
4343
# Provide heartbeat to betterstack for monitoring/alerting if heartbeat url is configured as secret
44-
if [ -n "$BETTERSTACK_HEARTBEAT_URL" ]; then
44+
if [ -n "$BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL" ]; then
4545
if [ $EXIT_CODE -eq 0 ]; then
46-
curl -s $BETTERSTACK_HEARTBEAT_URL
46+
curl -s $BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL
4747
else
48-
curl -s $BETTERSTACK_HEARTBEAT_URL/$EXIT_CODE
48+
curl -s $BETTERSTACK_HEARTBEAT_TEST_SCHEDULED_URL/$EXIT_CODE
4949
fi
5050
fi
5151
exit $EXIT_CODE

ATTRIBUTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12120,7 +12120,7 @@ License: LGPL-2.1-or-later
1212012120

1212112121
```
1212212122

12123-
## oe-python-template-example (0.4.10) - MIT License
12123+
## oe-python-template-example (0.4.11) - MIT License
1212412124

1212512125
🧠 Example project scaffolded and kept up to date with OE Python Template (oe-python-template).
1212612126

CLI_REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ oe-python-template-example [OPTIONS] COMMAND [ARGS]...
1414
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
1515
* `--help`: Show this message and exit.
1616

17-
🧠 OE Python Template Example v0.4.10 - built with love in Berlin 🐻
17+
🧠 OE Python Template Example v0.4.11 - built with love in Berlin 🐻
1818

1919
**Commands**:
2020

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ requires-python = ">=3.11, <4.0"
6464
dependencies = [
6565
# From Template
6666
"fastapi[standard,all]>=0.115.12",
67-
"logfire[system-metrics]>=3.13.1",
67+
"logfire[system-metrics]>=3.14.1",
6868
"nicegui[native]>=2.15.0",
6969
"opentelemetry-instrumentation-fastapi>=0.53b0",
7070
"opentelemetry-instrumentation-httpx>=0.53b0",
@@ -76,7 +76,7 @@ dependencies = [
7676
"opentelemetry-instrumentation-urllib3>=0.53b0",
7777
"psutil>=7.0.0",
7878
"pydantic-settings>=2.9.1",
79-
"sentry-sdk>=2.26.1",
79+
"sentry-sdk>=2.27.0",
8080
"typer>=0.15.1",
8181
"uptime>=3.0.1",
8282
# Custom
@@ -85,7 +85,7 @@ dependencies = [
8585

8686
[project.optional-dependencies]
8787
examples = [
88-
"marimo>=0.13.0",
88+
"marimo>=0.13.1",
8989
"matplotlib>=3.10.1",
9090
"jinja2>=3.1.6",
9191
"jupyter>=1.1.1",

src/oe_python_template_example/utils/_log.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Logging configuration and utilities."""
22

3+
import contextlib
34
import logging as python_logging
45
import os
56
import typing as t
@@ -63,11 +64,13 @@ def _validate_file_name(file_name: str | None) -> str | None:
6364
else:
6465
try:
6566
file_path.touch(exist_ok=True)
66-
file_path.unlink()
6767
except OSError as e:
6868
message = f"File {file_path.absolute()} cannot be created: {e}"
6969
raise ValueError(message) from e
7070

71+
with contextlib.suppress(OSError): # Parallel execution e.g. in tests can create race
72+
file_path.unlink()
73+
7174
return file_name
7275

7376

0 commit comments

Comments
 (0)