cdk-docker-image-deployment 0.0.588__py3-none-any.whl → 0.0.590__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.
@@ -70,7 +70,22 @@ import jsii
70
70
  import publication
71
71
  import typing_extensions
72
72
 
73
- from typeguard import check_type
73
+ import typeguard
74
+ from importlib.metadata import version as _metadata_package_version
75
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
76
+
77
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
78
+ if TYPEGUARD_MAJOR_VERSION <= 2:
79
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
80
+ else:
81
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
82
+ pass
83
+ else:
84
+ if TYPEGUARD_MAJOR_VERSION == 3:
85
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
86
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
87
+ else:
88
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
74
89
 
75
90
  from ._jsii import *
76
91
 
@@ -11,16 +11,31 @@ import jsii
11
11
  import publication
12
12
  import typing_extensions
13
13
 
14
- from typeguard import check_type
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
15
30
 
16
31
  import aws_cdk._jsii
17
32
  import constructs._jsii
18
33
 
19
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
35
  "cdk-docker-image-deployment",
21
- "0.0.588",
36
+ "0.0.590",
22
37
  __name__[0:-6],
23
- "cdk-docker-image-deployment@0.0.588.jsii.tgz",
38
+ "cdk-docker-image-deployment@0.0.590.jsii.tgz",
24
39
  )
25
40
 
26
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-docker-image-deployment
3
- Version: 0.0.588
3
+ Version: 0.0.590
4
4
  Summary: This module allows you to copy docker image assets to a repository you control. This can be necessary if you want to build a Docker image in one CDK app and consume it in a different app or outside the CDK.
5
5
  Home-page: https://github.com/cdklabs/cdk-docker-image-deployment#readme
6
6
  Author: Parker Scanlon
@@ -23,9 +23,9 @@ License-File: LICENSE
23
23
  License-File: NOTICE
24
24
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.24.0
25
25
  Requires-Dist: constructs<11.0.0,>=10.0.5
26
- Requires-Dist: jsii<2.0.0,>=1.102.0
26
+ Requires-Dist: jsii<2.0.0,>=1.103.0
27
27
  Requires-Dist: publication>=0.0.3
28
- Requires-Dist: typeguard~=2.13.3
28
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
29
29
 
30
30
  ## CDK Docker Image Deployment
31
31
 
@@ -0,0 +1,10 @@
1
+ cdk_docker_image_deployment/__init__.py,sha256=3gwXcRv56Qq6gKnjt88qirqhTyd7NJ1wWatI4bRW8hM,29296
2
+ cdk_docker_image_deployment/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk_docker_image_deployment/_jsii/__init__.py,sha256=8IgYEMkDwtx0RMOeCBZGJBLgfK3KjIWkdICF4waIc4Y,1482
4
+ cdk_docker_image_deployment/_jsii/cdk-docker-image-deployment@0.0.590.jsii.tgz,sha256=yMORUdXaXrRtiN6j_Z1LHBVh4ifEWjSwkIQynp67WhY,13014271
5
+ cdk_docker_image_deployment-0.0.590.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_docker_image_deployment-0.0.590.dist-info/METADATA,sha256=_TLy5Nk4g_bB-nAEP5OJRaGvdqYuhY7EXbdtLG5C9Rg,3906
7
+ cdk_docker_image_deployment-0.0.590.dist-info/NOTICE,sha256=1CkO1kwu3Q_OHYTj-d-yiBJA_lNN73a4zSntavaD4oc,67
8
+ cdk_docker_image_deployment-0.0.590.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
+ cdk_docker_image_deployment-0.0.590.dist-info/top_level.txt,sha256=WdzWJDV-WRpz7LHNc3kSSBBcEbKJGcyyW5BcqU_l1Ew,28
10
+ cdk_docker_image_deployment-0.0.590.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- cdk_docker_image_deployment/__init__.py,sha256=8EjbYPE3ACVjN2yiNBTcbXniFr7s9YisYf0W5Rr6A6E,28328
2
- cdk_docker_image_deployment/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk_docker_image_deployment/_jsii/__init__.py,sha256=MZc0z8H9vzUe32TRb_sIib_7eHuUlYm_aQh6BkL4JcA,514
4
- cdk_docker_image_deployment/_jsii/cdk-docker-image-deployment@0.0.588.jsii.tgz,sha256=Maq3lWG3pFC2-6KADWQrPvof1vmrt_JDytvuwP3geoY,13011487
5
- cdk_docker_image_deployment-0.0.588.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk_docker_image_deployment-0.0.588.dist-info/METADATA,sha256=ILKIjjW76l7p8ypGTYmQxUVmhdrP2tKOKJqUwSQMmtk,3899
7
- cdk_docker_image_deployment-0.0.588.dist-info/NOTICE,sha256=1CkO1kwu3Q_OHYTj-d-yiBJA_lNN73a4zSntavaD4oc,67
8
- cdk_docker_image_deployment-0.0.588.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- cdk_docker_image_deployment-0.0.588.dist-info/top_level.txt,sha256=WdzWJDV-WRpz7LHNc3kSSBBcEbKJGcyyW5BcqU_l1Ew,28
10
- cdk_docker_image_deployment-0.0.588.dist-info/RECORD,,