forked from afrendeiro/toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (62 loc) · 2.21 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
#! /usr/bin/env python
import sys
import os
import glob
# take care of extra required modules depending on Python version
extra = {}
try:
from setuptools import setup
if sys.version_info < (2, 7):
extra['install_requires'] = ['argparse']
if sys.version_info >= (3,):
extra['use_2to3'] = True
except ImportError:
from distutils.core import setup
if sys.version_info < (2, 7):
extra['dependencies'] = ['argparse']
with open(os.path.join("ngs_toolkit", "_version.py"), 'r') as handle:
version = handle.readline().split()[-1].strip("\"'\n")
requirements = open("requirements.txt").read().strip().split("\n")
requirements = [r for r in requirements if not r.startswith("#")]
requirements = [r for r in requirements if "#egg=" not in r]
# dependencies = list()
# for i, r in enumerate(requirements):
# if "#egg=" in r:
# n = r[r.index('#egg=') + 5:]
# v = r[r.index('/v') + 1:r.index('#egg=')]
# requirements[i] = n
# dependencies.append(
# 'https://github.com/epigen/looper/tarball/{v}#egg={n}-{v}'.format(n=n, v=v))
# recipes
recipes = list(map(
os.path.abspath,
glob.glob(os.path.join(os.path.curdir, "ngs_toolkit", "recipes", "*.py"))))
# setup
setup(
name="ngs_toolkit",
packages=["ngs_toolkit"],
version=version,
entry_points={
"console_scripts": [
'projectmanager = ngs_toolkit.project_manager:main',
'trackmanager = ngs_toolkit.track_manager:main'
],
},
description="A toolkit for NGS analysis with Python.",
long_description=open('README.md').read(),
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
keywords="bioinformatics, sequencing, ngs, ngs analysis, ATAC-Seq, ChIP-seq, RNA-seq, project management",
url="https://github.com/afrendeiro/toolkit",
author=u"Andre Rendeiro",
author_email = 'afrendeiro@gmail.com',
license="GPL3",
install_requires=requirements,
scripts=recipes,
# dependency_links=dependencies,
**extra
)