forked from biolink/ontobio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 848 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
# DOCS
# See https://github.com/pypa/virtualenv/issues/149
pydoc-%:
python -m pydoc ontobio.ontol
#PACKAGES = prefixcommons scigraph biogolr
PACKAGES = ontobio prefixcommons
subpackage_tests: $(patsubst %,test-%,$(PACKAGES))
test:
pytest tests/*.py
debug_test:
pytest -s -vvvv tests/*.py
t-%:
pytest tests/test_$*.py
foo:
which pytest
# only run local tests
travis_test:
pytest tests/test_*local*.py tests/test_*parser*.py
cleandist:
rm dist/* || true
# TODO: manually increment version in ontobio/__init__.sh, run . bump.sh, then this
release: cleandist
python setup.py sdist bdist_wheel bdist_egg
twine upload dist/*
nb:
PYTHONPATH=.. jupyter notebook
# Hack: generate marshmallow schema from flaskrest serializers
# used to make assoc_schema.py
mm:
./bin/flask2marshmallow.pl ../biolink-api/biolink/datamodel/serializers.py