File: rules

package info (click to toggle)
python-djangosaml2 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 676 kB
  • sloc: python: 2,889; xml: 327; makefile: 18; sh: 9
file content (16 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=django-saml2
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}/; mv {build_dir}/tests/testprofiles {build_dir}/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests {build_dir}/testprofiles

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="python{version} tests/run_tests.py" dh_auto_test
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="cd {build_dir}; DJANGO_SETTINGS_MODULE=tests.settings {interpreter} -m django test djangosaml2.tests testprofiles"