5 TRIAL
:=$(shell which trial
)
6 VERSION
:=$(shell git describe
)
11 sys.stdout.write
(platform.python_implementation
())
14 PYTHON_IMPLEMENTATION
:=$(shell python
-c
'$(PYTHON_WHICH)')
18 all: uninstall clean install coverage-test
24 find bridgedb
/*.py | xargs pep8
27 pylint
--rcfile
=.
/.pylintrc .
/bridgedb
/
33 -python setup.py compile_catalog
34 BRIDGEDB_INSTALL_DEPENDENCIES
=0 python setup.py
install --record installed-files.txt
37 -python setup.py compile_catalog
38 BRIDGEDB_INSTALL_DEPENDENCIES
=0 python setup.py
install --force --record installed-files.txt
41 touch installed-files.txt
42 cat installed-files.txt | xargs
rm -rf
43 rm installed-files.txt
45 reinstall
: uninstall force-install
48 .
/maint
/get-completed-translations
50 translations-template
:
51 python setup.py extract_messages
54 python setup.py build_sphinx
--version
"$(VERSION)"
55 cd build
/sphinx
/html
&& \
56 zip
-r ..
/"$(VERSION)"-docs.zip .
/ && \
57 echo
"Your package documents are in build/sphinx/$(VERSION)-docs.zip"
63 -rm -rf doc
/coverage-html
65 clean: clean-docs clean-coverage-html
68 -rm -rf bridgedb.egg-info
72 ifeq ($(PYTHON_IMPLEMENTATION
),PyPy
)
73 @echo
"Detected PyPy... not running coverage."
76 coverage run
--rcfile
=".coveragerc" -m twisted.trial .
/bridgedb
/test/test_
*.py
77 coverage report
--rcfile
=".coveragerc"
81 coverage html
--rcfile
=".coveragerc"
83 coverage
: coverage-test coverage-html
86 python setup.py bdist_egg upload
--sign
87 #python setup.py bdist_wheel upload --sign
88 python setup.py sdist
--formats
=gztar
,zip upload
--sign
91 find .
/bridgedb
-type f
-name
"*.py" -print | xargs etags