modify 进程插件构建命令变更
This commit is contained in:
@@ -54,6 +54,7 @@ ZENOH_CONFIG = ROOT / "config" / "zenoh_config.json5"
|
||||
NAME_RE = re.compile(r"^[a-z][a-z0-9_]*$")
|
||||
|
||||
# chongming-worker 内网 git 源(与网关 pyproject.toml [tool.uv.sources] 保持一致)
|
||||
GITEA_PYPI_URL = "http://124.71.68.6:3000/api/packages/chongming/pypi/simple/"
|
||||
CHONGMING_WORKER_GIT = "http://124.71.68.6:3000/chongming/chongming-utils-worker.git"
|
||||
PYPI_MIRROR = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
|
||||
|
||||
@@ -278,6 +279,7 @@ def _gen_pyproject_toml(name: str) -> str:
|
||||
uv sync 会跳过其入口点;worker 进程入口由 SDK 的 chongming-worker 脚本提供。
|
||||
"""
|
||||
deps = [
|
||||
"chongming-cache",
|
||||
"chongming-worker",
|
||||
"orjson", # chongming-worker 运行时依赖(SDK metadata 未声明,容器内需显式安装)
|
||||
]
|
||||
@@ -292,11 +294,12 @@ dependencies = [
|
||||
{deps_lines}
|
||||
]
|
||||
|
||||
[[tool.uv.index]]
|
||||
url = "{GITEA_PYPI_URL}"
|
||||
|
||||
[[tool.uv.index]]
|
||||
url = "{PYPI_MIRROR}"
|
||||
|
||||
[tool.uv.sources]
|
||||
chongming-worker = {{ git = "{CHONGMING_WORKER_GIT}" }}
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user