-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·25 lines (21 loc) · 836 Bytes
/
setup.sh
File metadata and controls
executable file
·25 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /usr/bin/bash
echo "install poetry if not in path"
if ! command -v poetry &> /dev/null
then
echo "poetry is missing. Installing ..."
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
source "$HOME/.poetry/env"
fi
echo "setting up poetry config"
poetry config virtualenvs.path .venv
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
echo "installing dependencies"
poetry install --no-interaction --no-root
echo "installing libraries"
poetry install --no-interaction
echo "setup tab completion for invoke"
#see http://docs.pyinvoke.org/en/stable/invoke.html#shell-tab-completion
poetry run invoke --print-completion-script zsh > .invoke-completion.sh
#then run this in you console to activate the tab completion
#source .invoke-completion.sh