"""neurodsp setup script"""
# import os
from setuptools import setup, find_packages

# # Get the current version number from inside the module
# with open(os.path.join('neurodsp', 'version.py')) as vf:
#     exec(vf.read())

# Copy in long description.
#  Note: this is a partial copy from the README
# Only update here in coordination with the README, to keep things
# consistent.
long_description = \
    """
========
Neurodsp
========
A package of modules to process and analyze neural recordings as individual voltage time series.
The primary purpose of this library is to serve as the shared codebase for the Voytek lab,
but we welcome anyone's use and contributions.

Neurodsp contains several modules:
- burst : Detect bursting oscillators in neural signals
- filt : Filter data with bandpass, highpass, lowpass, or notch filters
- laggedcoherence : Estimate rhythmicity using the lagged coherence measure
- sim : Simulate bursting or stationary oscillators with brown noise
- spectral : Compute spectral domain features (PSD and 1/f slope, etc)
- swm : Identify recurrent patterns in a signal using sliding window matching
- timefrequency : Estimate instantaneous measures of oscillatory activity
"""

setup(
    name = 'neurodsp',
    # version = __version__,
    # description = long_description,
    version = '0.3.1',
    description = 'A package of modules for analyzing neural signals',
    author = 'The Voytek Lab',
    author_email = 'voyteklab@gmail.com',
    url = 'https://github.com/voytekresearch/neurodsp',
    packages = find_packages(),
    license = 'MIT',
    # download_url = 'https://github.com/voytekresearch/neurodsp/releases',
    download_url = 'https://github.com/voytekresearch/neurodsp/archive/0.3.1.tar.gz',
    keywords = ['neuroscience', 'neural oscillations', 'time series analysis', 'spectral analysis', 'LFP'],
    # install_requires = ['numpy', 'scipy', 'matplotlib', 'pandas', 'scikit-learn'],
    # tests_require = ['pytest'],
    # classifiers = [
    #     'Development Status :: 4 - Beta',
    #     'Intended Audience :: Science/Research',
    #     'Topic :: Scientific/Engineering',
    #     'License :: OSI Approved :: MIT License',
    #     'Operating System :: MacOS :: MacOS X',
    #     'Operating System :: Microsoft :: Windows',
    #     'Operating System :: POSIX :: Linux',
    #     'Operating System :: Unix',
    #     'Programming Language :: Python',
    #     'Programming Language :: Python :: 3.4',
    #     'Programming Language :: Python :: 3.5',
    #     'Programming Language :: Python :: 3.6'
    #     ]
    classifiers = []
)

@@ -21,18 +21,17 @@
 ript%22%22%22%0A
-# 
+%0A
 import o
@@ -77,18 +77,16 @@
 ckages%0A%0A
-# 
 # Get th
@@ -133,18 +133,16 @@
  module%0A
-# 
 with ope
@@ -190,18 +190,16 @@
  as vf:%0A
-# 
     exec
@@ -288,16 +288,19 @@
 README%0A#
+   
  Only up
@@ -356,18 +356,16 @@
 p things
-%0A#
  consist
@@ -390,20 +390,16 @@
 ion = %5C%0A
-    
 %22%22%22%0A====
@@ -1226,18 +1226,16 @@
 sp',%0A   
- #
  version
@@ -1253,18 +1253,16 @@
 n__,%0A   
- #
  descrip
@@ -1290,102 +1290,8 @@
 on,%0A
-    version = '0.3.1',%0A    description = 'A package of modules for analyzing neural signals',%0A
     
@@ -1471,18 +1471,16 @@
 IT',%0A   
- #
  downloa
@@ -1546,94 +1546,8 @@
 s',%0A
-    download_url = 'https://github.com/voytekresearch/neurodsp/archive/0.3.1.tar.gz',%0A
     
@@ -1653,18 +1653,16 @@
 P'%5D,%0A   
- #
  install
@@ -1736,18 +1736,16 @@
 n'%5D,%0A   
- #
  tests_r
@@ -1768,18 +1768,16 @@
 t'%5D,%0A   
- #
  classif
@@ -1784,26 +1784,24 @@
 iers = %5B%0A   
- #
      'Develo
@@ -1826,26 +1826,24 @@
 - Beta',%0A   
- #
      'Intend
@@ -1875,26 +1875,24 @@
 search',%0A   
- #
      'Topic 
@@ -1918,26 +1918,24 @@
 eering',%0A   
- #
      'Licens
@@ -1969,30 +1969,28 @@
 cense',%0A    
-#
     
- 
 'Operating S
@@ -2016,26 +2016,24 @@
 acOS X',%0A   
- #
      'Operat
@@ -2069,30 +2069,28 @@
 ndows',%0A    
-#
     
- 
 'Operating S
@@ -2114,26 +2114,24 @@
  Linux',%0A   
- #
      'Operat
@@ -2150,26 +2150,24 @@
 : Unix',%0A   
- #
      'Progra
@@ -2192,26 +2192,24 @@
 Python',%0A   
- #
      'Progra
@@ -2241,26 +2241,24 @@
 :: 3.4',%0A   
- #
      'Progra
@@ -2290,26 +2290,24 @@
 :: 3.5',%0A   
- #
      'Progra
@@ -2346,36 +2346,12 @@
 %0A   
- #
      %5D%0A
-    classifiers = %5B%5D%0A)%0A
+)

fix setup.py