Skip to content

Commit

Permalink
Adding setup.py for installation and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jougs committed Oct 27, 2017
1 parent 82039b0 commit d53efee
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ install:
- pip install -r requirements.txt

script:
- python tests/shapes_test.py
- python tests/ode_analyzer_test.py
- python setup.py install
- python setup.py test
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[aliases]
test = pytest

[tool:pytest]
addopts = --verbose
56 changes: 56 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/usr/bin/env python
#
# setup.py
#
# This file is part of the NEST ODE toolbox.
#
# Copyright (C) 2017 The NEST Initiative
#
# The NEST ODE toolbox is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# The NEST ODE toolbox is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
#

from setuptools import setup

long_description = """The NEST ODE toolbox provides utility
classes and functions for selecting and generating solvers
for the differential equations commonly used in spiking neuron
models."""

setup (
name = "odetoolbox",
version = "1.0",
author = "The NEST Initiative",
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering'
],
description = "The NEST ODE toolbox",
keywords = "computational neuroscience modeling connectivity",
license = "GPLv3",
long_description = long_description,
packages = ['odetoolbox'],
package_dir={'odetoolbox': 'odetoolbox'},
requires = ['matplotlib', 'numpy', 'sympy'],
scripts= ['ode_analyzer.py'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
url = "https://github.com/nest/ode-toolbox",
)

0 comments on commit d53efee

Please sign in to comment.