Permalink
Browse files

Use make targets for pip package install and devserver

  • Loading branch information...
lovett committed Jan 9, 2017
1 parent 7921404 commit f431c91250be33d08e505566605bcee3ed698505
Showing with 11 additions and 8 deletions.
  1. +5 −2 Makefile
  2. +3 −4 README.org
  3. +3 −2 workspace.sh
View
@@ -28,11 +28,14 @@ venv: dummy
rm -rf venv
virtualenv -p python3 --no-site-packages --prompt="♪ ♪ ♪" venv
-pip: dummy
- pip install --upgrade pip
+setup: dummy
+ pip install --upgrade pip setuptools
pip install -r requirements.txt
pip install -r requirements-dev.txt
+serve: dummy
+ python medley.py
+
# Create the coverage directory
$(COVERAGE_DIR):
View
@@ -7,11 +7,10 @@ well as virtualenv and make. Then:
git clone git@github.com:lovett/medley.git
cd medley
make venv
-source bin/activate
-pip install -r requirements.txt
-pip install -r requirements-dev.txt
+source venv/bin/activate
+make setup
cp medley.conf.example medley.conf
-python medley.py
+make serve
#+end_src
* Testing
View
@@ -15,13 +15,14 @@ tmux attach-session -d -t "$PROJECT_NAME" || {
## 0: Editor
tmux new-session -d -s "$PROJECT_NAME" bash
- tmux send-keys -t "$PROJECT_NAME" "e ." C-m
+ tmux send-keys -t "$PROJECT_NAME" "$EDITOR ." C-m
## 1: Shell
tmux new-window -a -t "$PROJECT_NAME" bash
+ tmux send-keys -t "$PROJECT_NAME" "source venv/bin/activate" C-m
## 2: Dev server
- tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "source venv/bin/activate; python medley.py"
+ tmux new-window -a -t "$PROJECT_NAME" -n "devserver" "source venv/bin/activate; make serve"
tmux select-window -t "$PROJECT_NAME":0

0 comments on commit f431c91

Please sign in to comment.