forked from neurodebian/testkraut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (67 loc) · 2.66 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the testkraut package for the
# copyright and license terms.
#
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
""""""
import os
import sys
from os.path import join as opj
import testkraut
from distutils.core import setup
from glob import glob
__docformat__ = 'restructuredtext'
extra_setuptools_args = {}
if 'setuptools' in sys.modules:
extra_setuptools_args = dict(
tests_require=['nose'],
test_suite='nose.collector',
zip_safe=False,
extras_require = dict(
doc='Sphinx>=0.3',
test='nose>=0.10.1')
)
test_library_files = []
for test in glob(opj('testkraut', 'library', '*')):
if not os.path.isdir(test):
continue
for f in glob(opj(test, '*')):
if not os.path.isfile(f):
continue
test_library_files.append(f[10:])
def main(**extra_args):
setup(name = 'testkraut',
version = testkraut.__version__,
author = 'Michael Hanke and the testkraut developers',
author_email = 'michael.hanke@gmail.com',
license = 'MIT License',
url = 'https://github.com/neurodebian/testkraut',
download_url = 'https://github.com/neurodebian/testkraut/tags',
description = 'test and evaluate heterogeneous data processing pipelines',
long_description = open('README.rst').read(),
classifiers = ["Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering"],
platforms = "OS Independent",
provides = ['testkraut'],
# please maintain alphanumeric order
packages = [ 'testkraut',
'testkraut.cmdline',
'testkraut.evaluators',
'testkraut.external',
'testkraut.tests',
],
package_data = {
'testkraut': test_library_files + ['testkraut.cfg']
},
scripts = glob(os.path.join('bin', '*'))
)
if __name__ == "__main__":
main(**extra_setuptools_args)