constructs 10.2.70__tar.gz → 10.3.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: constructs
3
- Version: 10.2.70
3
+ Version: 10.3.1
4
4
  Summary: A programming model for software-defined state
5
5
  Home-page: https://github.com/aws/constructs
6
6
  Author: Amazon Web Services<aws-cdk-dev@amazon.com>
@@ -10,7 +10,6 @@ Classifier: Intended Audience :: Developers
10
10
  Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: JavaScript
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
@@ -18,16 +17,19 @@ Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Typing :: Typed
19
18
  Classifier: Development Status :: 5 - Production/Stable
20
19
  Classifier: License :: OSI Approved
21
- Requires-Python: ~=3.7
20
+ Requires-Python: ~=3.8
22
21
  Description-Content-Type: text/markdown
23
22
  License-File: LICENSE
24
23
  License-File: NOTICE
24
+ Requires-Dist: jsii<2.0.0,>=1.103.1
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
25
27
 
26
28
  # Constructs
27
29
 
28
30
  > Software-defined persistent state
29
31
 
30
- ![Release](https://github.com/aws/constructs/workflows/Release/badge.svg)
32
+ [![Release](https://github.com/aws/constructs/actions/workflows/release.yml/badge.svg)](https://github.com/aws/constructs/actions/workflows/release.yml)
31
33
  [![npm version](https://badge.fury.io/js/constructs.svg)](https://badge.fury.io/js/constructs)
32
34
  [![PyPI version](https://badge.fury.io/py/constructs.svg)](https://badge.fury.io/py/constructs)
33
35
  [![NuGet version](https://badge.fury.io/nu/Constructs.svg)](https://badge.fury.io/nu/Constructs)
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Software-defined persistent state
4
4
 
5
- ![Release](https://github.com/aws/constructs/workflows/Release/badge.svg)
5
+ [![Release](https://github.com/aws/constructs/actions/workflows/release.yml/badge.svg)](https://github.com/aws/constructs/actions/workflows/release.yml)
6
6
  [![npm version](https://badge.fury.io/js/constructs.svg)](https://badge.fury.io/js/constructs)
7
7
  [![PyPI version](https://badge.fury.io/py/constructs.svg)](https://badge.fury.io/py/constructs)
8
8
  [![NuGet version](https://badge.fury.io/nu/Constructs.svg)](https://badge.fury.io/nu/Constructs)
@@ -1,9 +1,9 @@
1
1
  [build-system]
2
- requires = ["setuptools~=67.3.2", "wheel~=0.41"]
2
+ requires = ["setuptools~=70.0.0", "wheel~=0.42"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.pyright]
6
6
  defineConstant = { DEBUG = true }
7
- pythonVersion = "3.7"
7
+ pythonVersion = "3.8"
8
8
  pythonPlatform = "All"
9
9
  reportSelfClsParameterName = false
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "constructs",
8
- "version": "10.2.70",
8
+ "version": "10.3.1",
9
9
  "description": "A programming model for software-defined state",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/aws/constructs",
@@ -26,24 +26,23 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "constructs._jsii": [
29
- "constructs@10.2.70.jsii.tgz"
29
+ "constructs@10.3.1.jsii.tgz"
30
30
  ],
31
31
  "constructs": [
32
32
  "py.typed"
33
33
  ]
34
34
  },
35
- "python_requires": "~=3.7",
35
+ "python_requires": "~=3.8",
36
36
  "install_requires": [
37
- "jsii>=1.88.0, <2.0.0",
37
+ "jsii>=1.103.1, <2.0.0",
38
38
  "publication>=0.0.3",
39
- "typeguard~=2.13.3"
39
+ "typeguard>=2.13.3,<5.0.0"
40
40
  ],
41
41
  "classifiers": [
42
42
  "Intended Audience :: Developers",
43
43
  "Operating System :: OS Independent",
44
44
  "Programming Language :: JavaScript",
45
45
  "Programming Language :: Python :: 3 :: Only",
46
- "Programming Language :: Python :: 3.7",
47
46
  "Programming Language :: Python :: 3.8",
48
47
  "Programming Language :: Python :: 3.9",
49
48
  "Programming Language :: Python :: 3.10",
@@ -1,9 +1,9 @@
1
- '''
1
+ r'''
2
2
  # Constructs
3
3
 
4
4
  > Software-defined persistent state
5
5
 
6
- ![Release](https://github.com/aws/constructs/workflows/Release/badge.svg)
6
+ [![Release](https://github.com/aws/constructs/actions/workflows/release.yml/badge.svg)](https://github.com/aws/constructs/actions/workflows/release.yml)
7
7
  [![npm version](https://badge.fury.io/js/constructs.svg)](https://badge.fury.io/js/constructs)
8
8
  [![PyPI version](https://badge.fury.io/py/constructs.svg)](https://badge.fury.io/py/constructs)
9
9
  [![NuGet version](https://badge.fury.io/nu/Constructs.svg)](https://badge.fury.io/nu/Constructs)
@@ -28,6 +28,9 @@ development environment and submit code.
28
28
 
29
29
  This project is distributed under the [Apache License, Version 2.0](./LICENSE).
30
30
  '''
31
+ from pkgutil import extend_path
32
+ __path__ = extend_path(__path__, __name__)
33
+
31
34
  import abc
32
35
  import builtins
33
36
  import datetime
@@ -38,7 +41,22 @@ import jsii
38
41
  import publication
39
42
  import typing_extensions
40
43
 
41
- from typeguard import check_type
44
+ import typeguard
45
+ from importlib.metadata import version as _metadata_package_version
46
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
47
+
48
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
49
+ if TYPEGUARD_MAJOR_VERSION <= 2:
50
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
51
+ else:
52
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
53
+ pass
54
+ else:
55
+ if TYPEGUARD_MAJOR_VERSION == 3:
56
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
57
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
58
+ else:
59
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
42
60
 
43
61
  from ._jsii import *
44
62
 
@@ -420,6 +438,8 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
420
438
  Entries are arbitrary values and will also include a stack trace to allow tracing back to
421
439
  the code location for when the entry was added. It can be used, for example, to include source
422
440
  mapping in CloudFormation templates to improve diagnostics.
441
+ Note that construct metadata is not the same as CloudFormation resource metadata and is never written to the CloudFormation template.
442
+ The metadata entries are written to the Cloud Assembly Manifest if the ``treeMetadata`` property is specified in the props of the App that contains this Construct.
423
443
 
424
444
  :param type: a string denoting the type of metadata.
425
445
  :param data: the value of the metadata (can be a Token). If null/undefined, metadata will not be added.
@@ -479,6 +499,24 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
479
499
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
480
500
  return typing.cast("IConstruct", jsii.invoke(self, "findChild", [id]))
481
501
 
502
+ @jsii.member(jsii_name="getAllContext")
503
+ def get_all_context(
504
+ self,
505
+ defaults: typing.Optional[typing.Mapping[typing.Any, typing.Any]] = None,
506
+ ) -> typing.Any:
507
+ '''Retrieves the all context of a node from tree context.
508
+
509
+ Context is usually initialized at the root, but can be overridden at any point in the tree.
510
+
511
+ :param defaults: Any keys to override the retrieved context.
512
+
513
+ :return: The context object or an empty object if there is discovered context
514
+ '''
515
+ if __debug__:
516
+ type_hints = typing.get_type_hints(_typecheckingstub__7b2abb9ce64f01035fe598b09baa8049b185b7c4ad02e47befe0c70908a1e000)
517
+ check_type(argname="argument defaults", value=defaults, expected_type=type_hints["defaults"])
518
+ return typing.cast(typing.Any, jsii.invoke(self, "getAllContext", [defaults]))
519
+
482
520
  @jsii.member(jsii_name="getContext")
483
521
  def get_context(self, key: builtins.str) -> typing.Any:
484
522
  '''Retrieves a value from tree context if present. Otherwise, would throw an error.
@@ -620,7 +658,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
620
658
  def id(self) -> builtins.str:
621
659
  '''The id of this construct within the current scope.
622
660
 
623
- This is a a scope-unique id. To obtain an app-unique id for this construct, use ``addr``.
661
+ This is a scope-unique id. To obtain an app-unique id for this construct, use ``addr``.
624
662
  '''
625
663
  return typing.cast(builtins.str, jsii.get(self, "id"))
626
664
 
@@ -706,7 +744,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
706
744
  if __debug__:
707
745
  type_hints = typing.get_type_hints(_typecheckingstub__4bbcfb9c1c2a97493a49545b146e41d7f6c46f63ff45f96526d7abf737620ea6)
708
746
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
709
- jsii.set(self, "defaultChild", value)
747
+ jsii.set(self, "defaultChild", value) # pyright: ignore[reportArgumentType]
710
748
 
711
749
 
712
750
  @jsii.implements(IDependable)
@@ -931,6 +969,12 @@ def _typecheckingstub__fad30dac2587986f1ad461ddbfadd8c7bdb66542692e2272c9ea5e248
931
969
  """Type checking stubs"""
932
970
  pass
933
971
 
972
+ def _typecheckingstub__7b2abb9ce64f01035fe598b09baa8049b185b7c4ad02e47befe0c70908a1e000(
973
+ defaults: typing.Optional[typing.Mapping[typing.Any, typing.Any]] = None,
974
+ ) -> None:
975
+ """Type checking stubs"""
976
+ pass
977
+
934
978
  def _typecheckingstub__1fdfdfb2b2e83a2845cb899305c37d4e37ae13634e2150fa9895e715f45e2752(
935
979
  key: builtins.str,
936
980
  ) -> None:
@@ -0,0 +1,39 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
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
30
+
31
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
32
+ "constructs", "10.3.1", __name__[0:-6], "constructs@10.3.1.jsii.tgz"
33
+ )
34
+
35
+ __all__ = [
36
+ "__jsii_assembly__",
37
+ ]
38
+
39
+ publication.publish()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: constructs
3
- Version: 10.2.70
3
+ Version: 10.3.1
4
4
  Summary: A programming model for software-defined state
5
5
  Home-page: https://github.com/aws/constructs
6
6
  Author: Amazon Web Services<aws-cdk-dev@amazon.com>
@@ -10,7 +10,6 @@ Classifier: Intended Audience :: Developers
10
10
  Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: JavaScript
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
@@ -18,16 +17,19 @@ Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Typing :: Typed
19
18
  Classifier: Development Status :: 5 - Production/Stable
20
19
  Classifier: License :: OSI Approved
21
- Requires-Python: ~=3.7
20
+ Requires-Python: ~=3.8
22
21
  Description-Content-Type: text/markdown
23
22
  License-File: LICENSE
24
23
  License-File: NOTICE
24
+ Requires-Dist: jsii<2.0.0,>=1.103.1
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
25
27
 
26
28
  # Constructs
27
29
 
28
30
  > Software-defined persistent state
29
31
 
30
- ![Release](https://github.com/aws/constructs/workflows/Release/badge.svg)
32
+ [![Release](https://github.com/aws/constructs/actions/workflows/release.yml/badge.svg)](https://github.com/aws/constructs/actions/workflows/release.yml)
31
33
  [![npm version](https://badge.fury.io/js/constructs.svg)](https://badge.fury.io/js/constructs)
32
34
  [![PyPI version](https://badge.fury.io/py/constructs.svg)](https://badge.fury.io/py/constructs)
33
35
  [![NuGet version](https://badge.fury.io/nu/Constructs.svg)](https://badge.fury.io/nu/Constructs)
@@ -12,4 +12,4 @@ src/constructs.egg-info/dependency_links.txt
12
12
  src/constructs.egg-info/requires.txt
13
13
  src/constructs.egg-info/top_level.txt
14
14
  src/constructs/_jsii/__init__.py
15
- src/constructs/_jsii/constructs@10.2.70.jsii.tgz
15
+ src/constructs/_jsii/constructs@10.3.1.jsii.tgz
@@ -0,0 +1,3 @@
1
+ jsii<2.0.0,>=1.103.1
2
+ publication>=0.0.3
3
+ typeguard<5.0.0,>=2.13.3
@@ -1,21 +0,0 @@
1
- import abc
2
- import builtins
3
- import datetime
4
- import enum
5
- import typing
6
-
7
- import jsii
8
- import publication
9
- import typing_extensions
10
-
11
- from typeguard import check_type
12
-
13
- __jsii_assembly__ = jsii.JSIIAssembly.load(
14
- "constructs", "10.2.70", __name__[0:-6], "constructs@10.2.70.jsii.tgz"
15
- )
16
-
17
- __all__ = [
18
- "__jsii_assembly__",
19
- ]
20
-
21
- publication.publish()
@@ -1,3 +0,0 @@
1
- jsii<2.0.0,>=1.88.0
2
- publication>=0.0.3
3
- typeguard~=2.13.3
File without changes
File without changes
File without changes
File without changes