Skip to content

Commit

Permalink
cleaning and updating setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 24, 2017
1 parent b8e81a7 commit 5994544
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ addons:
install:
- install/nest.sh 2.14.0
- install/neuron.sh tag-1665alpha
- pip install git+https://github.com/tclose/nineml-python.git
- pip install git+https://github.com/tclose/nineml-catalog.git
- pip install git+https://github.com/tclose/Diophantine.git
- pip install -r requirements.txt
- pip install -e .[plot]
- pip install coveralls
script:
- nosetests test/unittests --with-coverage --cover-package=pype9
Expand Down
3 changes: 1 addition & 2 deletions pype9/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@

# Import mpi4py here so it is always imported before Neuron, as otherwise
# Neuron can throw an error
from .version import __version__
from .utils.mpi import mpi_comm

__version__ = "0.1"
1 change: 1 addition & 0 deletions pype9/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.2'
9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# To build libninemlnrn shared library for random number generation in generated
# NMODL code
[build_ext]
# Although these are typically searched on most systems they may not be on
# macOS and useful as a placeholder example for non-standard locations
include_dirs=/usr/local/include
library_dirs=/usr/local/lib
[bdist_wheel]
universal=1
35 changes: 28 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
from setuptools import find_packages # @UnresolvedImport
from distutils.core import setup

Expand All @@ -18,10 +18,13 @@
# Filter unittests from packages
packages = [p for p in find_packages() if not p.startswith('test.')]

sys.path.insert(0, package_dir)
from version import __version__ # @IgnorePep8 @UnresolvedImport
sys.path.pop(0)

setup(
name="pype9",
version="0.2",
name=package_name,
version=__version__,
package_data={package_name: package_data},
scripts=[os.path.join('scripts', 'pype9')],
packages=packages,
Expand All @@ -31,16 +34,15 @@
"neuron and neuron network 9ML (http://nineml.net) models "
"and simulate them using well-established simulator backends,"
" NEURON and NEST."),
long_description=open(os.path.join(os.path.dirname(__file__),
"README.rst")).read(),
long_description=open("README.rst").read(),
license="MIT",
keywords=("NineML pipeline computational neuroscience modeling "
"interoperability XML YAML JSON HDF5 9ML neuron nest"),
url="http://readthedocs.io/pype9",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
Expand All @@ -49,4 +51,23 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering'])
'Topic :: Scientific/Engineering'],
install_requires=[
'sympy>=1.1',
'Jinja2>=2.6',
'docutils>=0.10',
'mock>=1.0',
'numpy>=1.5',
'quantities>=0.11.1',
'neo>=0.5.1',
'mpi4py>=1.3.1',
'pyNN>=0.9.1',
'diophantine>=0.2.0',
'PyYAML>=3.11',
'h5py>=2.7.0',
'future>=0.16'],
extra_requires={
'plot': 'matplotlib>=2.0'},
test_requires=['nose'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4'
)

0 comments on commit 5994544

Please sign in to comment.