| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | #export DH_VERBOSE = 1 |
| 5 | |
| 6 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=jwt |
| 7 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=-k 'not test_get_jwt_set_sslcontext_default and not test_get_jwt_set_sslcontext_no_ca' |
| 8 | export PYTHONWARNINGSscip-makefile . . . PYTHONWARNINGS.=d |
| 9 | |
| 10 | %scip-makefile . . . `%`/: |
| 11 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 12 | |
| 13 | execute_before_dh_cleanscip-makefile . . . execute_before_dh_clean/: |
| 14 | rm -rf .mypy_cache .pytest_cache |
| 15 | |
| 16 | execute_before_dh_auto_installscip-makefile . . . execute_before_dh_auto_install/: |
| 17 | find .pybuild -type f -name .coverage -delete |
| 18 | |
| 19 | override_dh_sphinxdocscip-makefile . . . override_dh_sphinxdoc/: |
| 20 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 21 | PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "$(PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.)*dist-info" | head -n1)` \ |
| 22 | python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIRscip-makefile . . . CURDIR.)/debian/python-$(PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.)-doc/usr/share/doc/python-$(PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.)-doc/html |
| 23 | dh_sphinxdoc |
| 24 | endif |
| 25 | |
| 26 | override_dh_compressscip-makefile . . . override_dh_compress/: |
| 27 | dh_compress -X changelog.html |