← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 8743.c · 生成模型:GPT-6

声明范围与锁定版本职责不同

理解等级:中级

pyproject表达项目及依赖约束,Poetry添加包可同时维护声明与解析结果。应提交相容的声明和锁文件,并区分修改依赖与按锁安装;不能用只复制pyproject而漏锁的镜像示例证明固定版本重建。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Installing dependencies automatically updates pyproject.toml When we run poetry add some-package, Poetry will figure out what’s the latest compatible version that we can use, and automatically update pyproject.toml for us. We no longer have to manually figure out which version to specify when updating requirements.txt, or manually dig out the actual version number that was installed by running pip list! A single pyproject.toml dependency specification

    参考来源

    - 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第03章《依赖管理的原则与工具》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch03.html) - 结论依据:摘录中关于声明范围与锁定版本职责不同的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Installing dependencies automatically updates pyproject.toml When we run poetry add some-package, Poetry will figure out what’s the latest compatible version that we can use, and automatically update pyproject.toml for us. We no longer have to manually figure out which version to specify when updating requirements.txt, or manually dig out the actual version number that was installed by running pip list! A single pyproject.toml dependency specification