forked from PacificBiosciences/kineticsTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (45 loc) · 1.53 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
SHELL = /bin/bash -e
utest:
PYTHONPATH=.:${PYTHONPATH} py.test -s -v test/test_internal.py
all: build install
build:
python setup.py build --executable="/usr/bin/env python"
bdist:
python setup.py build --executable="/usr/bin/env python"
python setup.py bdist --formats=egg
install:
python setup.py install
develop:
python setup.py develop
clean:
rm -rf build/;\
find . -name "*.egg-info" | xargs rm -rf;\
find . -name "*.pyc" | xargs rm -rf;\
rm -rf dist/
test: tests
check: tests
tests: cram-tests py-tests extra-tests
cram-tests:
cram --xunit-file=cramtests.xml test/cram/*.t
long-tests:
cram test/cram/long_running/*.t
py-tests:
# pytest --cov=kineticsTools # does not quite work since we run in test/ dir.
cd test/; pytest -s -v -p no:warnings -n auto --dist=loadscope --durations=20 --junitxml=../nosetests.xml --cov-report=xml:../coverage.xml test_*.py
extra-tests:
#cram --xunit-file=cramtests-extra.xml test/cram/extra/*.t
# TODO: Fix chemistry and re-enable this test.
pylint:
pylint --errors-only --extension-pkg-whitelist=numpy,scipy --ignored-modules=numpy,scipy --ignored-classes=numpy,scipy kineticsTools
pip-install:
@which pip > /dev/null
@pip freeze|grep 'kineticsTools=='>/dev/null \
&& ( pip uninstall -y kineticsTools \
|| pip uninstall -y pbtools.kineticsTools ) \
|| true
@pip install --no-index \
--install-option="--install-data=$(DATA)" \
--install-option="--install-scripts=$(PREFIX)/bin" \
./
.PHONY: tests test clean cram-tests unit-tests
.PHONY: clean