pulumi-docker-build 0.0.1a101__py3-none-any.whl → 0.0.1a1714089457__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-docker-build might be problematic. Click here for more details.
- pulumi_docker_build/_inputs.py +22 -835
- pulumi_docker_build/_utilities.py +5 -41
- pulumi_docker_build/config/__init__.pyi +0 -5
- pulumi_docker_build/config/vars.py +0 -5
- pulumi_docker_build/image.py +201 -206
- pulumi_docker_build/index.py +59 -64
- pulumi_docker_build/outputs.py +6 -11
- pulumi_docker_build/provider.py +2 -7
- pulumi_docker_build/pulumi-plugin.json +1 -2
- {pulumi_docker_build-0.0.1a101.dist-info → pulumi_docker_build-0.0.1a1714089457.dist-info}/METADATA +6 -7
- pulumi_docker_build-0.0.1a1714089457.dist-info/RECORD +17 -0
- {pulumi_docker_build-0.0.1a101.dist-info → pulumi_docker_build-0.0.1a1714089457.dist-info}/WHEEL +1 -1
- pulumi_docker_build-0.0.1a101.dist-info/RECORD +0 -17
- {pulumi_docker_build-0.0.1a101.dist-info → pulumi_docker_build-0.0.1a1714089457.dist-info}/top_level.txt +0 -0
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
import asyncio
|
|
7
|
-
import functools
|
|
8
7
|
import importlib.metadata
|
|
9
8
|
import importlib.util
|
|
10
9
|
import inspect
|
|
@@ -12,19 +11,14 @@ import json
|
|
|
12
11
|
import os
|
|
13
12
|
import sys
|
|
14
13
|
import typing
|
|
15
|
-
import warnings
|
|
16
|
-
import base64
|
|
17
14
|
|
|
18
15
|
import pulumi
|
|
19
16
|
import pulumi.runtime
|
|
20
17
|
from pulumi.runtime.sync_await import _sync_await
|
|
21
|
-
from pulumi.runtime.proto import resource_pb2
|
|
22
18
|
|
|
23
19
|
from semver import VersionInfo as SemverVersion
|
|
24
20
|
from parver import Version as PEP440Version
|
|
25
21
|
|
|
26
|
-
C = typing.TypeVar("C", bound=typing.Callable)
|
|
27
|
-
|
|
28
22
|
|
|
29
23
|
def get_env(*args):
|
|
30
24
|
for v in args:
|
|
@@ -102,6 +96,10 @@ def _get_semver_version():
|
|
|
102
96
|
_version = _get_semver_version()
|
|
103
97
|
_version_str = str(_version)
|
|
104
98
|
|
|
99
|
+
|
|
100
|
+
def get_version():
|
|
101
|
+
return _version_str
|
|
102
|
+
|
|
105
103
|
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
|
106
104
|
return pulumi.ResourceOptions(
|
|
107
105
|
version=get_version(),
|
|
@@ -264,7 +262,7 @@ def call_plain(
|
|
|
264
262
|
output = pulumi.runtime.call(tok, props, res, typ)
|
|
265
263
|
|
|
266
264
|
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
267
|
-
result, known, secret, _ = _sync_await(asyncio.
|
|
265
|
+
result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
|
|
268
266
|
|
|
269
267
|
problem = None
|
|
270
268
|
if not known:
|
|
@@ -289,39 +287,5 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
|
|
|
289
287
|
await o._resources,
|
|
290
288
|
)
|
|
291
289
|
|
|
292
|
-
|
|
293
|
-
# This is included to provide an upgrade path for users who are using a version
|
|
294
|
-
# of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
|
|
295
|
-
def deprecated(message: str) -> typing.Callable[[C], C]:
|
|
296
|
-
"""
|
|
297
|
-
Decorator to indicate a function is deprecated.
|
|
298
|
-
|
|
299
|
-
As well as inserting appropriate statements to indicate that the function is
|
|
300
|
-
deprecated, this decorator also tags the function with a special attribute
|
|
301
|
-
so that Pulumi code can detect that it is deprecated and react appropriately
|
|
302
|
-
in certain situations.
|
|
303
|
-
|
|
304
|
-
message is the deprecation message that should be printed if the function is called.
|
|
305
|
-
"""
|
|
306
|
-
|
|
307
|
-
def decorator(fn: C) -> C:
|
|
308
|
-
if not callable(fn):
|
|
309
|
-
raise TypeError("Expected fn to be callable")
|
|
310
|
-
|
|
311
|
-
@functools.wraps(fn)
|
|
312
|
-
def deprecated_fn(*args, **kwargs):
|
|
313
|
-
warnings.warn(message)
|
|
314
|
-
pulumi.warn(f"{fn.__name__} is deprecated: {message}")
|
|
315
|
-
|
|
316
|
-
return fn(*args, **kwargs)
|
|
317
|
-
|
|
318
|
-
deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
|
|
319
|
-
return typing.cast(C, deprecated_fn)
|
|
320
|
-
|
|
321
|
-
return decorator
|
|
322
|
-
|
|
323
290
|
def get_plugin_download_url():
|
|
324
291
|
return None
|
|
325
|
-
|
|
326
|
-
def get_version():
|
|
327
|
-
return _version_str
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
10
|
from .. import _utilities
|
|
16
11
|
from .. import outputs as _root_outputs
|
|
17
12
|
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
10
|
from .. import _utilities
|
|
16
11
|
from .. import outputs as _root_outputs
|
|
17
12
|
|