| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export HOME=/tmp |
| 4 |
export http_proxy=http://127.0.0.1:9/ |
| 5 |
export https_proxy=http://127.0.0.1:9/ |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --buildsystem=pybuild |
| 9 |
|
| 10 |
execute_after_dh_auto_build: |
| 11 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 12 |
# FIXME: a number of documentation items require online ressources, and |
| 13 |
# their build fails on some indentation issue in the mixing of |
| 14 |
# documentation with python3 source code. Until these issues are |
| 15 |
# fixed, the production of sphinx code is disabled. |
| 16 |
#PYTHONPATH=.. $(MAKE) -C doc html |
| 17 |
|
| 18 |
# Remove embedded javascript libraries. |
| 19 |
-rm doc/build/html/_static/jquery.js |
| 20 |
-rm doc/build/html/_static/underscore.js |
| 21 |
-rm doc/build/html/_static/doctools.js |
| 22 |
-rm doc/build/html/_static/language_data.js |
| 23 |
-rm doc/build/html/_static/searchtools.js |
| 24 |
endif |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 28 |
set -e \ |
| 29 |
; for PY in $(shell py3versions -r) \ |
| 30 |
; do echo "I: Running Neo unittests using $$PY" \ |
| 31 |
; NOSETESTS_NO_NETWORK=1 $$PY -m pytest -v neo \ |
| 32 |
; done |
| 33 |
endif |