"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "setup.py" between
fail2ban-0.10.5.tar.gz and fail2ban-0.11.1.tar.gz

About:

setup.py  (fail2ban-0.10.5):setup.py  (fail2ban-0.11.1)
skipping to change at line 120 skipping to change at line 120
fn.write(ln) fn.write(ln)
finally: finally:
if fn: fn.close() if fn: fn.close()
if dry_run: if dry_run:
print(' `') print(' `')
# Wrapper to specify fail2ban own options: # Wrapper to specify fail2ban own options:
class install_command_f2b(install): class install_command_f2b(install):
user_options = install.user_options + [ user_options = install.user_options + [
('disable-2to3', None, 'Specify to deactivate 2to3, e.g. if the i nstall runs from fail2ban test-cases.'), ('disable-2to3', None, 'Specify to deactivate 2to3, e.g. if the i nstall runs from fail2ban test-cases.'),
('without-tests', None, 'without tests files installation'),
] ]
def initialize_options(self): def initialize_options(self):
self.disable_2to3 = None self.disable_2to3 = None
self.without_tests = None
install.initialize_options(self) install.initialize_options(self)
def finalize_options(self): def finalize_options(self):
global _2to3 global _2to3
## in the test cases 2to3 should be already done (fail2ban-2to3): ## in the test cases 2to3 should be already done (fail2ban-2to3):
if self.disable_2to3: if self.disable_2to3:
_2to3 = False _2to3 = False
if _2to3: if _2to3:
cmdclass = self.distribution.cmdclass cmdclass = self.distribution.cmdclass
cmdclass['build_py'] = build_py_2to3 cmdclass['build_py'] = build_py_2to3
cmdclass['build_scripts'] = build_scripts_2to3 cmdclass['build_scripts'] = build_scripts_2to3
if not self.without_tests:
self.distribution.scripts += [
'bin/fail2ban-testcases',
]
self.distribution.packages += [
'fail2ban.tests',
'fail2ban.tests.action_d',
]
self.distribution.package_data = {
'fail2ban.tests':
[ join(w[0], f).replace("fail2ban/tests/"
, "", 1)
for w in os.walk('fail2ban/tests/
files')
for f in w[2]] +
[ join(w[0], f).replace("fail2ban/tests/"
, "", 1)
for w in os.walk('fail2ban/tests/
config')
for f in w[2]] +
[ join(w[0], f).replace("fail2ban/tests/"
, "", 1)
for w in os.walk('fail2ban/tests/
action_d')
for f in w[2]]
}
install.finalize_options(self) install.finalize_options(self)
def run(self): def run(self):
install.run(self) install.run(self)
# Update fail2ban-python env to current python version (where f2b-modules locate d/installed) # Update fail2ban-python env to current python version (where f2b-modules locate d/installed)
updatePyExec(os.path.join(source_dir, 'bin')) updatePyExec(os.path.join(source_dir, 'bin'))
if setuptools and "test" in sys.argv: if setuptools and "test" in sys.argv:
import logging import logging
logSys = logging.getLogger("fail2ban") logSys = logging.getLogger("fail2ban")
skipping to change at line 215 skipping to change at line 239
license = "GPL", license = "GPL",
platforms = "Posix", platforms = "Posix",
cmdclass = { cmdclass = {
'build_py': build_py, 'build_scripts': build_scripts, 'build_py': build_py, 'build_scripts': build_scripts,
'install_scripts': install_scripts_f2b, 'install': install_comman d_f2b 'install_scripts': install_scripts_f2b, 'install': install_comman d_f2b
}, },
scripts = [ scripts = [
'bin/fail2ban-client', 'bin/fail2ban-client',
'bin/fail2ban-server', 'bin/fail2ban-server',
'bin/fail2ban-regex', 'bin/fail2ban-regex',
'bin/fail2ban-testcases',
# 'bin/fail2ban-python', -- link (binary), will be installed via install_scripts_f2b wrapper # 'bin/fail2ban-python', -- link (binary), will be installed via install_scripts_f2b wrapper
], ],
packages = [ packages = [
'fail2ban', 'fail2ban',
'fail2ban.client', 'fail2ban.client',
'fail2ban.server', 'fail2ban.server',
'fail2ban.tests',
'fail2ban.tests.action_d',
], ],
package_data = {
'fail2ban.tests':
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
for w in os.walk('fail2ban/tests/files')
for f in w[2]] +
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
for w in os.walk('fail2ban/tests/config')
for f in w[2]] +
[ join(w[0], f).replace("fail2ban/tests/", "", 1)
for w in os.walk('fail2ban/tests/action_d')
for f in w[2]]
},
data_files = [ data_files = [
('/etc/fail2ban', ('/etc/fail2ban',
glob("config/*.conf") glob("config/*.conf")
), ),
('/etc/fail2ban/filter.d', ('/etc/fail2ban/filter.d',
glob("config/filter.d/*.conf") glob("config/filter.d/*.conf")
), ),
('/etc/fail2ban/filter.d/ignorecommands', ('/etc/fail2ban/filter.d/ignorecommands',
[p for p in glob("config/filter.d/ignorecommands/*") if i sfile(p)] [p for p in glob("config/filter.d/ignorecommands/*") if i sfile(p)]
), ),
 End of changes. 6 change blocks. 
15 lines changed or deleted 30 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)