| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=watchdog |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild |
| 7 |
|
| 8 |
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) |
| 9 |
override_dh_sphinxdoc: |
| 10 |
python3 -m sphinx -b man docs/source docs/build/man |
| 11 |
sed -i 's/.TH "WATCHDOG" "1"/.TH "WATCHDOG" "3"/g' docs/build/man/watchdog.1 |
| 12 |
cp -f docs/build/man/watchdog.1 docs/build/man/watchdog3.1 |
| 13 |
PYTHONPATH=. python3 -m sphinx -b html docs/source $(CURDIR)/debian/python-watchdog-doc/usr/share/doc/python-watchdog-doc/html |
| 14 |
dh_sphinxdoc -O--buildsystem=pybuild |
| 15 |
endif |
| 16 |
|
| 17 |
execute_after_dh_clean: |
| 18 |
rm -rf docs/build .pytest_cache .coverage .pybuild |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
# One test opens a lot of files |
| 22 |
ulimit -n 2100 && dh_auto_test -O--buildsystem=pybuild -- --test-pytest --test-args '-k "not test_unmount_watched_directory_filesystem"' |