Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

函数计算-Python包依赖管理方案 #1

Open
Guo-Zhang opened this issue May 23, 2023 · 2 comments
Open

函数计算-Python包依赖管理方案 #1

Guo-Zhang opened this issue May 23, 2023 · 2 comments

Comments

@Guo-Zhang
Copy link
Member

  1. 使用poetry的分组功能,根据云函数依赖进行分组,包括公共、函数特定、开发依赖(测试、文档)等。
  2. 使用poetry export导出多个不同的requirements.txt到每个函数的目录下。
  3. 在每个函数目录下运行pip install -r requirements.txt -t .
@Guo-Zhang Guo-Zhang changed the title 基于poetry的包依赖管理方案 函数计算-基于poetry的包依赖管理方案 Jan 24, 2024
@Guo-Zhang
Copy link
Member Author

poetry的主要缺点是不兼容PEP。如果希望自定义,最好的思路是选择兼容PEP的方案,比如pdm,并且在此基础上扩展。

@Guo-Zhang Guo-Zhang changed the title 函数计算-基于poetry的包依赖管理方案 函数计算-Python包依赖管理方案 Apr 16, 2024
@Guo-Zhang
Copy link
Member Author

计划更换成PDM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant