This change adds the riot requirements <hash> command, which uses pip-compile to generate a requirements lockfile for the venv identified by the hash. It also adds the -c/--recompile-requirements flag to riot run. When set, this flag causes the requirements.txt lockfile and the venv itself to be regenerated. When omitted, the requirements lockfile is only built if it does not already exist.
This is a useful feature because it reduces duplicated work during riot run. In current master, every riot run has to build the dependency tree for its venv before installing those dependencies. With this change, the built dependency tree is saved in the form of a lockfile and reused on subsequent riot run invocations.
This change adds the
riot requirements <hash>
command, which uses pip-compile to generate a requirements lockfile for the venv identified by the hash. It also adds the-c/--recompile-requirements
flag toriot run
. When set, this flag causes the requirements.txt lockfile and the venv itself to be regenerated. When omitted, the requirements lockfile is only built if it does not already exist.This is a useful feature because it reduces duplicated work during
riot run
. In current master, everyriot run
has to build the dependency tree for its venv before installing those dependencies. With this change, the built dependency tree is saved in the form of a lockfile and reused on subsequentriot run
invocations.