summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Douard <david.douard@logilab.fr>2014-11-30 11:16:57 +0100
committerDavid Douard <david.douard@logilab.fr>2014-11-30 11:16:57 +0100
commit0e77e36f1affd6f3cc4a735265d0690aac06885c (patch)
tree33db0a1ae25c28f6019b5a62f0d05ee9f487353c
parent49f441b56a6235baf6f33b97600a005456f2a443 (diff)
downloadlogilab-common-0e77e36f1affd6f3cc4a735265d0690aac06885c.tar.gz
[pkg] pytz is only a setuptools test_require, not an install_requires (closes #281909)
-rw-r--r--__pkginfo__.py3
-rw-r--r--setup.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/__pkginfo__.py b/__pkginfo__.py
index 59a04e8..e9631c6 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -42,8 +42,9 @@ include_dirs = [join('test', 'data')]
install_requires = [
'six >= 1.4.0',
- 'pytz',
]
+test_require = ['pytz']
+
if sys.version_info < (2, 7):
install_requires.append('unittest2 >= 0.5.1')
if os.name == 'nt':
diff --git a/setup.py b/setup.py
index eed2bcc..d4f5741 100644
--- a/setup.py
+++ b/setup.py
@@ -54,6 +54,7 @@ subpackage_of = getattr(__pkginfo__, 'subpackage_of', None)
include_dirs = getattr(__pkginfo__, 'include_dirs', [])
ext_modules = getattr(__pkginfo__, 'ext_modules', None)
install_requires = getattr(__pkginfo__, 'install_requires', None)
+test_require = getattr(__pkginfo__, 'test_require', None)
dependency_links = getattr(__pkginfo__, 'dependency_links', [])
classifiers = getattr(__pkginfo__, 'classifiers', [])
@@ -153,6 +154,7 @@ def install(**kwargs):
packages = [modname] + get_packages(os.getcwd(), modname)
if USE_SETUPTOOLS and install_requires:
kwargs['install_requires'] = install_requires
+ kwargs['test_require'] = test_require
kwargs['dependency_links'] = dependency_links
kwargs['packages'] = packages
return setup(name = distname,