import sys
from setuptools import setup, find_packages

from marcottievents.version import __version__


REQUIRES = ['SQLAlchemy>=1.0.9',
            'jinja2>=2.7',
            'clint>=0.4.0',
            'lxml>=3.5.0',
            'pandas>=0.16.0',
            'requests>=2.9.0']
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest_runner'] if needs_pytest else []

setup(
    name='marcotti-events',
    version=__version__,
    packages=find_packages(),
    package_data={
        'marcottievents': ['data/*.csv', 'data/*.json', 'data/templates/*.skel']
    },
    entry_points={
        'console_scripts': [
            'dbsetup = marcottievents.tools.dbsetup:main'
        ]
    },
    url='https://github.com/soccermetrics/marcotti-events',
    license='MIT',
    author='Soccermetrics Research',
    author_email='info@soccermetrics.net',
    keywords=['soccer', 'football', 'soccer analytics', 'data modeling', 'MLS'],
    setup_requires=pytest_runner,
    install_requires=REQUIRES,
    extras_require={
        'PostgreSQL': ['psycopg2>=2.5.1'],
        'MySQL': ['mysql-python>=1.2.3'],
        'MSSQL': ['pyodbc>=3.0'],
        'Oracle': ['cx_oracle>=5.0'],
        'Firebird': ['fdb>=1.6']
    },
    tests_require=['pytest>=2.8.2'],
    description='Data modeling software library for capture of micro events in football matches',
    long_description=open('README.md').read()
)

import sys
from setuptools import setup, find_packages


REQUIRES = ['SQLAlchemy>=1.0.9',
            'jinja2>=2.7',
            'clint>=0.4.0',
            'lxml>=3.5.0',
            'pandas>=0.16.0']
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest_runner'] if needs_pytest else []
exec(open('marcottievents/version.py').read())

setup(
    name='marcotti-events',
    version=__version__,
    packages=find_packages(),
    package_data={
        'marcottievents': ['data/*.csv', 'data/*.json', 'data/templates/*.skel']
    },
    entry_points={
        'console_scripts': [
            'dbsetup = marcottievents.tools.dbsetup:main'
        ]
    },
    url='https://github.com/soccermetrics/marcotti-events',
    license='MIT',
    author='Soccermetrics Research',
    author_email='info@soccermetrics.net',
    keywords=['soccer', 'football', 'soccer analytics', 'data modeling'],
    setup_requires=pytest_runner,
    install_requires=REQUIRES,
    extras_require={
        'PostgreSQL': ['psycopg2>=2.5.1'],
        'MySQL': ['mysql-python>=1.2.3'],
        'MSSQL': ['pyodbc>=3.0'],
        'Oracle': ['cx_oracle>=5.0'],
        'Firebird': ['fdb>=1.6']
    },
    tests_require=['pytest>=2.8.2'],
    description='Data modeling software library for capture of micro events in football matches',
    long_description=open('README.md').read()
)

Remove unneeded libraries from requirement list, other amendments for Marcotti-Events