summaryrefslogtreecommitdiff
path: root/makefile
blob: 2219cc1f74fcecde4cda419b01f8f8ba1863c2f6 (plain)
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
.PHONY: test test-all upload register clean bootstrap

test: bootstrap
	_virtualenv/bin/nosetests tests

upload: jq.c
	python setup.py sdist upload
	make clean
	
register:
	python setup.py register

clean:
	rm -f MANIFEST
	rm -rf dist
	
bootstrap: _virtualenv jq.c
	_virtualenv/bin/pip install -e .
ifneq ($(wildcard test-requirements.txt),) 
	_virtualenv/bin/pip install -r test-requirements.txt
endif
	make clean

_virtualenv: 
	virtualenv _virtualenv
	_virtualenv/bin/pip install --upgrade pip
	_virtualenv/bin/pip install --upgrade setuptools

jq.c: _virtualenv jq.pyx
	_virtualenv/bin/pip install cython==0.19.2
	_virtualenv/bin/cython jq.pyx