forked from rackspace/runway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
92 lines (82 loc) · 2.97 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
"""Packaging settings."""
from codecs import open as codecs_open
from os.path import abspath, dirname, join
from setuptools import find_packages, setup
THIS_DIR = abspath(dirname(__file__))
def local_scheme(version): # pylint: disable=unused-argument
# type: (str) -> str
"""Skip the local version (eg. +xyz) to upload to Test PyPI."""
return ""
with codecs_open(join(THIS_DIR, 'README.md'), encoding='utf-8') as readfile:
LONG_DESCRIPTION = readfile.read()
INSTALL_REQUIRES = [
'Send2Trash',
'awacs', # for embedded hooks
# awscli included for embedded hooks and aws subcommand
'awscli>=1.16.308<2.0',
'backports.tempfile; python_version < "3.2"',
'botocore>=1.12.111', # matching awscli/boto3 requirement
'boto3>=1.9.111<2.0',
'cfn_flip>=1.2.1', # 1.2.1+ require PyYAML 4.1+
'cfn-lint',
'docker',
'docopt',
'requests',
'future',
'pyhcl~=0.4',
'gitpython',
'importlib-metadata; python_version < "3.8"',
'pyOpenSSL', # For embedded hook & associated script usage
'PyYAML>=4.1,<5.3', # match awscli top-end
'six>=1.13.0',
'typing;python_version<"3.5"',
'yamllint',
'zgitignore', # for embedded hooks
'troposphere>=2.4.2',
# botocore pins its urllib3 dependency like this, so we need to do the
# same to ensure v1.25+ isn't pulled in by pip
'urllib3>=1.20,<1.25',
# dependency of importlib-metadata, dependency of pytest, cfn-lint, & others
# 2.0.0 drops support for python 3.5
'zipp~=1.0.0',
# inherited from stacker 1.7.0 requirements
'jinja2>=2.7,<3.0',
'schematics>=2.0.1,<2.1.0',
'formic2'
]
setup(
name='runway',
description='Simplify infrastructure/app testing/deployment',
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
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.6',
'Programming Language :: Python :: 3.7',
],
python_requires='>=2.6',
keywords='cli',
packages=find_packages(exclude=('tests', 'integration_tests')),
install_requires=INSTALL_REQUIRES,
setup_requires=['setuptools_scm'],
use_scm_version={"local_scheme": local_scheme},
entry_points={
'console_scripts': [
'runway=runway.cli:main',
],
},
scripts=['scripts/stacker-runway', 'scripts/stacker-runway.cmd',
'scripts/tf-runway', 'scripts/tf-runway.cmd',
'scripts/tfenv-runway', 'scripts/tfenv-runway.cmd'],
include_package_data=True # needed for templates,blueprints,hooks
)