diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2016-08-02 00:17:15 +0300 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-08-02 00:19:19 +0300 |
| commit | 3929aabea71b412022151b3e0574c63ea8954e0a (patch) | |
| tree | c5c08ce16c07922ee7b9107b3f6fbbc5afa6257f | |
| parent | a4a470c9277b900246b93a286e1648ab2279b2b1 (diff) | |
| download | astroid-git-3929aabea71b412022151b3e0574c63ea8954e0a.tar.gz | |
Use proper environment markers for version specific dependencies.
| -rw-r--r-- | astroid/__pkginfo__.py | 13 | ||||
| -rw-r--r-- | setup.py | 1 |
2 files changed, 4 insertions, 10 deletions
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index 780d9bbd..496ac15a 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -6,8 +6,6 @@ # For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER """astroid packaging information""" -import sys - distname = 'astroid' modname = 'astroid' @@ -15,15 +13,10 @@ modname = 'astroid' numversion = (2, 0, 0) version = '.'.join([str(num) for num in numversion]) - +extras_require = {} install_requires = ['lazy_object_proxy', 'six', 'wrapt'] - -if sys.version_info <= (3, 3): - install_requires.append('singledispatch') - install_requires.append('enum34') - - if sys.version_info < (3, 0): - install_requires.append('funcsigs') +extras_require[':python_version<"3.4"'] = ['enum34', 'singledispatch'] +extras_require[':python_version<"3.0"'] = ['funcsigs'] license = 'LGPL' @@ -53,6 +53,7 @@ def install(): url = web, include_package_data = True, install_requires = install_requires, + extras_require=extras_require, packages = find_packages(), cmdclass = {'install_lib': AstroidInstallLib, 'easy_install': AstroidEasyInstallLib} |
