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
|
#!/usr/bin/make -f
export HOME=/tmp
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
# FIXME: a number of documentation items require online ressources, and
# their build fails on some indentation issue in the mixing of
# documentation with python3 source code. Until these issues are
# fixed, the production of sphinx code is disabled.
#PYTHONPATH=.. $(MAKE) -C doc html
# Remove embedded javascript libraries.
-rm doc/build/html/_static/jquery.js
-rm doc/build/html/_static/underscore.js
-rm doc/build/html/_static/doctools.js
-rm doc/build/html/_static/language_data.js
-rm doc/build/html/_static/searchtools.js
endif
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
set -e \
; for PY in $(shell py3versions -r) \
; do echo "I: Running Neo unittests using $$PY" \
; NOSETESTS_NO_NETWORK=1 $$PY -m pytest -v neo \
; done
endif
|