Skip to content

Commit

Permalink
Update Makefile tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Mar 25, 2013
1 parent bf321b9 commit e7fa2c7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.*.sw[a-z]

libs/*
third_party/*
!.gitignore
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@

LIBS_DIR='libs/'
THIRD_PARTY='third_party/'

test:
py.test test_raequel.py

install_deps:
pip install --no-dependencies --target=${LIBS_DIR} -r requirements.txt
deps:
pip install --no-dependencies --target=${LIBS_DIR} rae

deploy: install_deps
develop_deps: deps
pip install --target=${THIRD_PARTY} lxml mockcache pytest

deploy: deps clean
-rm -fr ${THIRD_PARTY}/* # Don't push third party libs to server
appcfg.py update .

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +

clean: clean-pyc
-rm -fr libs/*
-rm -fr __pycache__

.PHONY: libs deploy clean clean-pyc
11 changes: 9 additions & 2 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ libraries:
version: latest

skip_files:
- ^(.*/)?Makefile
- ^(.*/)?.*~
- ^(.*/)?app\.yaml
- ^(.*/)?app\.yml
- ^(.*/)?index\.yaml
- ^(.*/)?index\.yml
- ^(.*/)?#.*#
- ^(.*/)?.*~
- ^(.*/)?.*\.py[co]
- ^(.*/)?.*/RCS/.*
- ^(.*/)?\..*
- ^(.*/)?Makefile
- ^(.*/)?__pycache__
Empty file added third_party/.gitignore
Empty file.

0 comments on commit e7fa2c7

Please sign in to comment.