forked from qiime2/q2cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 884 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 884 Bytes
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
.PHONY: all lint test init-view-submodule vendor-view install dev clean distclean
PYTHON ?= python
PREFIX ?= $(CONDA_PREFIX)
all: ;
lint:
q2lint
flake8
test: all
QIIMETEST= pytest
vendor-view: all
git submodule init && \
git submodule update && \
cd q2view && \
npm install --no-save && \
npm run vendor --VENDOR_DIR=../q2cli/assets/view
# install pytest-xdist plugin for the `-n auto` argument.
mystery-stew: all
MYSTERY_STEW= pytest -k mystery_stew -n auto
install: vendor-view all
$(PYTHON) -m pip install -v . && \
mkdir -p $(PREFIX)/etc/conda/activate.d && \
cp hooks/50_activate_q2cli_tab_completion.sh $(PREFIX)/etc/conda/activate.d/
dev: vendor-view all
pip install -e . && \
mkdir -p $(PREFIX)/etc/conda/activate.d && \
cp hooks/50_activate_q2cli_tab_completion.sh $(PREFIX)/etc/conda/activate.d/
clean: distclean
rm -rf ./q2cli/assets
distclean: ;