From dc6ff160356eecc721166ddbe4c4560938b954a7 Mon Sep 17 00:00:00 2001 From: Thomas Ilsche Date: Thu, 1 Jun 2023 13:34:26 +0200 Subject: [PATCH] fix: remove click_completion Shell completion is now supported by click itself and the extra package is dead. https://github.com/click-contrib/click-completion/issues/37 https://github.com/click-contrib/click-completion/issues/41 It is still not trivial to use because it needs to be enabled for the shell. And maybe is and always was impossible for these example .py files because they are not real commands anyway. https://click.palletsprojects.com/en/8.1.x/shell-completion/ --- metricq_source_sysinfo/main.py | 2 -- setup.py | 1 - 2 files changed, 3 deletions(-) diff --git a/metricq_source_sysinfo/main.py b/metricq_source_sysinfo/main.py index 6bb9259..9daf57a 100644 --- a/metricq_source_sysinfo/main.py +++ b/metricq_source_sysinfo/main.py @@ -16,8 +16,6 @@ fmt="%(asctime)s [%(levelname)-8s] [%(name)-20s] %(message)s" ) -click_completion.init() - @click.command() @click.argument("management-url", default="amqp://localhost/") diff --git a/setup.py b/setup.py index 8aa119b..0acb8b4 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,6 @@ """, install_requires=[ "click", - "click-completion", "click_log", "metricq ~= 4.2", "psutil",