#!/usr/bin/env python
# -*- coding:utf-8 -*-

""" Setup script for csft """
from sys import version as VER

from setuptools import find_packages, setup

import csft

REQUIRES = [
    'pandas >= 0.20.3',
    'humanfriendly >= 4.6',
]

if VER < '3.4':
    REQUIRES = [
        'pandas >= 0.20.3, < 0.22',
        'pathlib >= 1.0.1'
    ]

if VER < '3.5':
    REQUIRES.append('scandir >= 1.5')

setup(
    name=csft.__name__,
    version=csft.__version__,
    description='Count Sizes of File Types',
    url=csft.__url__,
    author=csft.__author__,
    author_email=csft.__email__,
    license=csft.__license__,

    packages=find_packages(),
    entry_points={
        'console_scripts': (
            'csft = csft.__main__:main',
        ),
    },

    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
    install_requires=REQUIRES,
    setup_requires=[
        'pytest-runner',
    ],
    tests_require=[
        'pytest',
        'pytest-cov',
        'pytest-pep8',
        'pytest-flakes',
        'pytest-mock',
        'mock',
    ],

    zip_safe=False,
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        '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',
        'Programming Language :: Python :: 3.6',
    ]
)

@@ -96,15 +96,8 @@
 sion
- as VER
 %0A%0Afr
@@ -219,27 +219,31 @@
 4.6',%0A%5D%0A%0Aif 
-VER
+version
  %3C '3.4':%0A  
@@ -256,98 +256,102 @@
 IRES
- = %5B%0A        'pandas %3E= 0.20.3, %3C 0.22',%0A        'pathlib %3E= 1.0.1'%0A    %5D%0A%0Aif VER %3C '3.5':
+.append('pathlib %3E= 1.0.1')%0A%0Aif version %3C '3.5':%0A    REQUIRES%5B0%5D = 'pandas %3E= 0.20.3, %3C 0.22',
 %0A   

Fix the install_requires below Python 3.4