-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 975 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: clean clean-pyc docs
COMMIT_HASH := $(shell git rev-parse --short --verify HEAD)
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
LIB_VERSION := $(shell python setup.py --version)
LIB_NAME := $(shell python setup.py --name)
SRC_DIRS := managers/ dumpers/ toolbox/ bin/ refreshers/ tests/
COVERAGE_VERSION := $(shell coverage --version 2>/dev/null)
help:
@echo clean - clean up previous build
@echo build - builds pyfsn project egg on dist/
@echo install-all-deps - install all the project dependencies
@echo help - show this help
compile:
python -m compileall ${SRC_DIRS}
test: compile
nosetests -v tests --with-coverage --cover-package=bin,toolbox --cover-branches
clean-pyc:
find . -name \*.pyc -delete
clean: clean-pyc
$(RM) -r build dist *.egg-info
( cd dumpers; $(RM) -r build dist *.egg-info )
build-lib: clean
python setup.py bdist_egg
build: clean
python setupdeploy.py bdist_egg
install-all-deps:
pip install -r requirements.txt -U