pip-reqs compile只能从多个github zip包中解析一个



我有一个要求。在文件中只安装指向github zip URL的其中一个包。

这就是我重现这个问题的方法。看看箱子。我总是运行pip-reqs compile

requirements.in:
https://github.com/jrutila/checkout-psp-client/archive/master.zip#egg=checkout-psp-client==0.0.1
results in requirements.txt with:
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --no-index --output-file /workspace/requirements.txt /workspace/requirements.in
#
asgiref==3.3.1            # via django
https://github.com/jrutila/checkout-psp-client/archive/master.zip#egg=checkout-psp-client==0.0.1
django==3.1.7
pytz==2021.1              # via django
sqlparse==0.4.1           # via django

好的,所以checkout-psp-client是正确列出的。我在一个容器里运行这个,不确定django的东西是从哪里来的…让我们尝试添加下一个包。

requirements.in:
https://github.com/jrutila/checkout-psp-client/archive/master.zip#egg=checkout-psp-client==0.0.1
https://github.com/jrutila/django-slick-reporting/archive/master.zip#egg=django-slick-reporting==0.5.99
results in requirements.txt with:
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --no-index --output-file /workspace/requirements.txt /workspace/requirements.in
#
asgiref==3.3.1            # via django
https://github.com/jrutila/django-slick-reporting/archive/master.zip#egg=django-slick-reporting==0.5.99
django==3.1.7
pytz==2021.1              # via django
sqlparse==0.4.1           # via django

不再有checkout-psp-client。有趣的…让我们交换一下包。

requirements.in:
https://github.com/jrutila/django-slick-reporting/archive/master.zip#egg=django-slick-reporting==0.5.99
https://github.com/jrutila/checkout-psp-client/archive/master.zip#egg=checkout-psp-client==0.0.1
results in requirements.txt with:
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --no-index --output-file /workspace/requirements.txt /workspace/requirements.in
#
asgiref==3.3.1            # via django
https://github.com/jrutila/checkout-psp-client/archive/master.zip#egg=checkout-psp-client==0.0.1
django==3.1.7
pytz==2021.1              # via django
sqlparse==0.4.1           # via django

现在缺少django-slick-reporting了!显然顺序很重要。

我在这里错过了什么?原始文件包含更多的PyPi包和一个github URL,它们被正确列出。添加第二个github URL后,它开始行为不当,这是最小的例子,我可以重现这种行为。似乎我只能包含来自外部源的一个包。pip-reqs compile没有给出任何错误,似乎没有详细的选项?

您需要与Divio的支持取得联系,这是Divio专用工具

最新更新