1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
UPSTREAM_GIT := https://github.com/tzangms/django-bootstrap-form.git
DH_VERBOSE = 1
export PYBUILD_NAME = django-bootstrapform
PYBUILD_TEST_ARGS = "{interpreter} runtests.py"
%:
dh $@ --buildsystem=pybuild --with python3,sphinxdoc
override_dh_sphinxdoc:
PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' sphinx-build -b html docs \
debian/python-django-bootstrapform-doc/usr/share/doc/python-django-bootstrapform-doc/html
dh_sphinxdoc -O--buildsystem=pybuild
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="env PYTHONPATH={build_dir} DJANGO_SETTINGS_MODULE=tests.test_settings {interpreter} -m unittest bootstrapform/tests.py" \
dh_auto_test
|