from setuptools import setup

from setuptools.command.test import test as TestCommand

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


def readme():
    with open('README.pandoc') as f:
        return f.read()

setup( name             = 'pyop'
     , version          = '0.0.1'
     , description      = 'Matrix free linear transformations'
     , long_description = readme()
     , keywords         = [ 'Linear Algebra', 'Linear Transformations']
     , author           = 'Daniel Hensley and Ryan Orendorff'
     , author_email     = 'ryan@rdodesigns.com'
     , license          = 'BSD'
     , classifiers      =
        [ 'Development Status :: 1 - Planning'
        , 'Intended Audience :: Science/Research'
        , 'License :: OSI Approved :: BSD License'
        , 'Programming Language :: Python'
        , 'Topic :: Scientific/Engineering :: Mathematics'
        , 'Topic :: Software Development :: Libraries :: Python Modules'
        ]
     , packages         = ['pyop']
     , install_requires = ['six >= 1.6', 'numpy >= 1.8']
     , zip_safe         = False
     , tests_require    = ['pytest']
     , cmdclass         = {'test': PyTest}
     )


from setuptools import setup

from setuptools.command.test import test as TestCommand

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main(self.test_args)
        sys.exit(errno)


def readme():
    with open('README.pandoc') as f:
        return f.read()

setup( name             = 'pyop'
     , version          = '0.0.1'
     , description      = 'Matrix free linear transformations'
     , long_description = readme()
     , keywords         = [ 'Linear Algebra', 'Linear Transformations']
     , author           = 'Daniel Hensley and Ryan Orendorff'
     , author_email     = 'ryan@rdodesigns.com'
     , license          = 'BSD'
     , classifiers      =
        [ 'Development Status :: 1 - Planning'
        , 'Intended Audience :: Science/Research'
        , 'License :: OSI Approved :: BSD License'
        , 'Programming Language :: Python'
        , 'Topic :: Scientific/Engineering :: Mathematics'
        , 'Topic :: Software Development :: Libraries :: Python Modules'
        ]
     , packages         = ['pyop']
     , install_requires =
        [ 'six >= 1.6'
        , 'numpy >= 1.8'
        , 'scipy >= 0.14.0'
        ]
     , zip_safe         = False
     , tests_require    = ['pytest']
     , cmdclass         = {'test': PyTest}
     )


Install requirements now include SciPy.