Patch (logilab-common.patch)

download
--- __pkginfo__.py
+++ __pkginfo__.py
@@ -42,13 +42,16 @@
 
 install_requires = [
         'six >= 1.4.0',
-	'pytz',
         ]
 if sys.version_info < (2, 7):
     install_requires.append('unittest2 >= 0.5.1')
 if os.name == 'nt':
     install_requires.append('colorama')
 
+tests_require = [
+	'pytz',
+	]
+
 classifiers = ["Topic :: Utilities",
                "Programming Language :: Python",
                "Programming Language :: Python :: 2",
--- setup.py
+++ setup.py
@@ -54,6 +54,7 @@
 include_dirs = getattr(__pkginfo__, 'include_dirs', [])
 ext_modules = getattr(__pkginfo__, 'ext_modules', None)
 install_requires = getattr(__pkginfo__, 'install_requires', None)
+tests_require = getattr(__pkginfo__, 'tests_require', None)
 dependency_links = getattr(__pkginfo__, 'dependency_links', [])
 classifiers = getattr(__pkginfo__, 'classifiers', [])
 
@@ -151,9 +152,13 @@
     else:
         kwargs['package_dir'] = {modname : '.'}
         packages = [modname] + get_packages(os.getcwd(), modname)
-    if USE_SETUPTOOLS and install_requires:
-        kwargs['install_requires'] = install_requires
-        kwargs['dependency_links'] = dependency_links
+    if USE_SETUPTOOLS:
+        if install_requires:
+            kwargs['install_requires'] = install_requires
+        if tests_require:
+            kwargs['tests_require'] = tests_require
+        if dependency_links:
+            kwargs['dependency_links'] = dependency_links
     kwargs['packages'] = packages
     return setup(name = distname,
                  version = version,