Add python poetry config
parent
5b3fc5ae03
commit
6be3964c7c
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue