From 1a743b883f3174d520889a52d3f4df8be7c226dc Mon Sep 17 00:00:00 2001 From: rbas Date: Wed, 9 Jul 2014 12:39:15 +0200 Subject: [PATCH] Specify version for django-bootstrap-form --- requirements.txt | 2 +- setup.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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(), )