#!/usr/bin/env python

import os

from setuptools import setup, find_packages

import configobj

info = configobj.ConfigObj('PackageInfo.cfg')

setup(name = info['PACKAGE'],
      version = "%(MAJOR)s.%(MINOR)s.%(MICRO)s%(TAG)s" % info,
      author = info['AUTHOR'],
      author_email = info['EMAIL'],
      url = info['URL'],
      description = info['DESCRIPTION'],
      license = info['LICENSE'],
      long_description = open('README.rst').read(),
      packages = find_packages(), # or info['PACKAGE'],
      package_data = {'':[os.path.join('*', '*.*')]},
      include_package_data = True,
      install_requires = ['phyles', 'pygmyplot', 'numpy', 'rpy2',
                          'scipy', 'configobj', 'radialx'],
      # test_suite = info['PACKAGE'] + '.tests.test_suite',
      classifiers = [
            'Programming Language :: Python :: 2.6',
            'Programming Language :: Python :: 2.7', ],
      entry_points = {
          'console_scripts' : [
             'bayestest = keres:_bayestest._bayestest']}
      )
