From 774c9ce4fdb153041144a4684fcaad8b0e53d0d2 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Tue, 16 Jul 2013 23:37:44 +0100 Subject: [PATCH] BF: setup.py build now includes sample log files for tests --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4462183d4..71a38fe90 100755 --- a/setup.py +++ b/setup.py @@ -38,6 +38,7 @@ except ImportError: # python 2.x from distutils.command.build_py import build_py from distutils.command.build_scripts import build_scripts +import os from os.path import isfile, join, isdir import sys, warnings from glob import glob @@ -106,8 +107,10 @@ setup( 'fail2ban.tests', ], package_data = { - 'fail2ban.tests': - ['files/*.log', 'files/filter.d/*.conf'], + 'fail2ban.tests': + [ join(w[0], f).replace("fail2ban/tests/", "", 1) + for w in os.walk('fail2ban/tests/files') + for f in w[2]] }, data_files = [ ('/etc/fail2ban',