generated from populationgenomics/cpg-python-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (50 loc) · 1.89 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
"""
automated installation instructions
"""
from setuptools import find_packages, setup
with open('README.md', encoding='utf-8') as handle:
readme = handle.read()
def read_reqs(filename: str) -> list[str]:
"""
Read requirements from a file, return as a list
Args:
filename (str): the requirements file to parse
Returns:
list[str]: the requirements
"""
with open(filename, encoding='utf-8') as filehandler:
return [line.strip() for line in filehandler if line.strip() and not line.startswith('#')]
setup(
name='clinvarbitration',
description='CPG ClinVar Re-interpretation',
long_description=readme,
version='1.4.0',
author='Matthew Welland, CPG',
author_email='[email protected], [email protected]',
url='https://github.com/populationgenomics/ClinvArbitration',
license='MIT',
classifiers=[
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
packages=find_packages(),
include_package_data=True,
install_requires=read_reqs('requirements.txt'),
extras_require={'test': read_reqs('requirements-dev.txt')},
entry_points={
'console_scripts': [
# Step 1; re-summarise ClinVar using altered conflict resolution
'resummary = clinvarbitration.resummarise_clinvar:cli_main',
# Step 2, post-annotation; obtain PM5 annotations from VEP annotated clinvar
'pm5_table = clinvarbitration.clinvar_by_codon:cli_main',
],
},
)