Moving unittest2 into conditional requires

Unittest2 is only needed for py26 and under. As we want to eventually
be able to make OpenCAFE Python 3 compatible, we need to keep back-
compatiblity requirements on a conditional level.

Change-Id: Id7fc4ede4c1aef84759e72be0fac28c86b1a09bc
This commit is contained in:
John Vrbanac 2014-01-20 16:37:54 -06:00
parent a25bfe15fc
commit 0200b63c2b
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,5 @@
decorator
paramiko
unittest2==0.5.1
# Keep this turned off unless your using the rsyslog client
# i.e. you know what you're doing :)

View File

@ -62,7 +62,8 @@ requires = open('pip-requires').readlines()
# Add additional requires for Python 2.6 support
if sys.version_info < (2, 7):
requires.append('argparse==1.2.1')
oldpy_requires = ['argparse>=1.2.1', 'unittest2>=0.5.1']
requires.extend(oldpy_requires)
#cmdclass hook allows setup to make post install call