-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
49 lines (34 loc) · 926 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
45
46
47
48
49
SHELL := /bin/bash
PYTHON := python
PIP := pip
BUILD_DIR := ./build
DIST_DIR := ./dist
COVER_DIR := ./_trial_temp/coverage
clean:
find . -name "*.py[co]" -delete
buildclean: clean
rm -rf $(BUILD_DIR)
distclean: clean buildclean
rm -rf $(DIST_DIR)
coverclean: clean
rm -rf $(COVER_DIR)
deps: py_deploy_deps py_dev_deps
py_deploy_deps: $(BUILD_DIR)/pip-deploy.log
$(BUILD_DIR)/pip-deploy.log: requirements.txt
@mkdir -p $(BUILD_DIR)
$(PIP) install -Ur $< && touch $@
py_dev_deps: $(BUILD_DIR)/pip-dev.log
$(BUILD_DIR)/pip-dev.log: requirements_dev.txt
@mkdir -p $(BUILD_DIR)
$(PIP) install -Ur $< && touch $@
unit: clean
trial --coverage cooperative
test: clean unit
build: distclean
python setup.py sdist bdist_egg
build_win:
python setup.py bdist_wininst
release: distclean
python setup.py sdist upload -r pypi
python setup.py bdist_egg upload -r pypi
python setup.py bdist_wininst upload -r pypi