1 Star 0 Fork 0

cc/fastapi-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pdm_build.py 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
import os
from typing import Any, Dict
from pdm.backend.hooks import Context
TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi-cli")
def pdm_build_initialize(context: Context):
metadata = context.config.metadata
# Get custom config for the current package, from the env var
config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
"_internal-slim-build"
]["packages"].get(TIANGOLO_BUILD_PACKAGE)
if not config:
return
project_config: Dict[str, Any] = config["project"]
# Override main [project] configs with custom configs for this package
for key, value in project_config.items():
metadata[key] = value
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/imsanzang/fastapi-cli.git
git@gitee.com:imsanzang/fastapi-cli.git
imsanzang
fastapi-cli
fastapi-cli
dependabot/github_actions/pypa/gh-action-pypi-publish-1.12.2

搜索帮助

0d507c66 1850385 C8b1a773 1850385