This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
78 lines (61 loc) · 1.99 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
.PHONY: run lint test test-cov
run:
replay provenance \
--i-in-fp provenance_lib/tests/data/v5_uu_emperor.qzv \
--p-use-recorded-metadata \
--p-verbose \
--o-metadata-out-fp './gerbils-time' \
--o-out-fp ./replay_scripts/sample_replay.sh
run-py:
replay provenance \
--i-in-fp provenance_lib/tests/data/v5_uu_emperor.qzv \
--p-usage-driver python3 \
--p-use-recorded-metadata \
--p-verbose \
--o-metadata-out-fp './gerbils-time' \
--o-out-fp ./replay_scripts/sample_replay.py
run-cite:
replay citations \
--i-in-fp provenance_lib/tests/data/v5_uu_emperor.qzv \
--p-verbose \
--o-out-fp ./replay_scripts/sample-citations.bib
cite-everything:
replay citations \
--i-in-fp ~/data/alzmice/ileum \
--p-recurse \
--p-verbose \
--o-out-fp ./replay_scripts/every-citation-2.bib
repro-supp:
replay supplement \
--i-in-fp provenance_lib/tests/data/v5_uu_emperor.qzv \
--o-out-fp ./replay_scripts/supplement.zip
# TODO: install and dev targets
# Conda recipe will use make install and will copy the tab-complete language
# https://github.com/qiime2/q2cli/blob/master/hooks/50_activate_q2cli_tab_completion.sh
# from /bin or /scripts over to activate.d
# https://github.com/qiime2/q2cli/blob/ab0afe7917977c1272cad2d334607f7e6b1f6e41/ci/recipe/meta.yaml#L12
# NOTE: Dev will also need to install testing deps, and mypy should prob. move
# over to extras. These are all referenced by the [dev] key in extras
# dev:
# pip install -e .[dev]
lint:
flake8
test: lint
py.test
test-cov: lint
pytest --cov-report=term-missing --cov=provenance_lib
mypy:
mypy -p provenance_lib
uml:
# pyreverse is packaged with pylint, and installable with `pip install pylint`
pyreverse -ASmy -k -o puml provenance_lib/ --ignore tests -p packages
uml-full:
pyreverse -ASmy --colorized -o puml provenance_lib/ --ignore tests -p classes
uml-archive-parser:
pyreverse -ASmy --colorized -o puml provenance_lib/_archive_parser.py
dev:
pip install -e .
clean:
rm -r recorded_metadata replay_scripts
install:
python setup.py install