1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  
     | 
    
      #!/usr/bin/make -f
export DH_VERBOSE = 1
export PYBUILD_NAME = mechanize
#export PYBUILD_DISABLE=test
%:
	dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build: export http_proxy=
override_dh_auto_build: export https_proxy=
override_dh_auto_build: export no_proxy=
override_dh_auto_build:
	dh_auto_build
override_dh_auto_test-indep:
	# several points here:
	# - pybuild sets proxy server which breaks locally started server, disable it
	# - we need to explicitly change to the build dir, otherwise the test
	#   uses the main files
	# Thanks to Dmitry Shachnev for finding all that!
	http_proxy= no_proxy= dh_auto_test -- --system custom --test-args "cd {build_dir}; {interpreter} run_tests.py"
 
     |