mirror of https://github.com/pulumi/pulumi.git
60 lines
1.7 KiB
Python
60 lines
1.7 KiB
Python
# coding=utf-8
|
|
# *** WARNING: this file was generated by test. ***
|
|
# *** 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', 'aws', PLUGIN_VERSION])
|
|
except OSError as error:
|
|
if error.errno == errno.ENOENT:
|
|
print(f"""
|
|
There was an error installing the aws 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 aws {PLUGIN_VERSION}`
|
|
""")
|
|
else:
|
|
raise
|
|
|
|
|
|
def readme():
|
|
try:
|
|
with open('README.md', encoding='utf-8') as f:
|
|
return f.read()
|
|
except FileNotFoundError:
|
|
return "aws Pulumi Package - Development Version"
|
|
|
|
|
|
setup(name='pulumi_aws',
|
|
version=VERSION,
|
|
long_description=readme(),
|
|
long_description_content_type='text/markdown',
|
|
cmdclass={
|
|
'install': InstallPluginCommand,
|
|
},
|
|
packages=find_packages(),
|
|
package_data={
|
|
'pulumi_aws': [
|
|
'py.typed',
|
|
'pulumi-plugin.json',
|
|
]
|
|
},
|
|
install_requires=[
|
|
'parver>=0.2.1',
|
|
'pulumi>=3.0.0,<4.0.0',
|
|
'semver>=2.8.1'
|
|
],
|
|
zip_safe=False)
|