自动激活venv,在cd到poetry项目时
项目描述
概述
自动激活venv,在cd到poetry项目文件夹时。
安装
要安装,请使用pip
xpip install xontrib-avox-poetry
# or: xpip install -U git+https://github.com/jnoortheen/xontrib-avox-poetry
用法
xontrib load avox_poetry
配置
# If found, the env name is searched inside the $VIRTUALENV_HOME
# rather than invoking `poetry env info -p` command every time `cd` happens
# It is faster setting this variable. It will also be used by poetry.
$VIRTUALENV_HOME = "~/.virtualenvs"
# name of the venv folder. If found will activate it.
# if set to None then local folder activation will not work.
$XSH_AVOX_VENV_NAME = ".venv"
# exclude activation of certain paths by setting
$XSH_AVOX_EXCLUDED_PATHS = {"xsh-src"}
鸣谢
此包是用xontrib cookiecutter模板创建的。
项目详情
下载文件
下载适合您平台的项目文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源码分发
xontrib-avox-poetry-0.3.3.tar.gz (4.4 kB 查看哈希值)