forked from oicr-gsi/djerba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·88 lines (82 loc) · 2.65 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
#! /usr/bin/env python3
"""
Setup script for Djerba
"""
from setuptools import setup, find_packages
with open('src/lib/djerba/version.py') as version_file:
exec(version_file.read()) # sets __version__
package_root = 'src/lib'
# list of wildcards, intended to capture ancillary files for plugins/helpers/mergers
# TODO make this neater and/or introduce stronger naming conventions
install_wildcards = [
'*.json',
'*.html',
'*.txt',
'*.r',
'*.R',
'data/*',
'html/*',
'resources/*',
'R/*',
'Rscripts/*'
]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='djerba',
version=__version__,
scripts=[
'src/bin/djerba.py',
'src/bin/generate_ini.py',
'src/bin/validate_plugin_json.py'
],
packages=find_packages(where=package_root),
package_dir={'' : package_root},
package_data={
'djerba': [
'data/20200818-oncoKBcancerGeneList.tsv',
'data/blurb_template.txt',
'data/hgnc_complete_set.txt',
'data/cosmic_census_20161115.tsv',
'data/HUGO_synonyms_171213.txt',
'data/dataset.xml',
'data/ensembl_conversion_hg38.txt',
],
'djerba.core': install_wildcards,
'djerba.helpers.file_helper': install_wildcards,
'djerba.helpers.sample_helper': install_wildcards,
'djerba.plugins.summary': install_wildcards,
'djerba.plugins.pancurx.all_genes': install_wildcards,
'djerba.plugins.pancurx.blurb': install_wildcards,
'djerba.plugins.pancurx.germline': install_wildcards,
'djerba.plugins.pancurx.slide': install_wildcards,
'djerba.plugins.pancurx.summary': install_wildcards,
'djerba.plugins.pancurx.appendix': install_wildcards,
'djerba.plugins.pancurx.classification': install_wildcards,
'djerba.plugins.pancurx.fusions': install_wildcards,
'djerba.plugins.pancurx.somatic': install_wildcards,
'djerba.plugins.pancurx': install_wildcards,
},
install_requires=[
'configparse',
'email_validator',
'jsonschema',
'mako',
'markdown',
'pandas',
'pdfkit',
'pyinstaller',
'PyPDF2',
'requests',
'statsmodels',
],
python_requires='>=3.10.6',
author="Iain Bancarz",
author_email="ibancarz [at] oicr [dot] on [dot] ca",
description="Create reports from metadata and workflow output",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/oicr-gsi/djerba",
keywords=['cancer', 'bioinformatics'],
license='GPL 3.0',
)