forked from Clinical-Genomics/scout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (49 loc) · 1.71 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
# -*- coding: utf-8 -*-
import codecs
from setuptools import setup, find_packages
def parse_reqs(req_path='./requirements.txt'):
"""Recursively parse requirements from nested pip files."""
install_requires = []
with codecs.open(req_path, 'r') as handle:
# remove comments and empty lines
lines = (line.strip() for line in handle
if line.strip() and not line.startswith('#'))
for line in lines:
# check for nested requirements files
if line.startswith('-r'):
# recursively call this function
install_requires += parse_reqs(req_path=line[3:])
else:
# add the line as a new requirement
install_requires.append(line)
return install_requires
setup(
name='scout-browser',
version='3.5.2',
url='https://github.com/Clinical-Genomics/scout',
description='Clinical DNA variant visualizer and browser.',
author='Robin Andeer',
author_email='[email protected]',
packages=find_packages(exclude=['tests/', 'scripts/']),
include_package_data=True,
zip_safe=False,
install_requires=parse_reqs(),
extras_require=dict(
coverage=['chanjo-report'],
),
entry_points=dict(
console_scripts=[
'scout = scout.commands:cli',
]
),
test_suite='tests',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries'
]
)