File: rules

package info (click to toggle)
jsonpickle 0.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 492 kB
  • ctags: 779
  • sloc: python: 3,808; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 669 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
20
21
#!/usr/bin/make -f
#DH_VERBOSE = 1
export PYBUILD_DESTDIR_python2=debian/python-jsonpickle
export PYBUILD_DESTDIR_python3=debian/python3-jsonpickle

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

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} {interpreter} tests/runtests.py" dh_auto_test

override_dh_installchangelogs:
	dh_installchangelogs -i docs/source/changelog.rst

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	sphinx-build -b html docs/source $(CURDIR)/debian/python-jsonpickle-doc/usr/share/doc/python-jsonpickle-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif