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

"""Farnsworth is the database wrapper for Mechanical Phish."""

from distutils.core import setup
import platform

dependencies = ["git+https://github.com/mechaphish/peewee.git#egg=peewee-99.9.9"]

requires = ["peewee>=2.8.1",
            "retrying>=1.3.0",
            # tests
            "python-dotenv>=0.3.0",
            "nose>=1.3.7",
            "nose-timer>=0.5.0",
            "coverage>=4.0.3"]

if platform.python_implementation() == "PyPy":
    requires.append("psycopg2cffi")
else:
    requires.append("psycopg2>=2.6.1")

setup(name='farnsworth',
      version="1.0.0",
      packages=["farnsworth", "farnsworth.actions", "farnsworth.actions.common",
                "farnsworth.mixins", "farnsworth.models", "farnsworth.models.concerns"],
      entry_points={'console_scripts': ["farnsworth=farnsworth.__main__:main"]},
      install_requires=requires,
      dependency_links=dependencies,
      description="Knowledge base of the Shellphish CRS",
      url="https://github.com/mechaphish/farnsworth")
