forked from stephensolis/kameris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
97 lines (87 loc) · 2.9 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
import os
import platform
from setuptools import setup, find_packages
from kameris import __version__
from kameris.utils.platform_utils import platform_name
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def get_tag(self):
if platform.system() == 'Windows':
platform_tag = 'win_amd64'
elif platform.system() == 'Linux':
platform_tag = 'manylinux1_x86_64'
elif platform.system() == 'Darwin':
platform_tag = 'macosx_10_6_intel'
return 'py2.py3', 'none', platform_tag
except ImportError:
bdist_wheel = None
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
long_description = readme.read()
setup(
name='kameris',
version=__version__,
description=('A fast, user-friendly analysis and evaluation pipeline '
'for some DNA sequence classification tasks.'),
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/stephensolis/kameris/',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Bio-Informatics'
],
author='Stephen',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_data={
'kameris': [
'schemas/*',
'scripts/make_plots.wls',
'scripts/generation_cgr_' + platform_name() + '_*',
'scripts/generation_dists_' + platform_name() + '_*'
]
},
entry_points={
'console_scripts': [
'kameris = kameris.__main__:main'
]
},
install_requires=[
'appdirs',
'backports.tempfile',
'jsonschema',
'kameris-formats',
'numpy',
'requests>=2.18.0',
'ruamel.yaml',
'psutil',
# it's necessary to freeze scikit-learn since models are neither
# forward nor backward-compatible
# kameris classify will warn if the current scikit-learn
# version doesn't match the version at train time
'scikit-learn==0.19.1',
'scipy',
'six',
'stopit',
'tabulate',
'tqdm',
'watchtower',
'x86cpu'
],
cmdclass={
'bdist_wheel': bdist_wheel
}
)