From c9e1a1b087098770bc6e46c0dbe655afa421ae3f Mon Sep 17 00:00:00 2001 From: sebres Date: Sat, 23 Aug 2025 22:18:56 +0200 Subject: [PATCH] silence warning "Unknown distribution option: 'test_suite'", seems not work anymore (2.x only?) - test suite shall be invoked using `bin/fail2ban-testcases` --- setup.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/setup.py b/setup.py index ee9ea4df..b2c0e5c9 100755 --- a/setup.py +++ b/setup.py @@ -157,13 +157,6 @@ too many password failures. It updates firewall rules to reject the IP address or executes user defined commands.''' -if setuptools: - setup_extra = { - 'test_suite': "fail2ban.tests.utils.gatherTests", - } -else: - setup_extra = {} - data_files_extra = [] if os.path.exists('/var/run'): # if we are on the system with /var/run -- we are to use it for having fail2ban/ @@ -249,8 +242,7 @@ setup( ('/var/lib/fail2ban', '' ), - ] + data_files_extra, - **setup_extra + ] + data_files_extra ) # Do some checks after installation