setup.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from setuptools import setup
  4. import os
  5. long_description = open("README.rst").read()
  6. install_requires = ['numpy>=1.7.1',
  7. 'quantities>=0.9.0']
  8. extras_require = {
  9. 'hdf5io': ['h5py'],
  10. 'igorproio': ['igor'],
  11. 'kwikio': ['scipy', 'klusta'],
  12. 'neomatlabio': ['scipy>=0.12.0'],
  13. 'nixio': ['nixio>=1.5.0b2'],
  14. 'stimfitio': ['stfio'],
  15. 'axographio': ['axographio']
  16. }
  17. if os.environ.get('TRAVIS') == 'true' and \
  18. os.environ.get('TRAVIS_PYTHON_VERSION').startswith('2.6'):
  19. install_requires.append('unittest2>=0.5.1')
  20. with open("neo/version.py") as fp:
  21. d = {}
  22. exec(fp.read(), d)
  23. neo_version = d['version']
  24. setup(
  25. name="neo",
  26. version=neo_version,
  27. packages=[
  28. 'neo', 'neo.core', 'neo.io', 'neo.test', 'neo.test.iotest',
  29. 'neo.rawio', 'neo.rawio.tests'],
  30. install_requires=install_requires,
  31. extras_require=extras_require,
  32. author="Neo authors and contributors",
  33. author_email="samuel.garcia@cnrs.fr",
  34. description="Neo is a package for representing electrophysiology data in "
  35. "Python, together with support for reading a wide range of "
  36. "neurophysiology file formats",
  37. long_description=long_description,
  38. license="BSD-3-Clause",
  39. url='http://neuralensemble.org/neo',
  40. classifiers=[
  41. 'Development Status :: 4 - Beta',
  42. 'Intended Audience :: Science/Research',
  43. 'License :: OSI Approved :: BSD License',
  44. 'Natural Language :: English',
  45. 'Operating System :: OS Independent',
  46. 'Programming Language :: Python :: 2',
  47. 'Programming Language :: Python :: 2.7',
  48. 'Programming Language :: Python :: 3',
  49. 'Programming Language :: Python :: 3.3',
  50. 'Programming Language :: Python :: 3.4',
  51. 'Programming Language :: Python :: 3.5',
  52. 'Programming Language :: Python :: 3.6',
  53. 'Topic :: Scientific/Engineering']
  54. )