-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
100 lines (92 loc) · 2.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
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
100
from setuptools import setup
from setuptools.command.install import install
import sys
import os
import time
import atexit
import traceback
import shutil
class InstallCommand(install):
user_options = install.user_options + [
('modules-dir=', 'm', 'Modules directory'),
('install-defaults=','d','Install default')
]
def initialize_options (self):
install.initialize_options(self)
def finalize_options (self):
install.finalize_options(self)
def run(self):
install.run(self)
def readme ():
try:
with open('README.rst') as f:
return f.read()
except IOError:
return ''
data_files = ['cravat.yml',
'cravat-system.template.yml',
'modules/cravat.yml',
'example_input',
'wincravat.pyw']
for root, dirs, files in os.walk(os.path.join('cravat', 'webviewer')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
for root, dirs, files in os.walk(os.path.join('cravat', 'liftover')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
for root, dirs, files in os.walk(os.path.join('cravat', 'annotator_template')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
for root, dirs, files in os.walk(os.path.join('cravat', 'webresult')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
for root, dirs, files in os.walk(os.path.join('cravat', 'webstore')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
for root, dirs, files in os.walk(os.path.join('cravat', 'websubmit')):
root_files = [os.path.join('..', root, f) for f in files]
data_files.extend(root_files)
setup(
name='open-cravat',
packages=['cravat'],
version='2.9.1',
description='OpenCRAVAT - variant analysis toolkit',
long_description=readme(),
author='Kyle Moad, Kyle Anderson, Madison Larsen, Jeltje van Baren, and Rachel Karchin',
author_email='support@opencravat.org',
url='https://www.opencravat.org',
license='',
package_data={
'cravat': data_files
},
entry_points={
'console_scripts': [
'oc=cravat.oc:main',
]
},
cmdclass={
'install':InstallCommand,
},
install_requires=[
'pyyaml',
'requests',
'requests-toolbelt',
'pyliftover',
'websockets',
'markdown',
'aiohttp<4.0.0',
'chardet>=3.0.4',
'aiosqlite',
'oyaml',
'intervaltree',
'xlsxwriter',
'openpyxl',
'twobitreader',
'nest-asyncio',
'psutil',
'mpmath',
'PyVCF3',
'pandas',
],
python_requires='>=3.9',
)