From d1118af4f268e81571f1fe79a4f953ee00a754dd Mon Sep 17 00:00:00 2001 From: Aaron Voelker Date: Wed, 20 Jan 2016 19:31:58 -0500 Subject: [PATCH] Installation boilerplate --- .gitignore | 2 ++ CONTRIBUTORS.rst | 1 + LICENSE.rst | 1 + README.md | 4 ++-- nengolib/__init__.py | 9 +++++++++ nengolib/version.py | 6 ++++++ requirements.txt | 3 +++ setup.py | 20 ++++++++++++++++++++ 8 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 CONTRIBUTORS.rst create mode 100644 LICENSE.rst create mode 100644 nengolib/__init__.py create mode 100644 nengolib/version.py create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eee5ac0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.py[co] +build diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst new file mode 100644 index 0000000..cd811f8 --- /dev/null +++ b/CONTRIBUTORS.rst @@ -0,0 +1 @@ +Aaron Voelker diff --git a/LICENSE.rst b/LICENSE.rst new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/LICENSE.rst @@ -0,0 +1 @@ + diff --git a/README.md b/README.md index 48c4a3b..f615e0c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# nengolib -Nengo Library +# Nengo Library +Additional extensions for large-scale brain modelling with Nengo. diff --git a/nengolib/__init__.py b/nengolib/__init__.py new file mode 100644 index 0000000..8dfa6f0 --- /dev/null +++ b/nengolib/__init__.py @@ -0,0 +1,9 @@ +""" +Nengo Library +============= + +Nengo Library provides additional extensions for large-scale brain +modelling with Nengo. +""" + +from .version import version as __version__ diff --git a/nengolib/version.py b/nengolib/version.py new file mode 100644 index 0000000..6b18c4e --- /dev/null +++ b/nengolib/version.py @@ -0,0 +1,6 @@ +"""Nengo Library version information.""" + +version_info = (0, 1, 0) # (major, minor, patch) +dev = True + +version = "%s%s" % (".".join(map(str, version_info)), "-dev" if dev else "") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7887070 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +nengo>=2.1.0-dev +numpy>=1.10 +scipy>=0.16.0 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..655cf5d --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import imp +import os + +from distutils.core import setup + +root = os.path.dirname(os.path.realpath(__file__)) +version_module = imp.load_source( + 'version', os.path.join(root, 'nengolib', 'version.py')) + +setup( + name="nengolib", + description="Nengo Library", + version=version_module.version, + author="Aaron Voelker", + author_email="arvoelke@gmail.com", + url="https://github.com/arvoelke/nengolib", + packages=['nengolib'], +)