forked from galaxyproject/planemo
/
setup.py
112 lines (101 loc) · 3.46 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
112
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')
requirements = [
'Click',
'six',
'pyyaml',
'jinja2',
'docutils',
'PyGithub',
'bioblend',
'glob2',
]
# Latest stable bioblend does not support Python 3, setup dev dependency.
dependency_links = []
if sys.version_info[0] != 2:
dependency_links = ['git://github.com/galaxyproject/bioblend#egg=bioblend']
test_requirements = [
# TODO: put package test requirements here
]
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('planemo/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='planemo',
version=version,
description='Command-line utilities to assist in building tools for the Galaxy project (http://galaxyproject.org/).',
long_description=readme + '\n\n' + history,
author='Galaxy Project and Community',
author_email='jmchilton@gmail.com',
url='https://github.com/galaxyproject/planemo',
packages=[
'planemo',
'planemo.commands',
'planemo.galaxy_test',
'planemo.linters',
'planemo.reports',
'planemo.shed',
'planemo.shed2tap',
'planemo.xml',
'planemo_ext',
'planemo_ext.galaxy',
'planemo_ext.galaxy.eggs',
'planemo_ext.galaxy.tools',
'planemo_ext.galaxy.tools.linters',
'planemo_ext.galaxy.tools.deps',
'planemo_ext.galaxy.tools.deps.resolvers',
'planemo_ext.galaxy.util',
],
entry_points='''
[console_scripts]
planemo=planemo.cli:planemo
''',
package_data={'planemo_ext': ['galaxy/util/docutils_template.txt',
'tool_factory_2/rgToolFactory2.xml',
'tool_factory_2/rgToolFactory2.py',
'tool_factory_2/getlocalrpackages.py',
],
'planemo': ['xml/xsd/repository_dependencies.xsd',
'xml/xsd/tool_dependencies.xsd',
'xml/xsd/tool/galaxy.xsd',
'xml/xsd/tool/citation.xsd',
'xml/xsd/tool/citations.xsd',
'reports/*',
'scripts/*',
],
},
package_dir={'planemo': 'planemo',
'planemo_ext': 'planemo_ext'},
include_package_data=True,
install_requires=requirements,
dependency_links=dependency_links,
license="AFL",
zip_safe=False,
keywords='planemo',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: Academic Free License (AFL)',
'Operating System :: POSIX',
'Topic :: Software Development',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Testing',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
test_suite='tests',
tests_require=test_requirements
)