Skip to main content

auto-activate venv as one cd into a poetry project

Project description

Overview

auto-activate venv as one cd into a poetry project folder.

Installation

To install use pip:

xpip install xontrib-avox-poetry
# or: xpip install -U git+https://github.com/jnoortheen/xontrib-avox-poetry

Usage

xontrib load avox_poetry

Configuration

# 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"}

Credits

This package was created with xontrib cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-avox-poetry-0.2.6.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

xontrib_avox_poetry-0.2.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-avox-poetry-0.2.6.tar.gz.

File metadata

  • Download URL: xontrib-avox-poetry-0.2.6.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.1.0

File hashes

Hashes for xontrib-avox-poetry-0.2.6.tar.gz
Algorithm Hash digest
SHA256 bf61886525477459974a1b9f34bb8ff47c58c4717eb3f5f28fc243d737d73c20
MD5 29630114d539475b196e4e50a764c835
BLAKE2b-256 bf41099c12b1cb076f6fffa8e33e759e8d10c381ee0539ee26cc6a423cd1e5c1

See more details on using hashes here.

File details

Details for the file xontrib_avox_poetry-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_avox_poetry-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8b84ce8a20dd8bbdf5d50c4ebed1a7925cfce2c3c4e39f2c9f736ec6efc42036
MD5 433094a69c7c91af0ab35d7d41798e15
BLAKE2b-256 ba08883be1a9455ef3c67612be487a1adea8d46c474fdcc70cd24ad03e06edb7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page