forked from ExpressionAnalysis/STAR-SEQR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (58 loc) · 2.41 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages, Extension
from io import open
from sys import stderr
def get_version(string):
""" Parse the version number variable __version__ from a script. """
import re
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
version_str = re.search(version_re, string, re.M).group(1)
return version_str
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
su_tests = package_files('starseqr_utils/tests')
libssw_ext = Extension('_libssw_ext', sources=['ssw/src/ssw.c'], include_dirs=['ssw/src/'])
setup(
name='starseqr',
version=get_version(open('starseqr_utils/__init__.py', encoding='utf-8').read()),
description='RNA-Fusion Calling with STAR',
long_description=open('README.rst', encoding='utf-8').read(),
license='Custom',
author='Jeff Jasper',
author_email='[email protected]',
url='https://github.com/ExpressionAnalysis/STAR-SEQR',
packages=find_packages(),
install_requires=['cython', 'six', 'networkx==2.0', 'pandas >= 0.18.0', 'pysam >= 0.9.0', 'primer3-py', 'intervaltree_bio'],
ext_modules=[libssw_ext],
package_data={"starseqr_utils": ["resources/*"], '': su_tests},
scripts=['starseqr.py'],
zip_safe=False,
test_suite='nose.collector',
tests_require=['nose'],
keywords=['rna', 'rna-seq', 'fusions', 'chimeric', 'star'],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Environment :: Console",
"License :: Other/Proprietary License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
)
stderr.write("Installation was successful!\n")