| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
|
| 4 |
export PYBUILD_NAME=bidict |
| 5 |
export PYBUILD_AFTER_TEST=rm -rf .pytest_cache |
| 6 |
export PYBUILD_TEST_ARGS=--benchmark-disable |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_sphinxdoc: |
| 12 |
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) |
| 13 |
python3 -m sphinx -b html docs \ |
| 14 |
$(CURDIR)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html |
| 15 |
dh_sphinxdoc |
| 16 |
rm -f $(CURDIR)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html/_static/custom.js |
| 17 |
endif |
| 18 |
|
| 19 |
execute_after_dh_auto_test: |
| 20 |
find .pybuild -type d -name .pytest_cache -print0 | xargs -0r rm -rfv |