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