#!/usr/bin/make -f

UPSTREAM_GIT ?= https://salsa.debian.org/openstack-team/third-party/ohr
include /usr/share/openstack-pkg-tools/pkgos.make

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

override_dh_auto_build:
	dh_auto_build
	rst2man docs/ohr.1.rst debian/ohr.1

override_dh_auto_clean:
	rm -f debian/ohr.1
	rm -rf build .pybuild
	dh_auto_clean

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	pkgos-dh_auto_test 'ohr\.tests\.unit.*'
endif

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3
