From 8c2a4cc3178c952013bd0bb306b1712bfd816d1b Mon Sep 17 00:00:00 2001 From: mcho421 Date: Sat, 31 Oct 2015 12:17:00 +1100 Subject: [PATCH] Fix gevent requirement for Python 3 --- {{cookiecutter.repo_name}}/requirements/local.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/requirements/local.txt b/{{cookiecutter.repo_name}}/requirements/local.txt index ea6663f8..c97d5481 100644 --- a/{{cookiecutter.repo_name}}/requirements/local.txt +++ b/{{cookiecutter.repo_name}}/requirements/local.txt @@ -14,8 +14,13 @@ django-debug-toolbar==1.4 ipdb==0.8.1 {% if cookiecutter.use_maildump == "y" -%} -# Required by maildump. Need to pin dependency to gevent beta to be Python 3-compatible. +# Required by maildump. +{% if cookiecutter.use_python2 == 'n' -%} +# Need to pin dependency to gevent beta to be Python 3-compatible. +gevent==1.1b6 +{% else -%} gevent==1.0.2 +{% endif -%} # Enables better email testing maildump==0.5.1 {%- endif %}