-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·55 lines (45 loc) · 1.92 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/python
from setuptools import setup
import distutils.cmd
import sys, os, subprocess, traceback, re
def get_version():
return '0.0.6'
def main():
setup(name='varsens',
version=get_version(),
description='Python Variance Based Sensitivity Analysis',
long_description='This package is to provide in Python a model '
'independent method of doing Variance Based '
'Sensitivity Analysis via the method of Saltelli.',
author='Shawn Garbett',
author_email='[email protected]',
url='http://github.com/LoLab-VU/varsens',
packages=['varsens'],
cmdclass={'test': Test},
keywords=['sensitivity', 'mathematics', 'engineering'],
classifiers=['Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: CC Attribution-NonCommercial 3.0 Unported',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Statistics'
]
)
class Test(distutils.cmd.Command):
description = "run tests (requires nose)"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import nose
excludes = [r'^examples$', r'^deprecated$']
config = nose.config.Config(exclude=map(re.compile, excludes),
plugins=nose.plugins.manager.DefaultPluginManager(),
env=os.environ)
nose.run(defaultTest='varsens', config=config, argv=['', '--with-doctest'])
if __name__ == '__main__':
main()