File: rules

package info (click to toggle)
python-pytest-benchmark 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,072 kB
  • sloc: python: 5,232; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_NAME = pytest-benchmark
export PYBUILD_TEST_ARGS = -k "not test_help"

MODULE_DIR = debian/python3-pytest-benchmark
APP_DIR = debian/pytest-benchmark

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	mkdir -p $(APP_DIR)/usr/bin
	mv $(MODULE_DIR)/usr/bin/pytest-benchmark $(APP_DIR)/usr/bin
	rm $(MODULE_DIR)/usr/bin/py.test-benchmark
	# FIXME: why are test leftovers installed by pybuild?
	rm -rf $(MODULE_DIR)/usr/lib/python3*/*-packages/docs \
	       $(MODULE_DIR)/usr/lib/python3*/*-packages/*.svg