-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·95 lines (83 loc) · 2.55 KB
/
setup.py
File metadata and controls
executable file
·95 lines (83 loc) · 2.55 KB
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
"""setup.py"""
# -*- coding: utf-8 -*-
import os
import re
import sys
if sys.version_info[0] == 2:
requirements_file = 'requirements.txt'
elif sys.version_info[0] ==3 :
requirements_file = 'requirements_py3.txt'
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
with open(requirements_file) as f:
requirements = f.read().splitlines()
version_file = os.path.join('moca', 'version.py')
fversion = None
metadata = None
with open(version_file, 'r') as f:
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", f.read()))
assert metadata is not None
fversion = metadata['version'].split('.')
test_requirements = ['pytest', 'pytest-cov', 'pytest-mpl']
MAJOR = fversion[0]
MINOR = fversion[1]
MICRO = fversion[2]
ISRELEASED = False
VERSION = '%s.%s.%s' % (MAJOR, MINOR, MICRO)
setup(
name='moca',
version=VERSION,
use_2to3=True,
description="Tool for motif conservation analysis",
long_description=readme + '\n\n' + history,
author="Saket Choudhary",
author_email='saketkc@gmail.com',
url='https://github.com/saketkc/moca',
packages=[
'moca',
'moca.helpers',
'moca.bedoperations',
'moca.wigoperations',
'moca.pipeline',
'moca.plotter',
'scripts'
],
package_dir={'moca':
'moca'},
include_package_data=True,
package_data={
'application' : ['application.cfg.example', 'environment.yml']
},
install_requires=requirements,
license="ISC",
zip_safe=False,
keywords='moca',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Visualization',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
],
test_suite='nose2.collector.collector',
tests_require=test_requirements,
entry_points = '''
[console_scripts]
moca=scripts.mocacli:cli
''',
)