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 35 36 37
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=argcomplete
export PYBUILD_TEST_CUSTOM=1
export PYBUILD_TEST_ARGS=PATH={home_dir}/scripts:$$PATH \
PYTHONPATH={build_dir} \
{interpreter} {dir}/test/test.py -v
# Avoid failures in unit tests
# See https://github.com/kislyuk/argcomplete/issues/199
unexport LC_ALL
%:
dh $@ --buildsystem=pybuild
include /usr/share/dpkg/pkg-info.mk
generate_manpages:
set -e ; \
for file in \
activate-global-python-argcomplete \
python-argcomplete-check-easy-install-script \
register-python-argcomplete; \
do \
cp -f scripts/$$file debian/pregenerated_manpages/$$file ; \
chmod a+x debian/pregenerated_manpages/$$file ; \
PYTHONPATH=. help2man --version-string="$(DEB_VERSION)" \
--no-info --include=debian/help2man.include \
--name "$$file - argcomplete utility script" \
-o debian/pregenerated_manpages/$$file.1 --no-discard-stderr \
debian/pregenerated_manpages/$$file ; \
rm -f debian/pregenerated_manpages/$$file; \
done ; \
rm -rf argcomplete/__pycache__
|