modify 进程插件构建命令变更

This commit is contained in:
2026-08-28 16:29:16 +08:00
parent 7ce2108fff
commit 2dbd04e42e
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ requires = ["hatchling"]
[project] [project]
name = "chongming-cli" name = "chongming-cli"
version = "0.1.2" version = "0.2.1"
description = "chongming 命令脚本集合:构建打包 / 进程插件打包 / 插件脚手架 / 模型生成" description = "chongming 命令脚本集合:构建打包 / 进程插件打包 / 插件脚手架 / 模型生成"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"
+2
View File
@@ -8,6 +8,8 @@ def generate_markdown_from_py_files(directory, output_file):
# 排除 venv 目录 # 排除 venv 目录
dirs[:] = [d for d in dirs if d != ".venv"] dirs[:] = [d for d in dirs if d != ".venv"]
dirs[:] = [d for d in dirs if d != ".vscode"] dirs[:] = [d for d in dirs if d != ".vscode"]
dirs[:] = [d for d in dirs if d != ".trae"]
dirs[:] = [d for d in dirs if d != ".zcode"]
dirs[:] = [d for d in dirs if d != "node_modules"] dirs[:] = [d for d in dirs if d != "node_modules"]
dirs[:] = [d for d in dirs if d != "build"] dirs[:] = [d for d in dirs if d != "build"]
dirs[:] = [d for d in dirs if d != "dist"] dirs[:] = [d for d in dirs if d != "dist"]
+5 -2
View File
@@ -54,6 +54,7 @@ ZENOH_CONFIG = ROOT / "config" / "zenoh_config.json5"
NAME_RE = re.compile(r"^[a-z][a-z0-9_]*$") NAME_RE = re.compile(r"^[a-z][a-z0-9_]*$")
# chongming-worker 内网 git 源(与网关 pyproject.toml [tool.uv.sources] 保持一致) # 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" 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" 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 脚本提供。 uv sync 会跳过其入口点;worker 进程入口由 SDK 的 chongming-worker 脚本提供。
""" """
deps = [ deps = [
"chongming-cache",
"chongming-worker", "chongming-worker",
"orjson", # chongming-worker 运行时依赖(SDK metadata 未声明,容器内需显式安装) "orjson", # chongming-worker 运行时依赖(SDK metadata 未声明,容器内需显式安装)
] ]
@@ -292,11 +294,12 @@ dependencies = [
{deps_lines} {deps_lines}
] ]
[[tool.uv.index]]
url = "{GITEA_PYPI_URL}"
[[tool.uv.index]] [[tool.uv.index]]
url = "{PYPI_MIRROR}" url = "{PYPI_MIRROR}"
[tool.uv.sources]
chongming-worker = {{ git = "{CHONGMING_WORKER_GIT}" }}
""" """
Generated
+1 -1
View File
@@ -229,7 +229,7 @@ wheels = [
[[package]] [[package]]
name = "chongming-cli" name = "chongming-cli"
version = "0.1.0" version = "0.2.1"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "chongming-config" }, { name = "chongming-config" },