Skip to content

Commit eb971ee

Browse files
committed
Merge pull request #1 from ebrevdo/setup_py
Added setup.py which runs unit tests as necessary.
2 parents 01591bf + 752d279 commit eb971ee

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

setup.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python
2+
3+
try:
4+
from setuptools import setup
5+
except:
6+
from distutils.core import setup
7+
8+
setup(name='scidata',
9+
version='0.01',
10+
description='Objects for holding self describing scientific data in python',
11+
author='Alex Kleeman',
12+
author_email='TODO',
13+
install_requires=['scipy >= 0.10.0', 'numpy >= 1.7', 'netCDF4 >= 1.0.6'],
14+
tests_require=['nose >= 1.0'],
15+
url='https://github.com/akleeman/scidata',
16+
test_suite='nose.collector',
17+
packages=['polyglot'],
18+
package_dir={'polyglot': 'src/polyglot'})

test/__init__.py

Whitespace-only changes.

test/test_data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import polyglot.data as data
2-
31
import unittest
42
import os.path
53
import numpy as np
@@ -354,4 +352,4 @@ def test_rename(self):
354352
self.assertTrue('dim2' not in renamed.dimensions)
355353

356354
if __name__ == "__main__":
357-
unittest.main()
355+
unittest.main()

0 commit comments

Comments
 (0)