| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=urllib3 |
| 4 | export PYTHONWARNINGSscip-makefile . . . PYTHONWARNINGS.=d |
| 5 | # Use patched hypercorn; see https://github.com/urllib3/urllib3/issues/3334 |
| 6 | export PYTHONPATHscip-makefile . . . PYTHONPATH.=$(CURDIRscip-makefile . . . CURDIR.)/debian/vendor |
| 7 | export PYBUILD_TEST_PYTESTscip-makefile . . . PYBUILD_TEST_PYTEST.=1 |
| 8 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=-k "not requires_network and not test_recent_date" |
| 9 | export LC_ALLscip-makefile . . . LC_ALL.=C.UTF-8 |
| 10 | export CIscip-makefile . . . CI.=1 # Use longer timeouts, see https://github.com/urllib3/urllib3/issues/3164 |
| 11 | # pybuild exports http_proxy=http://127.0.0.1:9/ by default, but that breaks |
| 12 | # some tests here and the package doesn't seem to try to connect to the |
| 13 | # internet without it. |
| 14 | export http_proxyscip-makefile . . . http_proxy.= |
| 15 | |
| 16 | %scip-makefile . . . `%`/: |
| 17 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 18 | |
| 19 | override_dh_cleanscip-makefile . . . override_dh_clean/: |
| 20 | dh_clean |
| 21 | find . -type d -name .pytest_cache -exec rm -rf {} + |
| 22 | |
| 23 | override_dh_auto_testscip-makefile . . . override_dh_auto_test/: |
| 24 | PYTHONPATH=$(CURDIRscip-makefile . . . CURDIR.)/debian/vendor dh_auto_test |
| 25 | |
| 26 | override_dh_installchangelogsscip-makefile . . . override_dh_installchangelogs/: |
| 27 | dh_installchangelogs CHANGES.rst |