File: rules

package info (click to toggle)
python-daphne 4.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: python: 2,593; makefile: 28
file content (27 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

#export PYBUILD_NAME=daphne
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1

ifneq ($(PYBUILD_AUTOPKGTEST),1)
# This test only passes when the package is installed.
export PYBUILD_TEST_ARGS := --deselect tests/test_packaging.py::test_fd_endpoint_plugin_installed
endif

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

override_dh_auto_install:
	dh_auto_install
	rm -rf debian/tmp/usr/lib/python3*/dist-packages/.hypothesis

override_dh_installman:
	docbook-to-man debian/manpage.daphne.sgml > daphne.1
	dh_installman

override_dh_clean:
	rm -rf .hypothesis
	dh_clean