From 3fca30e357284ae7e7148da18c3e1e46a07e39ef Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Wed, 30 May 2018 16:22:54 -0400 Subject: [PATCH 1/4] add .envrc for direnv, and ignore *.pyc --- .envrc | 1 + .gitignore | 1 + 2 files changed, 2 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..77f7c0be --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +. .venv/bin/activate diff --git a/.gitignore b/.gitignore index 189378da..531502c4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ scss/assets .pytest_cache/ .venv/ __pycache__ +*.pyc # Ignore static/fonts for now, since it is just symlink static/fonts From f1d2933505b99cd7107a6b2509dc070bb59eb9a2 Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Wed, 30 May 2018 16:23:28 -0400 Subject: [PATCH 2/4] README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de7f0cbe..45538e27 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The setup script will create a new Python virtual environment for the applicatio source .venv/bin/activate -If you want to automatically load the virtual environment whenever you enter the project directory, take a look at [direnv](https://direnv.net/) +If you want to automatically load the virtual environment whenever you enter the project directory, take a look at [direnv](https://direnv.net/). An `.envrc` file is included in this repository. ## Running (development) From b6f3020d8e934bccddebcbf1ad14116022dbffb1 Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Wed, 30 May 2018 16:26:34 -0400 Subject: [PATCH 3/4] Be more explicit in README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 45538e27..4d3d6933 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,11 @@ The setup script will create a new Python virtual environment for the applicatio source .venv/bin/activate -If you want to automatically load the virtual environment whenever you enter the project directory, take a look at [direnv](https://direnv.net/). An `.envrc` file is included in this repository. +When you are done, type + + deactivate + +If you want to automatically load the virtual environment whenever you enter the project directory, take a look at [direnv](https://direnv.net/). An `.envrc` file is included in this repository. direnv will activate and deactivate virtualenvs for you when you enter and leave the directory. ## Running (development) From b061979d812cd29a2803d3ec486e7f752fd0ca53 Mon Sep 17 00:00:00 2001 From: Brian Duggan Date: Wed, 30 May 2018 16:42:08 -0400 Subject: [PATCH 4/4] Use the source Luke --- .envrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.envrc b/.envrc index 77f7c0be..86241311 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -. .venv/bin/activate +source .venv/bin/activate