-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
91 lines (80 loc) · 2.94 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#! /usr/bin/env python
import sys
def parse_requirements(req_file):
requirements = open(req_file).read().strip().split("\n")
requirements = [r for r in requirements if not r.startswith("#")]
return [r for r in requirements if "#egg=" not in r]
# take care of extra required modules depending on Python version
extra = {}
try:
from setuptools import setup, find_packages
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"]
# Requirements
requirements = parse_requirements(
"requirements/requirements.txt")
requirements_test = parse_requirements(
"requirements/requirements.test.txt")
requirements_docs = parse_requirements(
"requirements/requirements.docs.txt")
requirements_sc = parse_requirements(
"requirements/requirements.single_cell.txt")
long_description = open("README.md").read()
# setup
setup(
name="ngs_toolkit",
packages=find_packages(),
use_scm_version={
'write_to': 'ngs_toolkit/_version.py',
'write_to_template': '__version__ = "{version}"\n'
},
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=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: "
"GNU General Public License v3 or later (GPLv3+)",
"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",
project_urls={
"Bug Tracker": "https://github.com/afrendeiro/toolkit/issues",
"Documentation": "https://ngs-toolkit.readthedocs.io",
"Source Code": "https://github.com/afrendeiro/toolkit",
},
author=u"Andre Rendeiro",
author_email="[email protected]",
license="GPL3",
setup_requires=['setuptools_scm'],
install_requires=requirements,
tests_require=requirements_test,
extras_require={
"testing": requirements_test,
"docs": requirements_docs,
"single_cell": requirements_sc},
package_data={"ngs_toolkit": ["config/*.yaml", "templates/*.html"]},
data_files=[
"requirements/requirements.txt",
"requirements/requirements.test.txt",
"requirements/requirements.single_cell.txt",
],
**extra
)