forked from atavory/ibex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
80 lines (66 loc) · 1.97 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
75
76
77
78
79
80
import os
import sys
from setuptools import setup, Command
import subprocess
_py2 = sys.version_info[0] < 3
class _TestCommand(Command):
user_options = [
]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
run_str = "%s -m unittest discover test *test.py" % ('python' if _py2 else 'python3')
level = os.getenv('IBEX_TEST_LEVEL')
subprocess.check_call(
run_str.split(' '),
env={'IBEX_TEST_LEVEL': level if level is not None else '1'})
class _DocumentCommand(Command):
user_options = [
]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
# Tmp Ami
# run_str = "make html spelling lint"
run_str = "make html spelling"
subprocess.check_call(run_str.split(' '), cwd='docs')
setup(
name='ibex',
version='0.1.0',
author='Ami Tavory, Shahar Azulay, Tali Raveh-Sadka',
author_email='atavory at gmail',
url='https://github.com/atavory/ibex',
packages=[
'ibex',
'ibex.sklearn',
],
license='bsd',
description='Tmp Ami',
long_description=open('README.rst').read(),
install_requires=['six', 'numpy', 'scipy', 'sklearn', 'pandas'],
zip_safe=False,
package_data={
'ibex': ['_metadata/*txt']
},
include_package_data=True,
cmdclass={
'document': _DocumentCommand,
'test': _TestCommand,
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
],
)