可以从自定义Git存储库在Pipfile包中指定。但是,我找不到关于如何指定用于安装的具体分支或提交的全面文档。
对于如何在Pipfile中为pipenv支持的用于指定自定义分支、版本或提交的python包使用Git是否有完整的参考?
如果它具有等效的pipenv命令行参数,那就太好了。
发布于 2018-12-14 15:54:42
下面是关于pipenv的GitHub回购的一些文档:
您可以使用按以下规则格式化的URL安装来自git和其他版本控制系统的带有pipenv的软件包:
<vcs_type>+<scheme>://<location>/<user_or_organization>/<repository>@<branch_or_tag>#egg=<package_name>https://github.com/pypa/pipenv/blob/master/docs/basics.rst#-a-note-about-vcs-dependencies
因此,例如:
[packages]
requests = {git = "https://github.com/requests/requests.git", editable = true, ref = "v2.20.1"}可以使用命令行生成Pipfile。上面的Pipfile是通过以下方式生成的:
pipenv install -e git+https://github.com/requests/requests.git@v2.20.1#egg=requests有关pip的文档将进入更详细的这里。
https://stackoverflow.com/questions/47617552
复制相似问题