File: rules

package info (click to toggle)
bidict 0.23.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,148 kB
  • sloc: python: 1,603; makefile: 157; sh: 114; javascript: 25; xml: 9
file content (20 lines) | stat: -rwxr-xr-x 612 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PYBUILD_NAME=bidict
export PYBUILD_AFTER_TEST=rm -rf .pytest_cache
export PYBUILD_TEST_ARGS=--benchmark-disable

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	python3 -m sphinx -b html docs \
		$(CURDIR)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html
	dh_sphinxdoc
	rm -f $(CURDIR)/debian/python-bidict-doc/usr/share/doc/python-bidict-doc/html/_static/custom.js
endif

execute_after_dh_auto_test:
	find .pybuild -type d -name .pytest_cache -print0 | xargs -0r rm -rfv