-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1012 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
path = PATH=$(PWD)/.tox/py3-build/bin:$(shell echo "${PATH}")
version = $(shell $(path) python setup.py --version)
dist = dist/yaml2csv-$(version)
publish: $(dist)/bin/yaml2csv.xz
$(path) aws s3 cp \
$< \
s3://bioboxes-packages/yaml2csv/yaml2csv-$(version).xz \
--grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
feature: $(dist)/bin/yaml2csv
tox -e py3-feature -- $(ARGS)
test:
tox -e py3-unit -- $(ARGS)
###########################################
#
# Build project binary and documentation
#
###########################################
build: $(dist)/bin/yaml2csv
%.xz: %
xz --keep --force $<
$(dist)/bin/yaml2csv: \
$(shell find yaml2csv bin -type f ! -iname "*.pyc") \
requirements/default.txt \
setup.py \
MANIFEST.in
tox -e py3-build -- $(dir $@)
#################################################
#
# Bootstrap project requirements
#
#################################################
bootstrap:
mkdir -p tmp
.PHONY: test bootstrap build publish feature