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

from setuptools import setup

with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('HISTORY.rst') as history_file:
    history = history_file.read()

requirements = [
    'fs==0.5.4'
]

test_requirements = [
    'fs>=0.5.4',
    'pymongo>=3.3.0'
]

setup(
    name='datafs',
    version='0.2.2',
    description="DataFS is an abstraction layer for data storage systems. It manages file versions and metadata using a json-like storage system like AWS's DynamoDB and relies on PyFilesystem to abstract file storage, allowing you to store files locally and on the cloud in a seamless interface.",
    long_description=readme + '\n\n' + history,
    author="Climate Impact Lab",
    author_email='jsimcock@rhg.com',
    url='https://github.com/ClimateImpactLab/datafs',
    packages=[
        'datafs',
    ],
    package_dir={'datafs':
                 'datafs'},
    include_package_data=True,
    install_requires=requirements,
    license="MIT license",
    zip_safe=False,
    keywords='datafs',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    test_suite='tests',
    tests_require=test_requirements
)

@@ -220,16 +220,27 @@
 read()%0A%0A
+with open('
 requirem
@@ -247,93 +247,192 @@
 ents
- = %5B%0A    'fs==0.5.4'%0A%5D%0A%0Atest_requirements = %5B%0A    'fs%3E=0.5.4',%0A    'pymongo%3E=3.3.0'%0A%5D
+.txt') as req_dev_file:%0A    requirements = req_dev_file.read().splitlines()%0A%0Awith open('requirements_dev.txt') as req_dev_file:%0A    test_requirements = req_dev_file.read().splitlines()
 %0A%0Ase

read setup.py requirements from requirements files