File: rules

package info (click to toggle)
django-graphiql-debug-toolbar 0.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 196 kB
  • sloc: python: 160; javascript: 30; sh: 30; makefile: 13
file content (21 lines) | stat: -rwxr-xr-x 620 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

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