File: rules

package info (click to toggle)
python-aioinflux 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 304 kB
  • sloc: python: 1,401; makefile: 42
file content (14 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/make -f

export PYBUILD_NAME=aioinflux
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	$(eval $@TEMPDIR := $(shell mktemp -d))
	sed "s%@TEMPDIR@%$($@TEMPDIR)%" debian/test.conf.in > $($@TEMPDIR)/influxdb.conf
	influxd -config $($@TEMPDIR)/influxdb.conf & echo $$! > $($@TEMPDIR)/influxdb.pid
	sleep 5
	dh_auto_test
	pkill -F $($@TEMPDIR)/influxdb.pid
	rm -r $($@TEMPDIR)