This repository has been archived by the owner on May 8, 2023. It is now read-only.
generated from Sceptre/sceptre-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (68 loc) · 2.27 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__ = "0.0.1"
# More information on setting values:
# https://github.com/Sceptre/project/wiki/sceptre-provider-template
# lowercase, use `-` as separator.
PROVIDER_FULL_NAME = 'sceptre-provider-test-fixture'
# the provider call in sceptre e.g. !command_name.
PROVIDER_SHORT_NAME = 'provider_fixture'
# do not change. Rename provider/provider.py to provider/{PROVIDER_COMMAND_NAME}.py
PROVIDER_MODULE_NAME = 'provider.{}'.format(PROVIDER_SHORT_NAME)
# CamelCase name of provider class in provider.provider.
PROVIDER_CLASS = 'Provider'
# One line summary description
PROVIDER_DESCRIPTION = 'A Provider Test Fixture'
# if multiple use a single string with comma separated names.
PROVIDER_AUTHOR = 'Sceptre'
# if multiple use single string with commas.
PROVIDER_AUTHOR_EMAIL = '[email protected]'
PROVIDER_URL = 'https://github.com/sceptre/{}'.format(PROVIDER_FULL_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=PROVIDER_FULL_NAME,
version=__version__,
description=PROVIDER_DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
author=PROVIDER_AUTHOR,
author_email=PROVIDER_AUTHOR_EMAIL,
license='Apache2',
url=PROVIDER_URL,
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
py_modules=[PROVIDER_MODULE_NAME],
entry_points={
'provider': [
"{}={}:{}".format(PROVIDER_SHORT_NAME,
PROVIDER_MODULE_NAME, PROVIDER_CLASS)
]
},
include_package_data=True,
zip_safe=False,
keywords="sceptre, sceptre-provider",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Environment :: Console",
"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
}
)