-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
67 lines (59 loc) · 1.71 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import glob
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme = open('README.rst').read()
requirements = [
'Click>=6.7',
'bioblend==0.16.0',
'wrapt',
'pyyaml',
'justbackoff',
'xunit-wrapper>=0.12',
'future',
]
test_requirements = [
# TODO: put package test requirements here
]
# Update it in parsec/__init__.py
version = None
with open('parsec/__init__.py', 'r') as handle:
versline = [x for x in handle.readlines() if 'version' in x][0].strip()
_, vers = versline.split(' = ')
version = vers.strip("'")
subpackages = [x.replace('/', '.') for x in glob.glob('parsec/commands/*') if not x.endswith('.py')]
setup(
name='galaxy-parsec',
version=version,
description='Command-line utilities to assist in interacting with Galaxy servers (http://galaxyproject.org/).',
long_description=readme,
author='Galaxy Project and Community',
author_email='[email protected]',
url='https://github.com/galaxy-iuc/parsec',
packages=[
'parsec',
'parsec.commands',
] + subpackages,
entry_points='''
[console_scripts]
parsec=parsec.cli:parsec
''',
package_dir={'parsec': 'parsec'},
install_requires=requirements,
license="AFL",
keywords='parsec',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
],
test_suite='tests',
tests_require=test_requirements
)