简体   繁体   English

Requirements.txt,带有pypi和fury中的软件包

[英]requirements.txt with packages in pypi and fury

As I'm using elastic beanstalk, i have to specify a requirements.txt files with all my packages. 当我使用弹性beantalk时,我必须对我所有的软件包都指定一个requirements.txt文件。 The issue I have is that one of the package must be fetch from gemfury, and i'm not sure how to do so. 我的问题是必须从gemfury中获取其中一个程序包,我不确定该怎么做。 The requirements.txt file generated from pipenv lock -r looks like this: 从pipenv lock -r生成的requirements.txt文件如下所示:

-i https://pypi.org/simple
--extra-index-url https://repo.fury.io/123456/fdp/
click==6.7
flask==1.0.2
nose==1.3.7
numpy==1.14.4
py-fdp-utils==1.1.6
pycodestyle==2.4.0

py-fdp-utils is my private package that i want to get from gem fury. py-fdp-utils是我想要从gem fury中获得的私有软件包。

If i run, it will fail on the first package with the following error: 如果我运行,它将在第一个程序包上失败,并显示以下错误:

pip._vendor.requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://repo.fury.io/123456/fdp/click/ pip._vendor.requests.exceptions.HTTPError:404客户端错误:找不到URL: https ://repo.fury.io/123456/fdp/click/

How can i specify requirements.txt to use gem fury index only for this package ? 我如何才能指定requirements.txt以便仅对此软件包使用gem fury索引?

According to the Gemfury docs you might try something like this: 根据Gemfury文档,您可以尝试如下操作:

--index-url https://pypi.fury.io/USERNAME/
--extra-index-url https://pypi.org/simple/
private-package=0.0.1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM