From 3ff7582a24e847b1e1369d3cebbdda805ca85ed7 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sun, 30 Aug 2020 10:08:06 -0400 Subject: [PATCH] infra: boostrap script --- .gitignore | 3 ++- .python-version | 1 + script/bootstrap | 10 ++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .python-version create mode 100644 script/bootstrap diff --git a/.gitignore b/.gitignore index 4ec9553..debff4f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ dbm.* .DS_Store .vscode/ .vscode/settings.json -lib \ No newline at end of file +lib +*.venv diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..a08ffae --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.8.2 diff --git a/script/bootstrap b/script/bootstrap new file mode 100644 index 0000000..a27de63 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,10 @@ +#!/bin/bash + +pyenv install --skip-existing + +VENV="${PWD##*/}.venv" +VENV=${VENV#-} +python -m venv $VENV +. $VENV/bin/activate +python -m pip install -U pip wheel +python -m pip install -r requirements.txt