You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a (supported) way to include mypkg in the generated requirements.txt?
If so I don't know it. The --require-hashes option actually comes from pip. I think it's reasonable to operate in that mode when explicitly generating hashes, since they're normally present. However we might add an option to handle additional dependencies in such cases?
Also, it wouldn't make sense to generate the hash for an editable copy of mypkg since it'll change on the next build and will never match. You really need to package it for deployment and hash that.
I have a Python package (with
pyproject.toml
) that is released to an internal package registry.I use
pip-compile
to pin its dependencies like this:And an Ansible task to deploy it to some hosts:
Note: the
requirements.txt
and apip.conf
for the internal registry were copied beforehand. Seems to work okay so far.When I add
--generate-hashes
to thepip-compile
call, it bails on me:The missing hashes are those for
mypkg
.Is there a (supported) way to include
mypkg
in the generatedrequirements.txt
? Or is this the wrong way to handle it?The text was updated successfully, but these errors were encountered: