diff --git a/requirements.txt b/requirements.txt index 7fa8619b..8a763d32 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Django>1.4 -django-bootstrap-form +django-bootstrap-form>=3.1,<4 email-reply-parser django-markdown-deux diff --git a/setup.py b/setup.py index 582138eb..ec771427 100644 --- a/setup.py +++ b/setup.py @@ -96,6 +96,14 @@ def find_package_data( return out +def get_requirements(): + with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f: + requirements_list = [req.strip() for req in f.readlines()] + + requirements_list.append("setuptools") + requirements_list.append("pytz") + return requirements_list + LONG_DESCRIPTION = """ =============== @@ -133,6 +141,6 @@ setup( package_data=find_package_data("helpdesk", only_in_packages=False), include_package_data=True, zip_safe=False, - install_requires=['setuptools', 'pytz', 'django-markdown-deux', 'django-bootstrap-form', 'email-reply-parser', 'django'], + install_requires=get_requirements(), )