Priority: optional
Maintainer: Andrea Righi <andrea.righi@canonical.com>
Standards-Version: 4.5.1
-Build-Depends: debhelper (>= 11), dh-python, python3, python3-setuptools
+Build-Depends: debhelper (>= 11), dh-python, python3, python3-setuptools, python3-argcomplete
Homepage: https://git.launchpad.net/~arighi/+git/annotations-tools
Vcs-Git: https://git.launchpad.net/~arighi/+git/annotations-tools
#!/usr/bin/make -f
+annotations-prompt:
+ register-python-argcomplete annotations > $@
+
%:
dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install: annotations-prompt
+ dh_install
+ mkdir -p $(CURDIR)/debian/annotations/etc/bash_completion.d
+ install -m 0644 annotations-prompt $(CURDIR)/debian/annotations/etc/bash_completion.d/annotations-prompt
import argparse
import json
from signal import signal, SIGPIPE, SIG_DFL
+from argcomplete import autocomplete
from kconfig.annotations import Annotation, KConfig
signal(SIGPIPE, SIG_DFL)
# Main annotations program
+ autocomplete(_ARGPARSER)
args = _ARGPARSER.parse_args()
autodetect_annotations(args)
--- /dev/null
+argcomplete
'README.rst'), 'r').read(),
long_description_content_type="text/x-rts",
packages=['kconfig'],
+ install_requires=['argcomplete'],
entry_points = {
'console_scripts': [
'annotations = kconfig.run:main',