File: rules

package info (click to toggle)
python-mock 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 564 kB
  • ctags: 1,123
  • sloc: python: 5,677; sh: 37; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 554 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/')
export PYBUILD_NAME=mock

%:
	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. sphinx-build -b html -N docs/ debian/python-mock-doc/usr/share/doc/python-mock-doc/html
	dh_sphinxdoc
endif

override_dh_compress:
	dh_compress -X.js -X.html -X.txt