1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
include /usr/share/dpkg/pkg-info.mk
export PYBUILD_NAME=django-graphiql-debug-toolbar
export PYBUILD_SYSTEM=pyproject
export PYBUILD_AFTER_INSTALL=rm -r {destdir}/usr/lib/python3*/dist-packages/LICENSE \
{destdir}/usr/lib/python3*/dist-packages/README.md
%:
dh $@ --with=python3 --buildsystem=pybuild
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="PYTHONPATH=. DJANGO_SETTINGS_MODULE=tests.settings django-admin test -v2 tests" \
dh_auto_test
endif
|