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

from os import path
import sys
from setuptools import (setup, find_packages)

py_version = sys.version_info[:2]
if py_version < (3, 0):
    sys.exit('Error: Linguistica requires Python 3.\n'
             'You are using Python {}.{}.'.format(*py_version))

version_path = path.join(path.dirname(__file__), 'linguistica', 'VERSION')
with open(version_path) as f:
    package_version = f.read().strip()

setup(name='linguistica',
      version=package_version,
      description='Linguistica',
      long_description='Linguistica: '
                       'Unsupervised Learning of Linguistic Structure',
      url='http://linguistica.uchicago.edu/',
      author='Jackson Lee',
      author_email='jsllee.phon@gmail.com',
      # license='Apache License, Version 2.0',
      packages=find_packages(),
      keywords=['computational linguistics', 'natural language processing',
                'NLP', 'linguistics', 'corpora', 'speech',
                'language', 'machine learning', 'unsupervised learning'],

      install_requires=['scipy', 'numpy', 'networkx'],

      package_data={
          'linguistica': ['VERSION'],
      },

      zip_safe=False,

      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'Intended Audience :: Education',
          'Intended Audience :: Information Technology',
          'Intended Audience :: Science/Research',
          # 'License :: OSI Approved :: Apache Software License',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Topic :: Scientific/Engineering',
          'Topic :: Scientific/Engineering :: Artificial Intelligence',
          'Topic :: Scientific/Engineering :: Human Machine Interfaces',
          'Topic :: Scientific/Engineering :: Information Analysis',
          'Topic :: Text Processing',
          'Topic :: Text Processing :: Filters',
          'Topic :: Text Processing :: General',
          'Topic :: Text Processing :: Indexing',
          'Topic :: Text Processing :: Linguistic',
          ],
      )

@@ -118,16 +118,53 @@
 kages)%0A%0A
+required_py_version = (3, 4)%0Acurrent_
 py_versi
@@ -193,11 +193,20 @@
 :2%5D%0A
+%0A
 if 
+current_
 py_v
@@ -218,14 +218,27 @@
 n %3C 
-(3, 0)
+required_py_version
 :%0A  
@@ -288,14 +288,72 @@
 hon 
-3
+%7B%7D.%7B%7D or above
 .%5Cn'%0A
+             .format(*required_py_version) +%0A
     
@@ -399,16 +399,24 @@
 format(*
+current_
 py_versi
@@ -1170,16 +1170,54 @@
 earning'
+,%0A                'data visualization'
 %5D,%0A%0A    
@@ -1324,16 +1324,33 @@
 VERSION'
+, 'gui/d3.min.js'
 %5D,%0A     
@@ -1434,29 +1434,16 @@
  :: 
-5 - Production/Stable
+4 - Beta
 ',%0A 

update setup.py