setup.py的pip-compile install_requires而不是需求.txt
pip-compile
启用sumplions.txt
的固定要求的可食用性。我真的很喜欢
我的问题是,我们可以以某种方式做同样的事情,但是对于install_requires
list setup.py ?
换句话说,如果我没有unignts.txt
,而只是setup.py
,是否可以使用pip compile
?
pip-compile
enables traceability in pinning requirements inside a requirements.txt
with an external requirements.in
. I really like this
My question is, can we somehow do the same, but for an install_requires
list inside setup.py
?
In other words, if I don't have a requirements.txt
but instead just a setup.py
, is it possible to use pip-compile
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,pip-tools支持
pyproject.toml
,setup.cfg
和setup.py
配置文件来自版本6.1.0(2021-04) -14)。您应该只运行:
查看文档:
来自pyproject.toml
setup.py和setup.cfg
changElog,verson,verson 6.1.0(2021-04-14)
Yes, pip-tools supports
pyproject.toml
,setup.cfg
, andsetup.py
configuration files from version 6.1.0 (2021-04-14).You should just run:
Take a look at the documentation:
Requirements from pyproject.toml
Requirements from setup.py and setup.cfg
Changelog, verson 6.1.0 (2021-04-14)