File: rules

package info (click to toggle)
python-mechanize 1%3A0.4.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,316 kB
  • sloc: python: 16,656; makefile: 11; sh: 4
file content (23 lines) | stat: -rwxr-xr-x 697 bytes parent folder | download | duplicates (2)
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 $@ --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"