diff --git a/pyproject.toml b/pyproject.toml index d343efc..4ded45b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = ["hatchling"] [project] name = "chongming-cli" -version = "0.1.2" +version = "0.2.1" description = "chongming 命令脚本集合:构建打包 / 进程插件打包 / 插件脚手架 / 模型生成" readme = "README.md" requires-python = ">=3.12" diff --git a/src/chongming_cli/code_content.py b/src/chongming_cli/code_content.py index a5e69fc..a4caf15 100644 --- a/src/chongming_cli/code_content.py +++ b/src/chongming_cli/code_content.py @@ -8,6 +8,8 @@ def generate_markdown_from_py_files(directory, output_file): # 排除 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 != ".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 != "build"] dirs[:] = [d for d in dirs if d != "dist"] diff --git a/src/chongming_cli/gen_plugin.py b/src/chongming_cli/gen_plugin.py index c1f8060..df9fcd5 100644 --- a/src/chongming_cli/gen_plugin.py +++ b/src/chongming_cli/gen_plugin.py @@ -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}" }} """ diff --git a/uv.lock b/uv.lock index 53724f2..c552ddc 100644 --- a/uv.lock +++ b/uv.lock @@ -229,7 +229,7 @@ wheels = [ [[package]] name = "chongming-cli" -version = "0.1.0" +version = "0.2.1" source = { editable = "." } dependencies = [ { name = "chongming-config" },