Permalink
Browse files

some libraries need to be pinned for Python 2.5 support

  • Loading branch information...
1 parent 8401dcd commit d56035510f7a63793a82b966b8c8c273b379c7a1 @cjw296 cjw296 committed Jul 1, 2012
Showing with 16 additions and 3 deletions.
  1. +7 −2 setup.py
  2. +9 −1 tox.ini
View
@@ -1,7 +1,7 @@
# Copyright (c) 2008-2012 Simplistix Ltd
# See license.txt for license details.
-import os
+import os, sys
from ConfigParser import RawConfigParser
from setuptools import setup, find_packages
@@ -20,7 +20,12 @@
test_requires.extend([
'zope.component',
])
-
+# If we're on Python 2.5, we need to pin some libraries
+if sys.version_info[:2] < (2, 6):
+ # BBB Python 2.5 compat
+ test_requires.append('zope.interface>=3.6.0,<4.0dev')
+ test_requires.append('manuel<1.6')
+
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
View
@@ -13,6 +13,13 @@ changedir=.tox
[testenv:2.5-not]
basepython=python2.5
+deps=
+ nose
+ nose_fixes
+ nose-cov
+ mock
+ manuel<1.6
+ zope.interface>=3.6.0,<4.0dev
[testenv:2.5-zc]
basepython=python2.5
@@ -21,8 +28,9 @@ deps =
nose_fixes
nose-cov
mock==dev
- manuel
+ manuel<1.6
zope.component
+ zope.interface>=3.6.0,<4.0dev
[testenv:2.6-not]
basepython=python2.6

0 comments on commit d560355

Please sign in to comment.