#!/usr/bin/env python

"""Setup-module for spark-xarray.

This software enables working with netCDF climate model data in Apache Spark.

See: 
https://github.com/andersy005/spark-xarray
"""


from setuptools import setup
from setuptools import find_packages
import os
from ast import parse

NAME = 'spark-xarray'

def version():
      """Return version string."""
      with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),'sparkxarray', '__init__.py')) as input_file:
            for line in input_file:
                  if line.startswith('__version__'):
                        return parse(line).body[0].value.s


#for line in open('sparkxarray/__init__.py').readlines():
#      if line.startswith('__version__'):
#            exec(line)

INSTALL_REQUIRES = (['xarray>=0.9.5', 'dask', 'toolz>=0.8.2'])

packages = ['sparkxarray', 'sparkxarray.tests']

package_data = {'sparkxarray': ['data/*.nc']}

setup(name=NAME,
      version=version(),
      author='Anderson Banihirwe, Kevin Paul',
      maintainer_email='axbanihirwe@gmail.com',
      description='Big Atmospheric & Oceanic Data Analysis with Apache Spark + xarray',
      url='https://github.com/andersy005/spark-xarray',
      long_description="""
      Spark-xarray is a high level, Apache Spark and xarray-based Python library for working 
      with netCDF climate model data with Apache Spark.
      """,
      install_requires=INSTALL_REQUIRES,
      packages=packages,
      package_data=package_data,
      keywords=['xarray', 'Apache Spark', 'Distributed', 'netCDF', 'Parallel'],
      zip_safe=False,
      
)

@@ -19,65 +19,234 @@
 hon%0A
-%0A%22%22%22Setup-module for spark-xarray.%0A%0AThis software enables
+from setuptools import setup%0Afrom setuptools import find_packages%0Aimport os%0Afrom ast import parse%0A%0ALONG_DESCRIPTION = %22%22%22%0A**spark-xarray**: %0A      %0ASpark-xarray is a high level, Apache Spark and xarray-based Python library for
  wor
@@ -250,16 +250,17 @@
 working 
+%0A
 with net
@@ -282,18 +282,20 @@
 el data 
-in
+with
  Apache 
@@ -306,14 +306,74 @@
 k.%0A%0A
-See
+ Important links%0A------------------%0A%0A- Official source code repo
 : 
-%0A
 http
@@ -415,111 +415,79 @@
 ray%0A
-%22%22%22%0A%0A%0Afrom setuptools import setup%0Afrom setuptools import find_packages%0Aimport os%0Afrom ast import parse
+- Issue tracker: https://github.com/andersy005/spark-xarray/issues%0A%0A%22%22%22
 %0A%0ANA
@@ -976,45 +976,351 @@
  (%5B'
-xarray%3E=0.9.5', 'dask', 'toolz%3E=0.8.2
+numpy %3E= 1.7',%0A                      'scipy %3E= 0.16',%0A                      'pandas %3E= 0.15.0',%0A                      'netCDF4 %3E= 1.2',%0A                      'xarray%3E=0.9.5', %0A                      'dask %3E= 0.14',%0A                      'distributed %3E= 1.16.1', %0A                      'toolz%3E=0.8.2',%0A                      'cloudpickle %3E= 0.2.1
 '%5D)%0A
@@ -1724,171 +1724,24 @@
 ion=
-%22%22%22%0A      Spark-xarray is a high level, Apache Spark and xarray-based Python library for working %0A      with netCDF climate model data with Apache Spark.%0A      %22%22%22
+LONG_DESCRIPTION
 ,%0A  
@@ -1854,16 +1854,36 @@
 words=%5B'
+ Climate Science', '
 xarray',
@@ -1937,16 +1937,580 @@
 llel'%5D,%0A
+      classifiers=%5B%0A        'Development Status :: 1 - Beta',%0A        'Intended Audience :: Science/Research',%0A        'License :: OSI Approved :: MIT License',%0A        'Natural Language :: English',%0A        'Operating System :: OS Independent',%0A        'Programming Language :: Python :: 2.7',%0A        'Programming Language :: Python :: 3',%0A        'Programming Language :: Python :: 3.4',%0A        'Programming Language :: Python :: 3.5',%0A        'Programming Language :: Python :: 3.6',%0A        'Topic :: Scientific/Engineering :: Atmospheric Science'%0A       %5D,%0A
       zi

Update setup.py