#!/usr/bin/env python
from distutils.core import setup, Command
from ltsv import __version__

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import sys, subprocess
        errno = subprocess.call([sys.executable, 'runtests.py'])
        raise SystemExit(errno)

with open('README.rst') as f:
    long_description = f.read()
del f

setup(
    name='ltsv',
    version=__version__,
    description='Labeled Tab-separated Values parser',
    long_description=long_description,
    author='hekyou',
    author_email='hekyolabs@gmail.com',
    url='https://github.com/hekyou/python-ltsv',
    keywords=['ltsv',],
    license="MIT License",
    packages=['ltsv'],
    cmdclass = {'test': PyTest},
)

#!/usr/bin/env python
from distutils.core import setup, Command
from ltsv import __version__

class PyTest(Command):
    user_options = []
    def initialize_options(self):
        pass
    def finalize_options(self):
        pass
    def run(self):
        import sys, subprocess
        errno = subprocess.call([sys.executable, 'runtests.py'])
        raise SystemExit(errno)

try:
    with open('README.rst') as f:
        long_description = f.read()
except IOError:
    long_description = ""

setup(
    name='ltsv',
    version=__version__,
    description='Labeled Tab-separated Values parser',
    long_description=long_description,
    author='hekyou',
    author_email='hekyolabs@gmail.com',
    url='https://github.com/hekyou/python-ltsv',
    keywords=['ltsv',],
    license="MIT License",
    packages=['ltsv'],
    cmdclass = {'test': PyTest},
)

fix 'No such file:README.rst' for tox