billowy-cat-69904
06/03/2024, 9:34 AMrequirements.txt
. In poly repo, I used to create virtual environments, but my understanding with pants tells me that I can achieve similar thing, if I maintain separate lock files for each project and I export the virtual environment using pants export --py-resolve-format=mutable_virtualenv --export-resolve=python-default
. Is that the recommended way?
Another follow up question is, when I add a new package to requirements.txt
, do I have to update the lock file? And once I update the lock file is it exported to the pants virtual environment or I have to run the command pants export ...
command again.narrow-vegetable-37489
06/03/2024, 9:39 AM