Commit d89f664d authored by Benjamin "Ziirish" SANS's avatar Benjamin "Ziirish" SANS
Browse files

add: VERSION file

parent 3a87a56f
......@@ -18,23 +18,13 @@ else:
def u(x):
return x
def get_version():
VERSIONFILE = 'burpui/__init__.py'
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(VSRE, line, re.M)
if mo:
return u(mo.group(1))
raise RuntimeError('Unable to find version string in %s.' % (VERSIONFILE,))
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
setup(
name='burp-ui',
version=get_version(),
version=open('VERSION').read(),
description=u('Burp-UI is a web-ui for burp backup written in python with Flask and jQuery/Bootstrap'),
long_description=open('README.md').read(),
license=open('LICENSE').read(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment