fix setup.py

This commit is contained in:
ziirish 2014-10-31 16:46:15 +01:00
parent 86da13e861
commit c791f32449

View file

@ -11,11 +11,11 @@ from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'burpui', '__init__.py')) as f:
data = f.read()
name = re.search("__title__ = '(.*)'", data).group(1)
author = re.search("__author__ = '(.*)'", data).group(1)
author_email = re.search("__author_email__ = '(.*)'", data).group(1)
description = re.search("__description__ = '(.*)'", data).group(1)
url = re.search("__url__ = '(.*)'", data).group(1)
name = re.search("__title__ *= *'(.*)'", data).group(1)
author = re.search("__author__ *= *'(.*)'", data).group(1)
author_email = re.search("__author_email__ *= *'(.*)'", data).group(1)
description = re.search("__description__ *= *'(.*)'", data).group(1)
url = re.search("__url__ *= *'(.*)'", data).group(1)
with open('requirements.txt', 'r') as f:
requires = [x.strip() for x in f if x.strip()]