【问题标题】:Pipenv: What types of github reference can you use for the "ref" argument?Pipenv:“ref”参数可以使用哪些类型的 github 引用?
【发布时间】:2019-12-09 07:21:24
【问题描述】:

当使用 pipenv 拉入 github repo 时,“ref”参数可以使用哪些类型的引用?

它可以是一个功能分支吗? 可以是发行版吗? 可以是标签分支吗?

我在这里查看了文档:

https://pipenv.kennethreitz.org/en/latest/basics/#a-note-about-vcs-dependencies

# Pipfile with tag version (v0.0.2):
my-sdk = {editable = true,git = "git@github.com/MyDev/my-sdk.git", ref = "v0.1.2"}

【问题讨论】:

    标签: python github repository pipenv


    【解决方案1】:

    根据the pip documentation,您可以使用“分支名称、提交哈希、标签名称或 git ref”。所以任何分支、标签、完整引用或提交哈希都是允许的。

    还可以使用任意的 Git 修订表达式,但没有文档证明它可以工作。

    【讨论】:

    • 谢谢!我没想到它会记录在 pip 中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多