From f407d68ef37a9da8e2540f5e36259e82d787f161 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sun, 14 Nov 2021 23:51:55 +0100 Subject: [PATCH 1/2] Use `extras` to define extras in `setup.cfg` --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 342f46446..9e740dd84 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,7 @@ classifier = project_urls = Release notes = https://github.com/PyCQA/bandit/releases -[options.extras_require] +[extras] yaml = PyYAML toml = From 5ce994090f9023506a624045eb568886ca47b4cd Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sun, 14 Nov 2021 23:53:13 +0100 Subject: [PATCH 2/2] Go back to using `entry_points` in `setup.cfg` --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 9e740dd84..373211b62 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,7 +33,7 @@ yaml = toml = toml -[options.entry_points] +[entry_points] console_scripts = bandit = bandit.cli.main:main bandit-config-generator = bandit.cli.config_generator:main