Add self-contained relay deployment project and operational guidance
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=75"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "hainuo-relay"
|
||||
version = "0.1.0"
|
||||
description = "Hainuo isolated connector and encrypted device router"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"fastapi==0.119.1", "uvicorn==0.38.0", "httpx==0.28.1",
|
||||
"redis==6.4.0", "cryptography==46.0.3", "websockets==15.0.1",
|
||||
"pydantic-settings==2.11.0",
|
||||
"psycopg[binary]==3.2.12",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = ["pytest==8.4.2", "pytest-asyncio==1.2.0", "fakeredis==2.32.0"]
|
||||
longconn = ["lark-oapi==1.5.3"]
|
||||
|
||||
[project.scripts]
|
||||
hainuo-relay = "relay.cli:main"
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["relay*"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
relay = ["web/*.html", "web/*.js", "web/*.css"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests"]
|
||||
Reference in New Issue
Block a user