This repository has been archived by the owner on May 8, 2023. It is now read-only.
generated from Sceptre/sceptre-resolver-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
76 lines (68 loc) · 2.31 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
from setuptools import setup, find_packages
__version__ = "1.0.0"
# More information on setting values:
# https://github.com/Sceptre/project/wiki/sceptre-resolver-template
# lowercase, snakecase, use `-` as separator.
RESOLVER_NAME = 'sceptre-file-contents-resolver'
# the resolver call in sceptre e.g. !command_name.
RESOLVER_COMMAND_NAME = 'file_contents'
# do not change. Rename resolver/resolver.py to resolver/{RESOLVER_COMMAND_NAME}.py
RESOLVER_MODULE_NAME = 'resolver.{}'.format(RESOLVER_COMMAND_NAME)
# CamelCase name of resolver class in resolver.resolver.
RESOLVER_CLASS = 'FileContents'
RESOLVER_DESCRIPTION = '' # one line summary description
# if multiple use a single string with comma separated names.
RESOLVER_AUTHOR = 'Sceptre'
# if multiple use single string with commas.
RESOLVER_AUTHOR_EMAIL = 'sceptre@cloudreach.com'
RESOLVER_URL = 'https://github.com/sceptre/{}'.format(RESOLVER_NAME)
with open("README.md") as readme_file:
README = readme_file.read()
install_requirements = [
"packaging==16.8",
]
test_requirements = [
"pytest>=3.2",
]
setup_requirements = [
"pytest-runner>=3"
]
setup(
name=RESOLVER_NAME,
version=__version__,
description=RESOLVER_DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
author=RESOLVER_AUTHOR,
author_email=RESOLVER_AUTHOR_EMAIL,
license='Apache2',
url=RESOLVER_URL,
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
py_modules=[RESOLVER_MODULE_NAME],
entry_points={
'sceptre.resolvers': [
"{}={}:{}".format(RESOLVER_COMMAND_NAME,
RESOLVER_MODULE_NAME, RESOLVER_CLASS)
]
},
include_package_data=True,
zip_safe=False,
keywords="sceptre, sceptre-resolver",
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
}
)