forked from mining/mining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 794 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
37
38
39
.PHONY: test
test: pep8 clean
@nosetests --with-coverage --cover-package=mining mining/test
@$(which gulp.js)
.PHONY: tox-test
tox-test: environment
@tox
.PHONY: environment
environment:
@pip install Cython
@pip install numpy
@pip install -r requirements_dev.txt
@python setup.py develop
@npm install bower
.PHONY: build
build: environment
@cd mining; git submodule init; git submodule update
@cd mining/frontend; bower install
.PHONY: install
install:
@python setup.py install
.PHONY: pep8
pep8:
@flake8 mining --ignore=E402,F403,F401,F812,E128 --exclude=mining/assets
.PHONY: sdist
sdist: test
@python setup.py sdist upload
.PHONY: clean
clean:
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;