Skip to content

Instantly share code, notes, and snippets.

@edvardm
Last active June 17, 2019 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edvardm/987faae5e5e3ab3e0adf2b9b08f184d1 to your computer and use it in GitHub Desktop.
Save edvardm/987faae5e5e3ab3e0adf2b9b08f184d1 to your computer and use it in GitHub Desktop.
Simple bootstrapt script intended to be used /w curl or similar
#!/usr/bin/env bash
# This script is intended to setup things so that more advanced project commands (doit, poetry) can be easily used
set -eu
VENV_DIR=".venv"
echo "Creating venv to ${VENV_DIR} unless present"
test -d ${VENV_DIR} || python3 -m venv ${VENV_DIR}
echo "Activate venv and install poetry"
. ${VENV_DIR}/bin/activate && \
pip install --upgrade pip && \
pip install poetry && \
poetry install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment