forked from innovate-invent/ProDuSe2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (38 loc) · 1.13 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
#! /usr/bin/env python
from setuptools import setup
import re
import sys
# Check the python version, and ensure it is supported
pythonVer = ".".join(list(str(x) for x in sys.version_info[0:2]))
if float(pythonVer) < 3.4:
sys.stderr.write("ERROR: Python 3.4 or newer is required to install and run ProDuSe\n")
exit(1)
# Imports version number
VERSIONFILE = "ProDuSe/__version.py"
verstrline = open(VERSIONFILE, "rt").read()
verRegex = r"^__version__ = ['\"]([^'\"]*)['\"]"
currentVer = re.search(verRegex, verstrline, re.M)
if currentVer:
version = currentVer.group(1)
else:
version = "Unknown"
setup(
name="ProDuSe",
version=version,
description="Variant caller for semi-degenerate barcoded adapter libraries",
author="Nolan",
author_email="[email protected]",
maintainer="Christopher Rushton",
maintainer_email="[email protected]",
packages=["ProDuSe"],
python_requires=">3.4",
install_requires=[
"pysam",
"sortedcontainers",
"networkx",
"configutator",
"clipoverlap",
"CigarIterator"],
license="GNU GPLv3",
scripts=["bin/produse"]
)