-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (50 loc) · 1.64 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
import sys
from distutils.core import setup
def get_version(filename):
import ast
version = None
with open(filename) as f:
for line in f:
if line.startswith('__version__'):
version = ast.parse(line).body[0].value.s
break
else:
raise ValueError('No version found in %r.' % filename)
if version is None:
raise ValueError(filename)
return version
if sys.version_info < (3, 5):
msg = 'run-batch works with Python 3.5 and later.\nDetected %s.' % str(sys.version)
sys.exit(msg)
lib_version = get_version(filename='brun/__init__.py')
setup(
name='brun',
packages=[
'brun',
'brun.generators',
'brun.combinators',
'brun.utils',
],
version=lib_version,
license='MIT',
description='Utility used to run parameterized shell commands',
author='Andrea F. Daniele',
author_email='[email protected]',
url='https://github.com/afdaniele/',
download_url='https://github.com/afdaniele/run-batch/tarball/{}'.format(lib_version),
zip_safe=False,
include_package_data=True,
keywords=['batch', 'parameterized', 'commands', 'shell'],
install_requires=['networkx'],
scripts=['brun/brun'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)