-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
111 lines (86 loc) · 3.04 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
PROJECT=vipe
MY_CURR_DIR=$(shell pwd)
MY_PYTHON_PATH=$(shell echo ${PYTHONPATH})
PIP=pip3
all: build-source-package
build-source-package: clean rst-description-file
./setup.py sdist
install-user: clean rst-description-file
./setup.py install --user
install: clean rst-description-file
./setup.py install
uninstall-user:
$(PIP) uninstall $(PROJECT)
uninstall:
$(PIP) uninstall $(PROJECT)
test:
export PYTHONPATH=$(MY_PYTHON_PATH):$(MY_CURR_DIR); py.test $(PROJECT)
## Check correctness of the `.travis.yml` file
check-travis:
travis-lint
check-package-metatada: rst-description-file
./setup.py check --restructuredtext
html-readme:
mkdir -p tmp
pandoc -N -t html -s --no-wrap -o tmp/README.html README.md
run-oozie2oozie_yaml-example-complex:
dev_utils/run_oozie2oozie_yaml.sh examples/complex_workflow/workflow.xml
run-oozie2oozie_yaml-example-simple:
dev_utils/run_oozie2oozie_yaml.sh examples/simple_workflow/workflow.xml
run-oozie2pipeline-example-complex:
dev_utils/run_oozie2pipeline.sh examples/complex_workflow/workflow.xml
run-oozie2pipeline-example-simple:
dev_utils/run_oozie2pipeline.sh examples/simple_workflow/workflow.xml
run-oozie2dot-example-complex:
mkdir -p tmp
dev_utils/run_oozie2dot.sh examples/complex_workflow/workflow.xml \
tmp/complex
run-oozie2dot-example-simple:
mkdir -p tmp
dev_utils/run_oozie2dot.sh examples/simple_workflow/workflow.xml \
tmp/simple
run-oozie2png-example-complex:
mkdir -p tmp
dev_utils/run_oozie2png.sh examples/complex_workflow/workflow.xml \
tmp/complex
run-oozie2png-example-simple:
mkdir -p tmp
dev_utils/run_oozie2png.sh examples/simple_workflow/workflow.xml \
tmp/simple
run-oozie2png-example-iis-workflows:
mkdir -p tmp
dev_utils/run_oozie2png.sh examples/iis_workflows/preprocessing-main.xml tmp/preprocessing-main
dev_utils/run_oozie2png.sh examples/iis_workflows/primary-main.xml tmp/primary-main
dev_utils/run_oozie2png.sh examples/iis_workflows/primary-processing.xml tmp/primary-processing
clean:
rm -rf build dist $(PROJECT).egg-info docs-api tmp
## PyPI requires the description of the package to be in the reStructuredText
## format. This is how we generate it from the Markdown README.
rst-description-file:
mkdir -p tmp
pandoc --from=markdown --to=rst README.md -o tmp/README.rst
## Uplading to testpypi and pypi as defined below requires two profiles to be
## defined in the `~/.pypirc` file: `test` and `pypi`.
## On my computer this looks like this:
##
## [distutils]
## index-servers=
## pypi
## test
##
## [test]
## repository = https://testpypi.python.org/pypi
## username = XXXX
## password = XXXX
##
## [pypi]
## repository = https://pypi.python.org/pypi
## username = XXXX
## password = XXXX
## Note that in order to make the `bdisk_wheel` option work you need to have
## `wheel` Python package installed.
upload-to-testpypi-and-install: rst-description-file
./setup.py sdist bdist_wheel upload -r test
$(PIP) install --user -i https://testpypi.python.org/pypi $(PROJECT)
upload-to-pypi: rst-description-file
./setup.py sdist bdist_egg bdist_wheel upload -r pypi