forked from Epistimio/kleio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
99 lines (81 loc) · 2.55 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Installation script for Kleiṓ."""
from glob import iglob
import os
import sys
from setuptools import setup
import versioneer
isfile = os.path.isfile
pjoin = os.path.join
repo_root = os.path.dirname(os.path.abspath(__file__))
mpath = pjoin(repo_root, 'src')
sys.path.insert(0, mpath)
import kleio.core as kleio # noqa
print(sys.version)
def find_data_files():
"""Find Kleiṓ's configuration and metadata files."""
install_config_path = pjoin(kleio.DIRS.site_data_dir, 'config')
config_path = pjoin('config', '*')
configs = [cfg for cfg in iglob(config_path) if isfile(cfg)]
data_files = [
(install_config_path, configs),
(kleio.DIRS.site_data_dir, ['LICENSE', 'README.rst']),
]
return data_files
tests_require = [
'pytest>=3.0.0'
]
packages = [
'kleio.core',
'kleio.client',
]
setup_args = dict(
name='kleio.core',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description=kleio.__descr__,
long_description=open(os.path.join(repo_root, "README.rst"), 'rt', encoding='utf8').read(),
license=kleio.__license__,
author=kleio.__author__,
author_email=kleio.__author_email__,
url=kleio.__url__,
packages=packages,
package_dir={'': 'src'},
include_package_data=True,
data_files=find_data_files(),
entry_points={
'console_scripts': [
'kleio = kleio.core.cli:main',
],
},
install_requires=['PyYAML', 'pymongo>=3', 'numpy', 'scipy'],
tests_require=tests_require,
setup_requires=['setuptools', 'pytest-runner>=2.0,<3dev'],
extras_require=dict(test=tests_require),
# "Zipped eggs don't play nicely with namespace packaging"
# from https://github.com/pypa/sample-namespace-packages
zip_safe=False
)
setup_args['keywords'] = [
'Machine Learning',
'Deep Learning',
'Distributed',
'Optimization',
]
setup_args['platforms'] = ['Linux']
setup_args['classifiers'] = [
'Development Status :: 1 - Planning',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
] + [('Programming Language :: Python :: %s' % x)
for x in '3 3.4 3.5 3.6'.split()]
if __name__ == '__main__':
setup(**setup_args)