-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (34 loc) · 1.14 KB
/
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
.PHONY: all build clean install vendor docs
PYMODULE=quickavro
CLEAN=build dist MANIFEST *.egg-info *.egg htmlcov tests/tmp .cache .benchmarks tmp .eggs $(PYMODULE)/*.so
GH_PAGES_SOURCES=docs/source $(PYMODULE) docs/Makefile vendor
CURRENT_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD)
NEW_COMMIT_MESSAGE:=$(shell git log $(CURRENT_BRANCH) -1 --pretty=short --abbrev-commit)
all: build
build:
@echo "Building quickavro extension ..."
@python setup.py build --force
install:
@echo "Installing quickavro ..."
@pip install --ignore-installed --upgrade .
publish: test build
python setup.py register
python setup.py sdist upload
test:
@py.test tests/
@rm -rf tests/tmp
@find . -name '__pycache__' -delete -o -name '*.pyc' -delete
vendor:
@echo -n "Downloading vendor files ..."
@$(MAKE) -C vendor download >/dev/null 2>&1
@echo "Done"
clean:
@echo "Cleaning up existing build files..."
@rm -rf $(CLEAN)
@find . -name '__pycache__' -delete -print -o -name '*.pyc' -delete -print
clean-vendor:
@echo -n "Cleaning up vendor files..."
@rm -rf vendor/*.tar.gz avro jansson snappy zlib
@echo "Done"
docs:
@cd docs && sphinx-build -b html src .