-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (35 loc) · 1.01 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
SHELL:=/bin/bash
.ONESHELL:
UNAME:=$(shell uname)
export PATH:=$(CURDIR)/conda/bin:$(CURDIR)/bin:$(PATH)
unexport PYTHONPATH
unexport PYTHONHOME
ifeq ($(UNAME), Darwin)
CONDASH:=Miniconda3-4.7.12-MacOSX-x86_64.sh
endif
ifeq ($(UNAME), Linux)
CONDASH:=Miniconda3-4.7.12-Linux-x86_64.sh
endif
CONDAURL:=https://repo.anaconda.com/miniconda/$(CONDASH)
conda:
@set +e
echo ">>> Setting up conda..."
wget "$(CONDAURL)"
bash "$(CONDASH)" -b -p conda
rm -f "$(CONDASH)"
# install for self-contained conda in current dir
install: conda
. conda/bin/activate && \
conda env update --file environment.yml
# source conda/bin/activate
# conda deactivate
# install into pre-existing conda
# conda env create -n pluto -f environment.yml
# conda activate pluto
# https://pytest-xdist.readthedocs.io/en/latest/distribution.html
# https://docs.pytest.org/en/7.2.x/how-to/unittest.html#unittest
test:
pytest -n 4 --ignore docs -s .
CWL_ENGINE=toil pytest -n 4 --ignore docs -s .
lint:
mypy --namespace-packages --explicit-package-bases .