mirror of https://github.com/fail2ban/fail2ban
RF: setup.py now imports version number again
parent
55810a3c30
commit
f07a92f0f7
8
setup.py
8
setup.py
|
@ -75,9 +75,15 @@ if setuptools:
|
||||||
else:
|
else:
|
||||||
setup_extra = {}
|
setup_extra = {}
|
||||||
|
|
||||||
|
# Get version number, avoiding importing fail2ban.
|
||||||
|
# This is due to tests not functioning for python3 as 2to3 takes place later
|
||||||
|
f = open("fail2ban/version.py")
|
||||||
|
exec(f.read())
|
||||||
|
f.close()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "fail2ban",
|
name = "fail2ban",
|
||||||
version = "0.9.0a",
|
version = version,
|
||||||
description = "Ban IPs that make too many password failures",
|
description = "Ban IPs that make too many password failures",
|
||||||
long_description = longdesc,
|
long_description = longdesc,
|
||||||
author = "Cyril Jaquier",
|
author = "Cyril Jaquier",
|
||||||
|
|
Loading…
Reference in New Issue