import os
from setuptools import setup, find_packages


def read(fname):
    try:
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    except:
        return ''

dependency_links = read('test_requirements.txt').split('\n')

setup(
    name="brules",
    version="0.0.5",
    author="<NAME>",
    author_email="<EMAIL>",
    description="A tool to help you parse and process text-based business rules.",
    license="BSD",
    keywords="business rules parsing",
    url="http://packages.python.org/an_example_pypi_project",
    packages=find_packages(),
    long_description=read('README.md'),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
    ],
    entry_points={
        'console_scripts': [
            'brules = brules.scripts.brules:run'
        ]
    },

    install_requires=['pyYAML', 'future'],
    dependency_links=dependency_links,
    extras_require={
        'lxml': ['lxml'],
    },
    tests_require=['nose==1.3.0', 'nose-machineout==0.4-rc1', 'lxml', 'mock'],
    test_suite='nose.collector',
)

import os
from setuptools import setup, find_packages


def read(fname):
    try:
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    except:
        return ''

dependency_links = read('test_requirements.txt').split('\n')

setup(
    name="brules",
    version="0.0.5",
    author="<NAME>",
    author_email="<EMAIL>",
    description="A tool to help you parse and process text-based business rules.",
    license="BSD",
    keywords="business rules parsing",
    url="http://packages.python.org/an_example_pypi_project",
    packages=find_packages(),
    long_description=read('README.md'),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Topic :: Utilities",
        "License :: OSI Approved :: BSD License",
    ],
    entry_points={
        'console_scripts': [
            'brules = brules.scripts.brules:run'
        ]
    },

    install_requires=['pyYAML', 'future'],
    dependency_links=dependency_links,
    extras_require={
        'lxml': ['lxml'],
    },
    tests_require=['nose==1.3.0', 'nose-machineout==0.4-rc1', 'lxml', 'mock'],
    test_suite='nose.collector',
)
