diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..734df736d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +# Include requirements +include requirement*.txt \ No newline at end of file diff --git a/requirements-docs.txt b/requirements-docs.txt new file mode 100644 index 000000000..382099344 --- /dev/null +++ b/requirements-docs.txt @@ -0,0 +1,2 @@ +numpydoc>=0.5 +sphinx>=1.2.2 \ No newline at end of file diff --git a/requirements-extras.txt b/requirements-extras.txt new file mode 100644 index 000000000..9640a3176 --- /dev/null +++ b/requirements-extras.txt @@ -0,0 +1,2 @@ +pandas>=0.14.1 +scikit-learn diff --git a/requirements-tests.txt b/requirements-tests.txt new file mode 100644 index 000000000..e922716c4 --- /dev/null +++ b/requirements-tests.txt @@ -0,0 +1 @@ +nose>=1.3.3 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 09857c671..a557868d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,5 @@ -# essential neo>=0.5.0 numpy>=1.8.2 quantities>=0.10.1 scipy>=0.14.0 -six>=1.10.0 -# optional -#pandas>=0.14.1 -# for building documentation -#numpydoc>=0.5 -#sklearn>=0.15.1 -#sphinx>=1.2.2 -# for running tests -nose>=1.3.3 +six>=1.10.0 \ No newline at end of file diff --git a/setup.py b/setup.py index 21e4c6e0e..9686b13b6 100644 --- a/setup.py +++ b/setup.py @@ -9,15 +9,12 @@ from urllib import urlretrieve long_description = open("README.rst").read() -install_requires = ['neo>=0.5.0', - 'numpy>=1.8.2', - 'quantities>=0.10.1', - 'scipy>=0.14.0', - 'six>=1.10.0'] -extras_require = {'pandas': ['pandas>=0.14.1'], - 'docs': ['numpydoc>=0.5', - 'sphinx>=1.2.2'], - 'tests': ['nose>=1.3.3']} +with open('requirements.txt', 'r') as fp: + install_requires = fp.read() +extras_require = {} +for extra in ['extras', 'docs', 'tests']: + with open('requirements-{0}.txt'.format(extra), 'r') as fp: + extras_require[extra] = fp.read() # spade specific is_64bit = sys.maxsize > 2 ** 32 @@ -51,13 +48,14 @@ os.path.join('spade_src', 'LICENSE'), os.path.join('spade_src', '*.so') ]}, - + install_requires=install_requires, extras_require=extras_require, author="Elephant authors and contributors", author_email="andrew.davison@unic.cnrs-gif.fr", - description="Elephant is a package for analysis of electrophysiology data in Python", + description="Elephant is a package for analysis of electrophysiology" + " data in Python", long_description=long_description, license="BSD", url='http://neuralensemble.org/elephant',