-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
101 lines (89 loc) · 3.25 KB
/
setup.py
File metadata and controls
101 lines (89 loc) · 3.25 KB
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
101
#!/usr/bin/env python
import sys
if sys.version_info > (3, ) and sys.version_info < (3, 7):
sys.exit("ERROR: HaplotagLR requires Python 3.7 or greater")
#from __future__ import absolute_import
#from __future__ import print_function
from glob import glob
from os.path import basename, splitext
from pathlib import Path
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
def readme():
if sys.version_info > (3, ):
with open(Path(__file__).parent.resolve() / 'README.md', encoding='utf-8') as md:
return md.read()
else:
with open('README.md') as md:
return md.read()
def main():
metadata = dict(
name = 'HaplotagLR',
version = '1.1.13',
license = 'MIT',
description = 'Phasing individual long reads using known haplotype information.',
description_content_type = 'text/plain',
long_description = readme(),
long_description_content_type = 'text/markdown',
author = 'Greg Farnum',
author_email = 'gregfar@umich.edu',
url = 'https://github.com/Boyle-Lab/HaplotagLR.git',
packages = find_packages('src'),
package_dir = {'':'src'},
py_modules = [splitext(basename(path))[0] for path in glob('src/HaplotagLR/*.py')],
include_package_data = True,
zip_safe = False,
classifiers = [
# complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Operating System :: Microsoft',
'Operating System :: MacOS',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Documentation',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Version Control :: Git'
],
project_urls = {
'Issue Tracker':'https://github.com/Boyle-Lab/HaplotagLR/issues',
},
keywords = [
'long-reads', 'phasing', 'haplotype',
],
python_requires = '>=3.7',
install_requires = [
'pysam>=0.16.0.1',
'biopython>=1.78',
'pyliftover>=0.4',
'powerlaw>=1.4.6',
'numpy>=1.20.1',
'requests>=2.26.0'
],
extras_require = {
'mappy':['mappy'],
},
setup_requires=[
'pytest-runner',
],
entry_points = {
'console_scripts':[
'HaplotagLR = HaplotagLR.cli:main',
]
}
)
setup(**metadata)
if __name__ == "__main__":
main()