-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
74 lines (61 loc) · 2.28 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
# Always prefer setuptools over distutils
from setuptools import setup, find_namespace_packages
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Extract version from cbsodata.py
for line in open(path.join("asreviewcontrib", "hyperopt", "__init__.py")):
if line.startswith('__version__'):
exec(line)
break
DEPS = {
'mpi': ['mpi4py'],
}
DEPS['all'] = DEPS['mpi']
setup(
name='asreview-hyperopt',
version=__version__, # noqa
description='Hyper parameter optimization extension for ASReview',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/asreview/asreview-hyperopt',
author='Utrecht University',
author_email='[email protected]',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Pick your license as you wish
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='asreview plot hyperopt optimization',
packages=find_namespace_packages(include=['asreviewcontrib.*']),
namespace_package=["asreview"],
install_requires=[
"asreview>=0.7.0", "numpy", "tqdm", "hyperopt", "sklearn",
],
extras_require=DEPS,
entry_points={
"asreview.entry_points": [
"hyper-active = asreviewcontrib.hyperopt:HyperActiveEntryPoint",
"hyper-passive = asreviewcontrib.hyperopt:HyperPassiveEntryPoint", #noqa
"hyper-cluster = asreviewcontrib.hyperopt:HyperClusterEntryPoint", #noqa
"show = asreviewcontrib.hyperopt:ShowTrialsEntryPoint",
"create-config = asreviewcontrib.hyperopt:CreateConfigEntryPoint", #noqa
]
},
project_urls={
'Bug Reports':
"https://github.com/asreview/asreview-hyperopt/issues",
'Source':
"https://github.com/asreview/asreview-hyperopt",
},
)