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