#!/usr/bin/make -f

export PYBUILD_NAME=hyperorg

# don't test upstream linting
export PYBUILD_TEST_ARGS=--ignore tests/test_lint.py

# test requires git tree
PYBUILD_TEST_ARGS += --deselect tests/test_hyperorg.py::TestHyperorg::test_git_repository_info

PYTHON3_VERSIONS = $(shell py3versions -d)

%:
	dh $@ --buildsystem=pybuild

override_dh_installman:
	PYTHONPATH=debian/hyperorg/usr/lib/$(PYTHON3_VERSIONS)/dist-packages/ help2man -n hyperorg -s 1 -N debian/hyperorg/usr/bin/hyperorg -o debian/hyperorg.1
	dh_installman debian/hyperorg.1
