-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
55 lines (50 loc) · 1.69 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
import os
import sys
import re
import setuptools
from setuptools import setup
#Requires minimum python 3.2
if sys.version_info[0] > 3 or (sys.version_info[0] == 3 and sys.version_info[1] >= 2):
pass
else:
sys.exit("ERROR: UROPA install requires python>=3.2")
#Path of setup file to establish version
setupdir = os.path.abspath(os.path.dirname(__file__))
def find_version(init_file):
version_file = open(init_file).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
def readme():
with open('README.md') as f:
return f.read()
setup(name='uropa',
version=find_version(os.path.join(setupdir, "uropa", "__init__.py")),
description='UROPA is a command line based tool, intended for genomic region annotation',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.molgen.mpg.de/loosolab/UROPA',
author='Jens Preussner',
author_email='jens.preussner@mpi-bn.mpg.de',
license='MIT',
packages=['uropa'],
entry_points = {
'console_scripts': ['uropa = uropa.uropa:main']
},
scripts = ['utils/uropa_summary.R','utils/uropa2gtf.R'],
python_requires='>=3.2',
install_requires=[
'pysam',
'psutil',
'numpy'
],
classifiers = [
'License :: OSI Approved :: MIT License',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Programming Language :: Python '
],
zip_safe=False,
include_package_data=True)