Skip to content

Commit c8c6374

Browse files
committed
v0.19.1 [publish]
Signed-off-by: bigcat88 <[email protected]>
1 parent d74f8de commit c8c6374

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.19.1 - 2025-03-07]
6+
7+
### Fixed
8+
9+
- ExApps(NC32+): When using `HaRP`, use `unix-socket` instead of `host:port`.
10+
511
## [0.19.0 - 2025-02-15]
612

713
### Added

nc_py_api/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of nc_py_api."""
22

3-
__version__ = "0.19.0"
3+
__version__ = "0.19.1"

nc_py_api/ex_app/uvicorn_fastapi.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,18 @@ def run_app(
2222
:param args: Any args to pass to **uvicorn.run**.
2323
:param kwargs: Any **kwargs** to pass to **uvicorn.run**, except ``host`` and ``port``.
2424
"""
25-
uvicorn.run(uvicorn_app, *args, host=environ.get("APP_HOST", "127.0.0.1"), port=int(environ["APP_PORT"]), **kwargs)
25+
if environ.get("HP_SHARED_KEY"):
26+
uvicorn.run(
27+
uvicorn_app,
28+
*args,
29+
uds=environ.get("HP_EXAPP_SOCK", "/tmp/exapp.sock"),
30+
**kwargs,
31+
)
32+
else:
33+
uvicorn.run(
34+
uvicorn_app,
35+
*args,
36+
host=environ.get("APP_HOST", "127.0.0.1"),
37+
port=int(environ["APP_PORT"]),
38+
**kwargs,
39+
)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ lint.extend-ignore = [
139139
"D401",
140140
"I001",
141141
"RUF100",
142+
"S108",
142143
]
143144

144145
lint.per-file-ignores."nc_py_api/__init__.py" = [

0 commit comments

Comments
 (0)