What's Changed
Breaking changes
-
venv installcan now be used to install individual packages:venv install <package>by @connesy in #37To enable this feature, installing from a requirements file now requires the use of the new
-r | --requirementflags:venv install -r requirements.txt. Packages installed usingvenv install <package>are first added to the requirements file before reinstalling the entire environment to ensure reproducibility. To uninstall packages, use the newvenv uninstallsubcommand, e.g.venv uninstall <package>. -
venv synchas been removed. Usevenv install -r <requirements>.lockinstead by @connesy in #17
Major changes
-
Added
venv uninstallsubcommand to complement the new functionality ofvenv install <package>by @connesy in #37Running
venv uninstall <package>will first remove the package fromrequirements.txt, then usevenv install -r requirements.txtto reinstall the environment without<package>.This process ensures that there are no "orphaned dependencies" left in the environment after uninstalling, unlike when using
pip uninstall <package>. -
Loosened the file name requirements for
requirementsfiles. Requirements files can now be any valid file name with the extension.txt(.lockfor lock files) by @connesy in #35
Full Changelog: https://github.com/SallingGroup-AI-and-ML/venv-cli/blob/v2.0.0/CHANGELOG.md