Skip to content

Commit

Permalink
Merge pull request #1 from ebrevdo/setup_py
Browse files Browse the repository at this point in the history
Added setup.py which runs unit tests as necessary.
  • Loading branch information
akleeman committed Nov 25, 2013
2 parents 01591bf + 752d279 commit eb971ee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 18 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python

try:
from setuptools import setup
except:
from distutils.core import setup

setup(name='scidata',
version='0.01',
description='Objects for holding self describing scientific data in python',
author='Alex Kleeman',
author_email='TODO',
install_requires=['scipy >= 0.10.0', 'numpy >= 1.7', 'netCDF4 >= 1.0.6'],
tests_require=['nose >= 1.0'],
url='https://github.com/akleeman/scidata',
test_suite='nose.collector',
packages=['polyglot'],
package_dir={'polyglot': 'src/polyglot'})
Empty file added test/__init__.py
Empty file.
4 changes: 1 addition & 3 deletions test/test_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import polyglot.data as data

import unittest
import os.path
import numpy as np
Expand Down Expand Up @@ -354,4 +352,4 @@ def test_rename(self):
self.assertTrue('dim2' not in renamed.dimensions)

if __name__ == "__main__":
unittest.main()
unittest.main()

0 comments on commit eb971ee

Please sign in to comment.