#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export OSLO_PACKAGE_VERSION=$(DEB_VERSION_UPSTREAM)
export PYBUILD_NAME = tenacity

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

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/debian/CHANGELOG

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