Add python poetry config

pull/1/head
Ensar Sarajčić 2021-02-18 11:30:25 +01:00
parent 5b3fc5ae03
commit 6be3964c7c
2 changed files with 15 additions and 0 deletions

View File

@ -1 +1,15 @@
source "$(asdf direnv hook asdf)"
layout_poetry() {
if [[ ! -f pyproject.toml ]]; then
log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to create one first.'
exit 2
fi
# create venv if it doesn't exist
poetry run true
export VIRTUAL_ENV=$(poetry env info --path)
export POETRY_ACTIVE=1
PATH_add "$VIRTUAL_ENV/bin"
}

View File

@ -5,3 +5,4 @@ nodejs 15.5.0
rust 1.49.0
flutter 1.22.6-stable
dart 2.12.0-259.0.dev
poetry 1.1.4