from setuptools import setup, find_packages

setup(
    name='yargy',
    version='0.4.0',
    description='Tiny rule-based facts extraction package',
    url='https://github.com/bureaucratic-labs/yargy',
    author='Dmitry Veselov',
    author_email='d.a.veselov@yandex.ru',
    license='MIT',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7'
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='natural language processing, russian morphology, tomita',
    packages=find_packages(),
    install_requires=[
        'pymorphy2',
        'enum34',
        'backports.functools-lru-cache',
    ],
)

from sys import version_info
from setuptools import setup, find_packages

BASE_REQUIREMENTS = [
    'pymorphy2'
]

BACKPORT_REQUIREMENTS = [
    'enum34',
    'backports.functools-lru-cache',
]

if version_info.major == 2 or (version_info.major == 3 and version_info.minor < 4):
    BASE_REQUIREMENTS.append(BACKPORT_REQUIREMENTS)

setup(
    name='yargy',
    version='0.4.0',
    description='Tiny rule-based facts extraction package',
    url='https://github.com/bureaucratic-labs/yargy',
    author='Dmitry Veselov',
    author_email='d.a.veselov@yandex.ru',
    license='MIT',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7'
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords='natural language processing, russian morphology, tomita',
    packages=find_packages(),
    install_requires=BASE_REQUIREMENTS,
)

Split python 3 and python 2 requirements