forked from worstcase/blockade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (58 loc) · 1.89 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
#!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages
VERSION_PY = os.path.join(os.path.dirname(__file__), "blockade/version.py")
# this execs blockade/version.py on it's own and brings __version__ into this
# package. Ugliness is to support both Python 2 and 3.
__version__ = None
with open(VERSION_PY) as f:
code = compile(f.read(), VERSION_PY, "exec")
exec(code)
assert __version__, "Failed to get version from %s" % (VERSION_PY)
PYTHON26 = sys.version_info < (2, 7)
with open("requirements.txt") as fh:
requires = fh.readlines()
if PYTHON26:
requires.append("argparse")
with open("test-requirements.txt") as fh:
tests_require = requires + fh.readlines()
if PYTHON26:
tests_require.append("unittest2")
with open('README.rst') as f:
readme = f.read()
with open('CHANGES.rst') as f:
changes = f.read()
setup(
name='blockade',
version=__version__,
description='Blockade: network fault testing with Docker',
long_description=readme + '\n\n' + changes + '\n\n',
author='David LaBissoniere',
author_email='[email protected]',
url="https://github.com/worstcase/blockade",
packages=find_packages(),
include_package_data=True,
install_requires=requires,
tests_require=tests_require,
extras_require={
'test': tests_require,
},
entry_points={
'console_scripts': [
'blockade=blockade.cli:main'
]
},
zip_safe=False,
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3'
),
)