This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
generated from pulumi/pulumi-component-provider-ts-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (58 loc) · 2.2 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
# coding=utf-8
# *** WARNING: this file was generated by Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import errno
from setuptools import setup, find_packages
from setuptools.command.install import install
from subprocess import check_call
VERSION = "0.0.0"
PLUGIN_VERSION = "0.0.0"
class InstallPluginCommand(install):
def run(self):
install.run(self)
try:
check_call(['pulumi', 'plugin', 'install', 'resource', 'homelab', PLUGIN_VERSION, '--server', 'https://github.com/unmango/pulumi-homelab/releases/download/${VERSION}'])
except OSError as error:
if error.errno == errno.ENOENT:
print(f"""
There was an error installing the homelab resource provider plugin.
It looks like `pulumi` is not installed on your system.
Please visit https://pulumi.com/ to install the Pulumi CLI.
You may try manually installing the plugin by running
`pulumi plugin install resource homelab {PLUGIN_VERSION}`
""")
else:
raise
def readme():
try:
with open('README.md', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
return "homelab Pulumi Package - Development Version"
setup(name='pulumi_homelab',
version=VERSION,
description="Popular homelab applications for docker and kubernetes",
long_description=readme(),
long_description_content_type='text/markdown',
cmdclass={
'install': InstallPluginCommand,
},
keywords='category/cloud category/infrastructure kind/component pulumi kubernetes k8s docker homelab',
project_urls={
'Repository': 'https://github.com/unmango/pulumi-homelab'
},
packages=find_packages(),
package_data={
'pulumi_homelab': [
'py.typed',
'pulumi-plugin.json',
]
},
install_requires=[
'parver>=0.2.1',
'pulumi>=3.0.0,<4.0.0',
'pulumi-docker>=3.0.0,<4.0.0',
'pulumi-kubernetes>=3.0.0,<4.0.0',
'semver>=2.8.1'
],
zip_safe=False)