Housekeeping (#8)
* Rename the provider to dockerbuild. * Add Makefile targets required by CI. * Add per-language test targets compatible with CI. * Fix broken example yaml. * Add gitignore exclusions to fix SDK generation in CI. * Fix lint errors. * Vendor pulumi CLI via `tools.go` instead of `.pulumi`. * Consolidate `go.mod`s into one file, with a minimal `go.mod` for the Go SDK. * Add codecov.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "docker-native",
|
||||
"server": "github.com/pulumi/pulumi-docker-native"
|
||||
}
|
||||
@@ -11,11 +11,11 @@ _utilities.register(
|
||||
resource_modules="""
|
||||
[
|
||||
{
|
||||
"pkg": "docker-native",
|
||||
"pkg": "dockerbuild",
|
||||
"mod": "index",
|
||||
"fqn": "pulumi_docker_native",
|
||||
"fqn": "pulumi_dockerbuild",
|
||||
"classes": {
|
||||
"docker-native:index:Random": "Random"
|
||||
"dockerbuild:index:Random": "Random"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -23,9 +23,9 @@ _utilities.register(
|
||||
resource_packages="""
|
||||
[
|
||||
{
|
||||
"pkg": "docker-native",
|
||||
"token": "pulumi:providers:docker-native",
|
||||
"fqn": "pulumi_docker_native",
|
||||
"pkg": "dockerbuild",
|
||||
"token": "pulumi:providers:dockerbuild",
|
||||
"fqn": "pulumi_dockerbuild",
|
||||
"class": "Provider"
|
||||
}
|
||||
]
|
||||
@@ -288,4 +288,4 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
|
||||
)
|
||||
|
||||
def get_plugin_download_url():
|
||||
return "github.com/pulumi/pulumi-docker-native"
|
||||
return "github.com/pulumi/pulumi-dockerbuild"
|
||||
@@ -27,7 +27,7 @@ class Provider(pulumi.ProviderResource):
|
||||
opts: Optional[pulumi.ResourceOptions] = None,
|
||||
__props__=None):
|
||||
"""
|
||||
Create a Docker-native resource with the given unique name, props, and options.
|
||||
Create a Dockerbuild resource with the given unique name, props, and options.
|
||||
:param str resource_name: The name of the resource.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
"""
|
||||
@@ -38,7 +38,7 @@ class Provider(pulumi.ProviderResource):
|
||||
args: Optional[ProviderArgs] = None,
|
||||
opts: Optional[pulumi.ResourceOptions] = None):
|
||||
"""
|
||||
Create a Docker-native resource with the given unique name, props, and options.
|
||||
Create a Dockerbuild resource with the given unique name, props, and options.
|
||||
:param str resource_name: The name of the resource.
|
||||
:param ProviderArgs args: The arguments to use to populate this resource's properties.
|
||||
:param pulumi.ResourceOptions opts: Options for the resource.
|
||||
@@ -64,7 +64,7 @@ class Provider(pulumi.ProviderResource):
|
||||
__props__ = ProviderArgs.__new__(ProviderArgs)
|
||||
|
||||
super(Provider, __self__).__init__(
|
||||
'docker-native',
|
||||
'dockerbuild',
|
||||
resource_name,
|
||||
__props__,
|
||||
opts)
|
||||
5
sdk/python/pulumi_dockerbuild/pulumi-plugin.json
generated
Normal file
5
sdk/python/pulumi_dockerbuild/pulumi-plugin.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "dockerbuild",
|
||||
"server": "github.com/pulumi/pulumi-dockerbuild"
|
||||
}
|
||||
@@ -80,7 +80,7 @@ class Random(pulumi.CustomResource):
|
||||
__props__.__dict__["length"] = length
|
||||
__props__.__dict__["result"] = None
|
||||
super(Random, __self__).__init__(
|
||||
'docker-native:index:Random',
|
||||
'dockerbuild:index:Random',
|
||||
resource_name,
|
||||
__props__,
|
||||
opts)
|
||||
20
sdk/python/pyproject.toml
generated
Normal file
20
sdk/python/pyproject.toml
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
[project]
|
||||
name = "pulumi_dockerbuild"
|
||||
description = "Description"
|
||||
dependencies = ["parver>=0.2.1", "pulumi>=3.0.0,<4.0.0", "semver>=2.8.1"]
|
||||
keywords = ["keywords"]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.8"
|
||||
version = "0.0.0"
|
||||
[project.urls]
|
||||
Homepage = "pulumi.com"
|
||||
Repository = "https://github.com/pulumi/pulumi-dockerbuild"
|
||||
|
||||
[build-system]
|
||||
requires = ["setuptools>=61.0"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool]
|
||||
[tool.setuptools]
|
||||
[tool.setuptools.package-data]
|
||||
pulumi_dockerbuild = ["py.typed", "pulumi-plugin.json"]
|
||||
44
sdk/python/setup.py
generated
44
sdk/python/setup.py
generated
@@ -1,44 +0,0 @@
|
||||
# coding=utf-8
|
||||
# *** WARNING: this file was generated by pulumi-language-python. ***
|
||||
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import errno
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools.command.install import install
|
||||
from subprocess import check_call
|
||||
|
||||
|
||||
VERSION = os.getenv("PULUMI_PYTHON_VERSION", "0.0.0")
|
||||
def readme():
|
||||
try:
|
||||
with open('README.md', encoding='utf-8') as f:
|
||||
return f.read()
|
||||
except FileNotFoundError:
|
||||
return "docker-native Pulumi Package - Development Version"
|
||||
|
||||
|
||||
setup(name='pulumi_docker_native',
|
||||
python_requires='>=3.8',
|
||||
version=VERSION,
|
||||
description="Description",
|
||||
long_description=readme(),
|
||||
long_description_content_type='text/markdown',
|
||||
keywords='keywords',
|
||||
url='pulumi.com',
|
||||
project_urls={
|
||||
'Repository': 'https://github.com/pulumi/pulumi-docker-native'
|
||||
},
|
||||
packages=find_packages(),
|
||||
package_data={
|
||||
'pulumi_docker_native': [
|
||||
'py.typed',
|
||||
'pulumi-plugin.json',
|
||||
]
|
||||
},
|
||||
install_requires=[
|
||||
'parver>=0.2.1',
|
||||
'pulumi',
|
||||
'semver>=2.8.1'
|
||||
],
|
||||
zip_safe=False)
|
||||
Reference in New Issue
Block a user