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

import os
import sys
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

setup(
    name='PyGSP',
    version='0.4.2',
    description='The official Graph Signal Processing Toolbox',
    long_description=open('README.rst').read(),
    author='Alexandre Lafaye, Basile Châtillon, Lionel Martin, Nicolas Rod (EPFL LTS2)',
    author_email='alexandre.lafaye@epfl.ch, basile.chatillon@epfl.ch, lionel.martin@epfl.ch, nicolas.rod@epfl.ch',
    url='https://github.com/epfl-lts2/',
    packages=['pygsp', 'pygsp.filters', 'pygsp.graphs',
              'pygsp.graphs.nngraphs', 'pygsp.operators',
              'pygsp.pointclouds', 'pygsp.tests'],
    package_data={'pygsp.pointclouds': ['misc/*.mat']},
    test_suite='pygsp.tests.test_all.suite',
    install_requires=[
        'numpy',
        'scipy',
        'matplotlib',
        'pyqtgraph',
        'PyQt5' if sys.version_info >= (3, 5) else 'PySide',
        'pyopengl',
        'scikit-image',
	'pyflann' if sys.version_info.major == 2 else 'pyflann3'],
    license="BSD",
    keywords='graph signal processing toolbox filters pointclouds',
    platforms='any',
    classifiers=[
        'Topic :: Scientific/Engineering :: Mathematics',
        'Environment :: Console',
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
)

@@ -51,31 +51,12 @@
 ort 
-os%0Aimport sys%0Atry:%0A    
+sys%0A
 from
@@ -84,156 +84,8 @@
 tup%0A
-except ImportError:%0A    from distutils.core import setup%0A%0Aif sys.argv%5B-1%5D == 'publish':%0A    os.system('python setup.py sdist upload')%0A    sys.exit()
 %0A%0Ase
@@ -149,21 +149,8 @@
 on='
-The official 
 Grap
@@ -173,15 +173,17 @@
 ing 
-Toolbox
+in Python
 ',%0A 
@@ -245,197 +245,17 @@
 or='
-Alexandre Lafaye, Basile Ch%C3%A2tillon, Lionel Martin, Nicolas Rod (EPFL LTS2)',%0A    author_email='alexandre.lafaye@epfl.ch, basile.chatillon@epfl.ch, lionel.martin@epfl.ch, nicolas.rod@epfl.ch
+EPFL LTS2
 ',%0A 
@@ -291,16 +291,21 @@
 fl-lts2/
+pygsp
 ',%0A    p
@@ -774,9 +774,16 @@
 e',%0A
-%09
+        
 'pyf
@@ -897,36 +897,8 @@
 sing
- toolbox filters pointclouds
 ',%0A 
@@ -1062,16 +1062,15 @@
  :: 
-3 - Alph
+4 - Bet
 a',%0A

update setup.py