File: rules

package info (click to toggle)
python-test-server 0.0.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 288 kB
  • sloc: python: 1,413; makefile: 7
file content (13 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/make -f

export PYBUILD_NAME=test-server

# the two identicaly named files confuses pybuild/pytest
export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/tests/ ; cp {dir}/tests/test_server.py {build_dir}/tests/test_server_.py ; cp {dir}/tests/test_httpheaderstorage.py {build_dir}/tests/ ; find {build_dir}
export PYBUILD_TEST_ARGS=tests/test_httpheaderstorage.py tests/test_server_.py

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	rm -f ${CURDIR}/debian/python-test-server/usr/bin/test_server