File: rules

package info (click to toggle)
python-aioinflux 0.9.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 320 kB
  • sloc: python: 1,402; makefile: 41
file content (14 lines) | stat: -rwxr-xr-x 595 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

TEMPDIR := $(shell mktemp -d)
export PYBUILD_BEFORE_TEST=mkdir -p $(TEMPDIR) ; \
	sed "s%@TEMPDIR@%$(TEMPDIR)%" debian/test.conf.in > $(TEMPDIR)/influxdb.conf ; \
	start-stop-daemon --start --background --pidfile $(TEMPDIR)/influxdb.pid --exec /usr/bin/influxd -- -config $(TEMPDIR)/influxdb.conf -pidfile $(TEMPDIR)/influxdb.pid
export PYBUILD_TEST_ARGS=--ignore=tests/test_dataframe.py
export PYBUILD_AFTER_TEST=start-stop-daemon --stop --pidfile $(TEMPDIR)/influxdb.pid ; \
	rm -r $(TEMPDIR)

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