/
Makefile
44 lines (33 loc) · 875 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
40
41
42
43
44
VERSION = 3
PIP = pip$(VERSION)
PYTHON = python$(VERSION)
NOSE_FLAGS = -v
NOSE = nosetests $(NOSE_FLAGS)
env: env/bin/activate
env/bin/activate: requirements.txt
test -d env || virtualenv --python=$(PYTHON) env
source env/bin/activate; pip install -r requirements.txt --upgrade
touch env/bin/activate
.PHONY: clean wheel publish
all:
$(PYTHON) setup.py build
build: env
source env/bin/activate; python setup.py install
install:
$(PIP) install -e .
test: build
source env/bin/activate; pip install -r test_requirements.txt --upgrade; $(NOSE)
wheel:
$(PYTHON) setup.py bdist_wheel
publish:
$(PYTHON) setup.py build nosetests
$(PYTHON) setup.py sdist upload -r pypi
$(PYTHON) setup.py bdist_wheel upload -r pypi
clean:
rm -rf UCSDYelpData/*.pyc
rm -rf __pycache__
rm -rf UCSDYelpData/__pycache__
rm -rf build
rm -rf *egg-info
rm -rf dist
rm -rf env