| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAMEscip-makefile . . . PYBUILD_NAME.=trio |
| 4 | export PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS.=-m "not redistributors_should_skip" -p trio._tests.pytest_plugin --skip-optional-imports |
| 5 | ifeq ($(PYBUILD_AUTOPKGTEST),1) |
| 6 | PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS. += /usr/lib/python3/dist-packages/trio |
| 7 | else |
| 8 | PYBUILD_TEST_ARGSscip-makefile . . . PYBUILD_TEST_ARGS. += -k "not test_SocketType_resolve and not test_getprotobyname" |
| 9 | endif |
| 10 | |
| 11 | %scip-makefile . . . `%`/: |
| 12 | dh $@scip-makefile . . . `@`. --buildsystem=pybuild |
| 13 | |
| 14 | execute_before_dh_sphinxdocscip-makefile . . . execute_before_dh_sphinxdoc/: |
| 15 | ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 16 | PYTHONPATH=$(CURDIRscip-makefile . . . CURDIR.)/src python3 -m sphinx -b html -d $(CURDIRscip-makefile . . . CURDIR.)/docs/.build/.doctrees -N $(CURDIRscip-makefile . . . CURDIR.)/docs/source $(CURDIRscip-makefile . . . CURDIR.)/debian/python-trio-doc/usr/share/doc/python-trio-doc/html |
| 17 | endif |
| 18 | |
| 19 | execute_after_dh_cleanscip-makefile . . . execute_after_dh_clean/: |
| 20 | rm -rf $(CURDIRscip-makefile . . . CURDIR.)/docs/.build |