From d9185b5eecd1ce99e064369acb691b72b6382b28 Mon Sep 17 00:00:00 2001 From: Bill ONeill Date: Tue, 1 Aug 2017 10:22:22 -0700 Subject: [PATCH] Use direnv to setup virtualenv --- .envrc | 3 +++ .gitignore | 3 ++- README.md | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3f72b84 --- /dev/null +++ b/.envrc @@ -0,0 +1,3 @@ +layout python python2 +pip install --quiet -r requirements.txt +watch_file requirements.txt diff --git a/.gitignore b/.gitignore index 207b927..f5e1ea6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -html/ \ No newline at end of file +html/ +.direnv diff --git a/README.md b/README.md index 20ff8e5..6e637a6 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,6 @@ Review and run the `bootstrap.sh` script to generate the EPUB. **Note**: Currently relies on python2 and pip to install dependencies and does not setup a virtualenv. Please review the script and edit -as per your needs. +as per your needs. If you have [direnv](https://direnv.net/) +installed, it will set up the virtualenv for you after you run +`direnv allow`.