-
Notifications
You must be signed in to change notification settings - Fork 130
/
Makefile
25 lines (19 loc) · 599 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
PYTHON:=$(shell which python3)
all: python
.PHONY: clean python test flake8
python: setup.py requirements.txt
pip install virtualenv
echo "\n Creating python virtual environment......\n"
virtualenv -p $(PYTHON) env
echo "\n Use python virtual environment to install required packages......\n"
env/bin/pip install -e .
mkdir -p webspider/log
touch webspider/log/spider_log.txt
test: flake8
env/bin/nosetests -vd
flake8:
env/bin/flake8
clean:
-rm -rf env cover *eggs *.egg-info *.egg webspider/log
@find . -type f -name "*.py[co]" -delete
@find . -type d -name "__pycache__" -delete