-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
executable file
·111 lines (95 loc) · 2.82 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python
"""Computational pipeline for analysis of iCLIP data.
See:
https://github.com/tomazc/iCount
"""
from os import path
# Use codecs' open for a consistent encoding
from codecs import open
from setuptools import setup, find_packages
# base_dir = path.abspath(path.dirname(__file__))
base_dir = path.dirname(path.realpath(__file__))
# Get the long description from the README file
# with open(path.join(base_dir, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()
try:
import pypandoc
LONG_DESC = pypandoc.convert_file('README.md', 'rst')
LONG_DESC = LONG_DESC.replace('\r', '')
except(IOError, ImportError):
with open(path.join(base_dir, 'README.md'), encoding='utf-8') as f:
LONG_DESC = f.read()
# Skip header with badges
LONG_DESC = LONG_DESC.split('\n')[8:]
LONG_DESC = '\n'.join(LONG_DESC)
# Get package metadata from 'iCount/__about__.py' file
about = {}
with open(path.join(base_dir, 'iCount', '__about__.py'), encoding='utf-8') as f:
exec(f.read(), about)
setup(
name=about['__title__'],
version=about['__version__'],
description=about['__summary__'],
long_description=LONG_DESC,
url=about['__url__'],
author=about['__author__'],
author_email=about['__email__'],
license=about['__license__'],
# exclude tests from built/installed package
packages=find_packages(exclude=['*.tests', '*.tests.*', 'docs/presentations',
'docs/presentations/*']),
package_data={
'iCount': [
'examples/*.sh',
]
},
install_requires=[
'numpy',
'pandas',
'cutadapt>=1.10',
'pysam',
'pybedtools',
'numpydoc',
'sphinx>=1.4, <1.8',
'matplotlib',
],
extras_require={
'docs': [
'docutils',
'releases',
'sphinx_rtd_theme',
],
'package': [
'pypandoc',
'twine',
'wheel',
],
'test': [
'tox',
'check-manifest',
'pylint>=1.6.4',
'pycodestyle>=2.1.0',
'pydocstyle>=1.0.0',
'pytest-cov',
'readme_renderer',
'coverage>=4.2',
],
},
entry_points={
'console_scripts': [
'iCount = iCount.cli:main',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='iCLIP protein-RNA',
)