diff options
author | David Douard <david.douard@logilab.fr> | 2014-11-30 11:16:57 +0100 |
---|---|---|
committer | David Douard <david.douard@logilab.fr> | 2014-11-30 11:16:57 +0100 |
commit | 0e77e36f1affd6f3cc4a735265d0690aac06885c (patch) | |
tree | 33db0a1ae25c28f6019b5a62f0d05ee9f487353c | |
parent | 49f441b56a6235baf6f33b97600a005456f2a443 (diff) | |
download | logilab-common-0e77e36f1affd6f3cc4a735265d0690aac06885c.tar.gz |
[pkg] pytz is only a setuptools test_require, not an install_requires (closes #281909)
-rw-r--r-- | __pkginfo__.py | 3 | ||||
-rw-r--r-- | setup.py | 2 |
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': @@ -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, |