-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
70 lines (59 loc) · 1.86 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from pkg_resources import DistributionNotFound, get_distribution
from setuptools import setup, find_packages
def get_dist(pkgname):
try:
return get_distribution(pkgname)
except DistributionNotFound:
return None
requirements = [
'Click==7.0',
'scipy==1.3.2',
'pandas==0.25.3',
'h5py==2.10.0',
'numpy<1.17,>=1.14.5',
'scikit-learn==0.21.3',
'matplotlib>=3.0.0,<3.2.0',
'tensorflow<=1.15.0',
'tqdm==4.39.0']
if get_dist('tensorflow') is None and get_dist('tensorflow-gpu') is not None:
requirements.remove('tensorflow<=1.15.0')
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
setup_requirements = [ ]
test_requirements = [ ]
setup(
author="Harald Sager Vohringer",
author_email='[email protected]',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6'
],
description="Tensorframework for mutational signature analysis.",
entry_points={
'console_scripts': [
'tensorsignatures=tensorsignatures.cli:main'
],
},
package_data={'tensorsignatures': ['data/*']},
install_requires=requirements,
license="MIT license",
long_description=readme + '\n\n' + history,
include_package_data=True,
keywords='tensorsignatures',
name='tensorsignatures',
packages=find_packages(include=['tensorsignatures']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/sagar87/tensorsignatures',
version='0.5.0',
zip_safe=False,
)