Integrate python features into nu.
Compatible with packer.nu and nupm.
This attempts to emulate bash's source .venv/bin/activate:
- update the path to prefer the venv's binaries
- clear the
PYTHONHOME - export
VIRTUAL_ENVwith a path to the venv
And adds a few extra features:
- adds
srcandteststo thePYTHONPATH
It allows stacking venvs (only the top one is active, but you can switch back a lot easier).
Usage:
pyvenv activate(optional argument: specify which directory)pyvenv deactivatepyvenv list
The Package adds env-var conversions for:
PYTHONPATH
- Tab completion for integrated commands
- Parse output from
list, etc updateall
parsed pylint- tab completion
parsed flake8- tab completion
parsed mypy- tab completion