eager-dress-66405
05/19/2022, 6:45 AMrequirement_constraints = "constraints.lock"
to enabling resolves/pex lockfiles in ๐งตeager-dress-66405
05/19/2022, 6:48 AMeager-dress-66405
05/19/2022, 6:50 AMconstaints.lock
file is ...bespoke- no poetry/pip-compile, originally a pip freeze
, but with many hand edits since.eager-dress-66405
05/19/2022, 6:53 AMrequirement_constraints
has been very useful for us to be able to transition to pants while keeping the mini venvs it creates in sync with our legacy mega venv deployments, but we would like to switch over to resolves and pex lockfiles asap in order to 1) take advantage of performance improvements (we're currently spending a lot of time resolving dependencies), 2) allow new projects to split off into their own resolveseager-dress-66405
05/19/2022, 6:54 AMbitter-ability-32190
05/19/2022, 8:18 AMpex
, you can run pex3 lock create -r constraints.lock
to convert your lockfile to the PEX one.
(You'll have to double check the command, going off memory)eager-dress-66405
05/19/2022, 10:05 AMpex3 lock create --constraints "constraints.lock" -r "3rdparty/requirements.txt" > "3rdparty/python/default.lock"
works, but when i try to use it:
pants.core.util_rules.lockfile_metadata.InvalidLockfileError: Could not find a Pants metadata block in the lockfile `3rdparty/python/default.lock` for `python-default`. To resolve this error, you will need to regenerate the lockfile by running `/home/mpcusack/dev/color/pants generate-lockfiles --resolve=python-default`.
bitter-ability-32190
05/19/2022, 11:58 AMbitter-ability-32190
05/19/2022, 12:16 PMhundreds-father-404
05/19/2022, 12:41 PMeager-dress-66405
05/19/2022, 12:43 PM