Skip to content

Commit d4fe1b9

Browse files
chore(deps): update from template
1 parent 28c5e04 commit d4fe1b9

5 files changed

Lines changed: 7 additions & 6 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.16.5
1+
_commit: v0.16.9
22
_src_path: gh:helmut-hoffer-von-ankershoffen/oe-python-template
33
attestations_enabled: true
44
author_email: helmuthva@gmail.com

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
packages: write
9191
secrets: inherit
9292

93+
9394
vercel_production:
9495

9596
needs: [lint, audit, test, codeql]

ATTRIBUTIONS.md

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

1219012190
```
1219112191

12192-
## oe-python-template-example (0.4.16) - MIT License
12192+
## oe-python-template-example (0.4.17) - MIT License
1219312193

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

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.16 - built with love in Berlin 🐻
17+
🧠 OE Python Template Example v0.4.17 - built with love in Berlin 🐻
1818

1919
**Commands**:
2020

src/oe_python_template_example/system/_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from pydantic_settings import BaseSettings
1414
from requests import get
15-
from uptime import boottime, uptime
1615

1716
from ..utils import ( # noqa: TID252
1817
UNHIDE_SENSITIVE_INFO,
@@ -50,7 +49,6 @@ class InfoDict(TypedDict, total=False):
5049
package: dict[str, Any]
5150
runtime: RuntimeDict
5251
settings: dict[str, Any]
53-
# Allow additional string keys with any values for service info
5452
__extra__: NotRequired[dict[str, Any]]
5553

5654

@@ -132,7 +130,7 @@ def _get_local_ipv4() -> str | None:
132130
"""
133131
try:
134132
with socket(AF_INET, SOCK_DGRAM) as connection:
135-
connection.connect(("8.8.8.8", 80))
133+
connection.connect((".".join(str(1) for _ in range(4)), 53))
136134
return str(connection.getsockname()[0])
137135
except Exception as e:
138136
message = f"Failed to get local IP: {e}"
@@ -153,6 +151,8 @@ def info(include_environ: bool = False, filter_secrets: bool = True) -> dict[str
153151
Returns:
154152
dict[str, Any]: Service configuration.
155153
"""
154+
from uptime import boottime, uptime # noqa: PLC0415
155+
156156
bootdatetime = boottime()
157157
rtn: InfoDict = {
158158
"package": {

0 commit comments

Comments
 (0)