Skip to content

Commit

Permalink
cope with the new jinja and markupsafe releases
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed May 20, 2013
1 parent 14090b0 commit 21c1252
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions setup.py
Expand Up @@ -16,7 +16,6 @@
test_requirements = ['coverage',
'nose',
'zope.sqlalchemy >= 0.4',
'jinja2',
'repoze.who',
'repoze.who.plugins.sa >= 1.0.1',
'Genshi >= 0.5.1',
Expand All @@ -27,6 +26,13 @@
'sqlalchemy'
]

if py_version == (3, 2):
#jinja2 2.7 is incompatible with Python 3.2
test_requirements.append('jinja2 < 2.7')
else:
test_requirements.append('jinja2')


if py_version[0] == 2:
test_requirements.extend(['TurboKid >= 1.0.4',
'Kajiki >= 0.2.2',
Expand All @@ -44,10 +50,15 @@
'Beaker',
'decorator',
'PasteDeploy',
'MarkupSafe',
'repoze.lru'
]

if py_version == (3, 2):
#markupsafe 0.16 is incompatible with Python 3.2
install_requires.append('MarkupSafe < 0.16')
else:
install_requires.append('MarkupSafe')

setup(
name='TurboGears2',
version=version,
Expand Down

0 comments on commit 21c1252

Please sign in to comment.