Debian Codegraph @

Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 .PHONY: clean doc doc-clean tests check test install build bdist gh-pages
2
3 build:
4 python setup.py build
5
6 bdist:
7 python setup.py build --executable="/usr/bin/env python"
8 python setup.py bdist --formats=egg
9
10 install:
11 @which pip > /dev/null
12 @pip freeze|grep 'pbcore=='>/dev/null \
13 && pip uninstall -y pbcore \
14 || echo -n ''
15 @pip install ./
16
17 pylint:
18 pylint --errors-only --ignore=pyxb --enable=C0411,W0702,W0401,W0611 pbcore/
19
20 autopep8:
21 find pbcore -name "*.py" | xargs autopep8 -i
22 find tests -name "*.py" | xargs autopep8 -i
23
24 clean: doc-clean
25 rm -rf build/;\
26 find . -name "*.egg-info" | xargs rm -rf;\
27 rm -rf dist/;\
28 find . -name "*.pyc" | xargs rm -f;
29 rm -f nosetests.xml
30
31 doc:
32 sphinx-apidoc -o doc/ pbcore/ && cd doc/ && make html
33 doc-clean:
34 cd doc && rm -rf _templates _static _build searchindex.js objects.inv
35
36 doctest:
37 cd doc && make doctest
38
39 unit-test:
40 pytest
41 sed -i -e 's@filename="@filename="./@g' coverage.xml
42
43 test: doctest unit-test
44
45 tests: test
46 check: test
47
48 GH_PAGES_SOURCES = pbcore doc
49
50 gh-pages:
51 git checkout gh-pages
52 rm -rf _static _sources *.js *.html *.inv
53 git checkout master $(GH_PAGES_SOURCES)
54 cd doc && make html
55 mv -fv doc/_build/html/* .
56 rm -rf $(GH_PAGES_SOURCES)
57 git add --all && git commit -m "Automatic update of gh-pages branch" && git checkout master
58
59 pip-install:
60 @which pip > /dev/null
61 @pip freeze|grep 'pbcore=='>/dev/null \
62 && pip uninstall -y pbcore \
63 || echo -n ''
64 @pip install --no-index ./
65
66
67 publish-to-pypi:
68 @echo "I'm not going to do this for you, but you can do it by:"
69 @echo " % python setup.py sdist upload -r pypi"
70
71
72 xsd-codegen:
73 rm -f pbcore/io/dataset/pyxb/DataSetXsd.py
74 ./bin/updateXSDs.py ../xsd-datamodels/PacBioDatasets.xsd pbcore/io/dataset/pyxb/
75
76 validate-metadata:
77 xmllint --schema ../xsd-datamodels/PacBioCollectionMetadata.xsd pbcore/data/datasets/CollectionMetadata.xml
78
79 wheel:
80 which pip
81 pip wheel --wheel-dir=${WHEELHOUSE} --no-deps .
82 ls -larth ${WHEELHOUSE}