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 28 29 30 31 32 33 34
|
#!/usr/bin/make -f
MANPAGES = $(patsubst %.pod,%.1, $(wildcard debian/manpages/*.pod))
export PYBUILD_NAME = gunicorn
export PYBUILD_TEST_PYTEST = 1
# https://bugs.debian.org/1078714
export PYBUILD_TEST_ARGS = -k 'not test_geventlet'
%:
dh $@ --with=python3 --buildsystem=pybuild
%.1: %.pod
pod2man $< $@
override_dh_auto_build: $(MANPAGES)
dh_auto_build
override_dh_auto_test:
# Tests require internet access.
override_dh_auto_install:
dh_auto_install
# Shuffle scripts into the correct binary package.
mkdir -p debian/gunicorn/usr/bin
mv debian/python3-gunicorn/usr/bin/gunicorn* debian/gunicorn/usr/bin
override_dh_installexamples:
dh_installexamples
find \
debian/gunicorn-examples/usr/share/doc/gunicorn-examples/examples \
-type f \
-executable \
-print0 | xargs -0r chmod -x
|