completion: removing argcomplete support

this feature doesn't seem to be working anyway. This can be revisited in the
future but this allows us to drop the python3-argcomplete dependency for now

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin 2020-04-14 16:50:04 +02:00
parent 9ddfbfff85
commit 62d960cc1b
7 changed files with 3 additions and 16 deletions

View File

@ -50,7 +50,7 @@ You might need to manually download dependencies. Mandatory dependencies:
.. code-block:: console .. code-block:: console
$ apt-get install build-essential devscripts dh-systemd fakeroot python-all python-docutils iproute2 python-ipaddr python-argcomplete python-setuptools $ apt-get install build-essential devscripts dh-systemd fakeroot python-all python-docutils iproute2 python-ipaddr python-setuptools
Suggested dependencies: Suggested dependencies:

2
debian/control vendored
View File

@ -17,7 +17,7 @@ Architecture: all
Provides: ifupdown Provides: ifupdown
Conflicts: ifupdown Conflicts: ifupdown
Replaces: ifupdown Replaces: ifupdown
Depends: ${python3:Depends}, ${misc:Depends}, iproute2, python3-argcomplete Depends: ${python3:Depends}, ${misc:Depends}, iproute2
Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako Suggests: isc-dhcp-client, bridge-utils, ethtool, python3-gvgen, python3-mako
Description: Network Interface Management tool similar to ifupdown Description: Network Interface Management tool similar to ifupdown
ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides ifupdown2 is ifupdown re-written in Python. It replaces ifupdown and provides

View File

@ -1 +0,0 @@
ifupdown2/completion/ifup

View File

@ -6,7 +6,7 @@ Prerequisites
* python-ifupdown2 is currently only tested on debian wheezy * python-ifupdown2 is currently only tested on debian wheezy
* python-ifupdown2 needs python version 2.6 or greater * python-ifupdown2 needs python version 2.6 or greater
* Depends on: python-stdeb (for deb builds), python-docutils * Depends on: python-stdeb (for deb builds), python-docutils
(for rst2man), python-argcomplete, 'python-ipaddr' (for rst2man), 'python-ipaddr'
* Depends on python-gvgen package for printing interface graphs (this will be made optional in the future) * Depends on python-gvgen package for printing interface graphs (this will be made optional in the future)
* Optional dependency for template engine: python-mako * Optional dependency for template engine: python-mako

View File

@ -1,9 +0,0 @@
_python_argcomplete() {
local IFS=' '
COMPREPLY=( $(IFS="$IFS" COMP_LINE="$COMP_LINE" COMP_POINT="$COMP_POINT" _ARGCOMPLETE_COMP_WORDBREAKS="$COMP_WORDBREAKS" _ARGCOMPLETE=1 "$1" 8>&1 9>&2 1>/dev/null 2>/dev/null) )
if [[ $? != 0 ]]; then
unset COMPREPLY
fi
}
complete -F _python_argcomplete ifup ifdown ifquery ifreload

View File

@ -8,7 +8,6 @@
import sys import sys
import argparse import argparse
import argcomplete
try: try:
from ifupdown2.ifupdown.utils import utils from ifupdown2.ifupdown.utils import utils
@ -77,7 +76,6 @@ class Parse:
elif self.op == 'query': elif self.op == 'query':
self.update_ifquery_argparser(argparser) self.update_ifquery_argparser(argparser)
self.update_common_argparser(argparser) self.update_common_argparser(argparser)
argcomplete.autocomplete(argparser)
try: try:
self.args = argparser.parse_args(self.argv) self.args = argparser.parse_args(self.argv)

View File

@ -7,7 +7,6 @@ from setuptools import setup
from setuptools import find_packages from setuptools import find_packages
INSTALL_REQUIRES = [ INSTALL_REQUIRES = [
'argcomplete',
] ]
DATA_FILES = [ DATA_FILES = [