Skip to content

Commit

Permalink
Added support for testing after installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkottke committed Sep 29, 2015
1 parent a74f118 commit 4794e1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions pyrvt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@
__version__ = get_versions()['version']
del get_versions

def test(level=1, verbosity=1):
"""Load the numpy tester."""
from numpy.testing import Tester
return Tester().test(level, verbosity)

from numpy.testing import Tester
test = Tester().test
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import versioneer

config = dict(
name='pyRVT',
name='pyrvt',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Seismologic Random Vibration Theory',
Expand All @@ -18,9 +18,9 @@
'rvt_operator = pyrvt.runner:main',
],
},
packages=['pyrvt'],
packages=['pyrvt', 'pyrvt.tests'],
package_data={
'pyrvt': ['data/*'],
'pyrvt': ['data/*', 'tests/data/*'],
},
requires=[
'matplotlib',
Expand Down

0 comments on commit 4794e1a

Please sign in to comment.