forked from rackspace/runway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (88 loc) · 3.2 KB
/
setup.py
File metadata and controls
97 lines (88 loc) · 3.2 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
96
97
"""Packaging settings."""
from codecs import open as codecs_open
from os.path import abspath, dirname, join
from sys import version_info
from setuptools import find_packages, setup
from runway import __version__
THIS_DIR = abspath(dirname(__file__))
with codecs_open(join(THIS_DIR, 'README.rst'), encoding='utf-8') as readfile:
LONG_DESCRIPTION = readfile.read()
INSTALL_REQUIRES = [
'Send2Trash',
'awacs', # for embedded hooks
# awscli version pinned to match stacker botocore pinning
'awscli<1.16.0', # for embedded hooks
'docopt',
'flake8',
'flake8-docstrings',
'pep8-naming',
'future',
'pyhcl',
'six',
'typing',
'yamllint',
'zgitignore', # for embedded hooks
# embedded stacker is v1.5.0 with the following patches applied:
# https://github.com/cloudtools/stacker/pull/670 (py3 fix; in master)
# https://github.com/cloudtools/stacker/pull/674 (query fix; in master)
# https://github.com/cloudtools/stacker/pull/676 (lookup fix; in master)
# https://github.com/cloudtools/stacker/pull/677 (local pkgs; in master)
# and the LICENSE file added to its root folder
# and the following files/folders deleted:
# * tests
# * blueprints/testutil.py
# and the stacker & stacker.cmd scripts adapted with EMBEDDED_LIB_PATH
'stacker~=1.5',
# Stacker also pulls in our cfn-flip dependency (template generation)
# via troposphere
#
# upstream stacker requires boto3~=1.7.0 & botocore<1.11, but
# unfortunately pip will mess up on transitive dependecies
# https://github.com/pypa/pip/issues/988
# Best option here seems to be to just require the matching compatible
# botocore version. It's more rigid than necessary, but should hopefully
# make users less likely to encounter an error OOTB.
'botocore<1.11.0',
'boto3~=1.7.0'
]
# pylint v2+ is only py3 compatible
if version_info[0] == 2:
INSTALL_REQUIRES.append('pylint~=1.9')
else:
INSTALL_REQUIRES.append('pylint')
setup(
name='runway',
version=__version__,
description='Simplify infrastructure/app testing/deployment',
long_description=LONG_DESCRIPTION,
url='https://github.com/onicagroup/runway',
author='Onica Group LLC',
author_email='opensource@onica.com',
license='Apache License 2.0',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Utilities',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
python_requires='>=2.6',
keywords='cli',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=INSTALL_REQUIRES,
extras_require={
'test': ['flake8', 'pep8-naming', 'flake8-docstrings', 'pylint'],
},
entry_points={
'console_scripts': [
'runway=runway.cli:main',
],
},
scripts=['scripts/stacker-runway', 'scripts/stacker-runway.cmd'],
include_package_data=True, # needed for templates,blueprints,hooks
test_suite='tests'
)