generated from Sceptre/sceptre-hook-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (68 loc) · 2.16 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
from setuptools import setup, find_packages
__version__ = "1.0.0"
# More information on setting these values:
# https://github.com/Sceptre/project/wiki/sceptre-hook-template
# lowercase, use `-` as separator.
HOOK_NAME = 'sceptre-cmd-hook'
# the hook call in sceptre e.g. !command_name.
HOOK_COMMAND_NAME = 'cmd'
HOOK_MODULE_NAME = 'hook.{}'.format(HOOK_COMMAND_NAME) # do not change.
# CamelCase name of hook class in hook.{HOOK_COMMAND_NAME}.
HOOK_CLASS = 'Cmd'
# one line summary description
HOOK_DESCRIPTION = 'Sceptre Command Line Hook to run arbitary commands'
# if multiple use a single string with comma separated names.
HOOK_AUTHOR = 'Sceptre'
# if multiple use single string with commas.
HOOK_AUTHOR_EMAIL = '[email protected]'
HOOK_URL = 'https://github.com/sceptre/{}'.format(HOOK_NAME)
with open("README.md") as readme_file:
README = readme_file.read()
install_requirements = [
"packaging==16.8",
]
test_requirements = [
"pytest>=3.2",
"mock==2.0.0",
]
setup_requirements = [
"pytest-runner>=3"
]
setup(
name=HOOK_NAME,
version=__version__,
description=HOOK_DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
author=HOOK_AUTHOR,
author_email=HOOK_AUTHOR_EMAIL,
license='Apache2',
url=HOOK_URL,
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
py_modules=[HOOK_MODULE_NAME],
entry_points={
'sceptre.hooks': [
"{}={}:{}".format(HOOK_COMMAND_NAME, HOOK_MODULE_NAME, HOOK_CLASS)
]
},
include_package_data=True,
zip_safe=False,
keywords="sceptre, sceptre-hook",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Environment :: Console",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
],
test_suite="tests",
install_requires=install_requirements,
tests_require=test_requirements,
setup_requires=setup_requirements,
extras_require={
"test": test_requirements
}
)