| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- mode: makefile; coding: utf-8 -*- |
| 3 |
|
| 4 |
include /usr/share/dpkg/pkg-info.mk |
| 5 |
|
| 6 |
export UPSTREAM_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -E 's,[+]ds(fg)?$$,,g') |
| 7 |
|
| 8 |
# The wheel ships tests/, but without tests/report.html. Get things into a |
| 9 |
# state that's actually useful for running tests. |
| 10 |
export PYBUILD_BEFORE_TEST := rm -rf {build_dir}/tests && cp -a {dir}/tests {build_dir}/tests |
| 11 |
export PYBUILD_AFTER_TEST := rm -rf {build_dir}/tests |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --buildsystem=pybuild |