-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
43 lines (39 loc) · 1.45 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
import setuptools
import codecs
from setuptools.command.install import install
from io import open
import os
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
install_requires = ["numpy", "scipy", "pysam", "pandas", "biopython", "bcbio-gff"]
setuptools.setup(
name='CMSeq',
version=get_version("cmseq/__init__.py"),
author='Moreno Zolfo',
author_email='moreno.zolfo@unitn.it',
url='http://github.com/SegataLab/cmseq/',
license = 'LICENSE.txt',
packages=setuptools.find_packages(),
entry_points={
'console_scripts': [
'breadth_depth.py = cmseq.breadth_depth:bd_from_file',
'consensus.py = cmseq.consensus:consensus_from_file',
'consensus_aDNA.py = cmseq.consensus_aDNA:consensus_from_file',
'polymut.py = cmseq.polymut:polymut_from_file',
'poly.py = cmseq.poly:poly_from_file'
]
},
long_description_content_type='text/markdown',
long_description=open('README.md').read(),
description='Set of utilities on sequences and BAM files',
install_requires=install_requires
)