constructs 10.4.2__tar.gz → 10.4.4__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.4.2
3
+ Version: 10.4.4
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,20 +10,19 @@ 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.8
14
13
  Classifier: Programming Language :: Python :: 3.9
15
14
  Classifier: Programming Language :: Python :: 3.10
16
15
  Classifier: Programming Language :: Python :: 3.11
17
16
  Classifier: Typing :: Typed
18
17
  Classifier: Development Status :: 5 - Production/Stable
19
18
  Classifier: License :: OSI Approved
20
- Requires-Python: ~=3.8
19
+ Requires-Python: ~=3.9
21
20
  Description-Content-Type: text/markdown
22
21
  License-File: LICENSE
23
22
  License-File: NOTICE
24
- Requires-Dist: jsii<2.0.0,>=1.102.0
23
+ Requires-Dist: jsii<2.0.0,>=1.121.0
25
24
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard~=2.13.3
25
+ Requires-Dist: typeguard==2.13.3
27
26
 
28
27
  # Constructs
29
28
 
@@ -1,9 +1,9 @@
1
1
  [build-system]
2
- requires = ["setuptools~=70.0.0", "wheel~=0.42"]
2
+ requires = ["setuptools~=75.3.2", "build~=1.3.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.pyright]
6
6
  defineConstant = { DEBUG = true }
7
- pythonVersion = "3.8"
7
+ pythonVersion = "3.9"
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.4.2",
8
+ "version": "10.4.4",
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.4.2.jsii.tgz"
29
+ "constructs@10.4.4.jsii.tgz"
30
30
  ],
31
31
  "constructs": [
32
32
  "py.typed"
33
33
  ]
34
34
  },
35
- "python_requires": "~=3.8",
35
+ "python_requires": "~=3.9",
36
36
  "install_requires": [
37
- "jsii>=1.102.0, <2.0.0",
37
+ "jsii>=1.121.0, <2.0.0",
38
38
  "publication>=0.0.3",
39
- "typeguard~=2.13.3"
39
+ "typeguard==2.13.3"
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.8",
47
46
  "Programming Language :: Python :: 3.9",
48
47
  "Programming Language :: Python :: 3.10",
49
48
  "Programming Language :: Python :: 3.11",
@@ -45,7 +45,22 @@ import jsii
45
45
  import publication
46
46
  import typing_extensions
47
47
 
48
- from typeguard import check_type
48
+ import typeguard
49
+ from importlib.metadata import version as _metadata_package_version
50
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
51
+
52
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
53
+ if TYPEGUARD_MAJOR_VERSION <= 2:
54
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
55
+ else:
56
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
57
+ pass
58
+ else:
59
+ if TYPEGUARD_MAJOR_VERSION == 3:
60
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
61
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
62
+ else:
63
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
49
64
 
50
65
  from ._jsii import *
51
66
 
@@ -391,7 +406,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
391
406
  return typing.cast("Node", jsii.sinvoke(cls, "of", [construct]))
392
407
 
393
408
  @jsii.member(jsii_name="addDependency")
394
- def add_dependency(self, *deps: IDependable) -> None:
409
+ def add_dependency(self, *deps: "IDependable") -> None:
395
410
  '''Add an ordering dependency on another construct.
396
411
 
397
412
  An ``IDependable``
@@ -436,7 +451,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
436
451
  return typing.cast(None, jsii.invoke(self, "addMetadata", [type, data, options]))
437
452
 
438
453
  @jsii.member(jsii_name="addValidation")
439
- def add_validation(self, validation: IValidation) -> None:
454
+ def add_validation(self, validation: "IValidation") -> None:
440
455
  '''Adds a validation to this construct.
441
456
 
442
457
  When ``node.validate()`` is called, the ``validate()`` method will be called on
@@ -452,7 +467,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
452
467
  @jsii.member(jsii_name="findAll")
453
468
  def find_all(
454
469
  self,
455
- order: typing.Optional[ConstructOrder] = None,
470
+ order: typing.Optional["ConstructOrder"] = None,
456
471
  ) -> typing.List["IConstruct"]:
457
472
  '''Return this construct and all of its children in the given order.
458
473
 
@@ -647,12 +662,12 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
647
662
 
648
663
  @builtins.property
649
664
  @jsii.member(jsii_name="metadata")
650
- def metadata(self) -> typing.List[MetadataEntry]:
665
+ def metadata(self) -> typing.List["MetadataEntry"]:
651
666
  '''An immutable array of metadata objects associated with this construct.
652
667
 
653
668
  This can be used, for example, to implement support for deprecation notices, source mapping, etc.
654
669
  '''
655
- return typing.cast(typing.List[MetadataEntry], jsii.get(self, "metadata"))
670
+ return typing.cast(typing.List["MetadataEntry"], jsii.get(self, "metadata"))
656
671
 
657
672
  @builtins.property
658
673
  @jsii.member(jsii_name="path")
@@ -697,7 +712,7 @@ class Node(metaclass=jsii.JSIIMeta, jsii_type="constructs.Node"):
697
712
  @builtins.property
698
713
  @jsii.member(jsii_name="defaultChild")
699
714
  def default_child(self) -> typing.Optional["IConstruct"]:
700
- '''Returns the child construct that has the id ``Default`` or ``Resource"``.
715
+ '''Returns the child construct that has the id ``Default`` or ``Resource``.
701
716
 
702
717
  This is usually the construct that provides the bulk of the underlying functionality.
703
718
  Useful for modifications of the underlying construct that are not available at the higher levels.
@@ -732,7 +747,7 @@ class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyG
732
747
  construct tree needs to be combined to be used as a single dependable.
733
748
  '''
734
749
 
735
- def __init__(self, *deps: IDependable) -> None:
750
+ def __init__(self, *deps: "IDependable") -> None:
736
751
  '''
737
752
  :param deps: -
738
753
  '''
@@ -742,7 +757,7 @@ class DependencyGroup(metaclass=jsii.JSIIMeta, jsii_type="constructs.DependencyG
742
757
  jsii.create(self.__class__, self, [*deps])
743
758
 
744
759
  @jsii.member(jsii_name="add")
745
- def add(self, *scopes: IDependable) -> None:
760
+ def add(self, *scopes: "IDependable") -> None:
746
761
  '''Add a construct to the dependency roots.
747
762
 
748
763
  :param scopes: -
@@ -759,7 +774,7 @@ class IConstruct(IDependable, typing_extensions.Protocol):
759
774
 
760
775
  @builtins.property
761
776
  @jsii.member(jsii_name="node")
762
- def node(self) -> Node:
777
+ def node(self) -> "Node":
763
778
  '''The tree node.'''
764
779
  ...
765
780
 
@@ -773,9 +788,9 @@ class _IConstructProxy(
773
788
 
774
789
  @builtins.property
775
790
  @jsii.member(jsii_name="node")
776
- def node(self) -> Node:
791
+ def node(self) -> "Node":
777
792
  '''The tree node.'''
778
- return typing.cast(Node, jsii.get(self, "node"))
793
+ return typing.cast("Node", jsii.get(self, "node"))
779
794
 
780
795
  # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
781
796
  typing.cast(typing.Any, IConstruct).__jsii_proxy_class__ = lambda : _IConstructProxy
@@ -836,9 +851,9 @@ class Construct(metaclass=jsii.JSIIMeta, jsii_type="constructs.Construct"):
836
851
 
837
852
  @builtins.property
838
853
  @jsii.member(jsii_name="node")
839
- def node(self) -> Node:
854
+ def node(self) -> "Node":
840
855
  '''The tree node.'''
841
- return typing.cast(Node, jsii.get(self, "node"))
856
+ return typing.cast("Node", jsii.get(self, "node"))
842
857
 
843
858
 
844
859
  class RootConstruct(
@@ -1036,3 +1051,6 @@ def _typecheckingstub__43869d89939a2770444321abd60b2fdb0daaa395e2fa7d025fe7acd93
1036
1051
  ) -> None:
1037
1052
  """Type checking stubs"""
1038
1053
  pass
1054
+
1055
+ for cls in [IConstruct, IDependable, IValidation]:
1056
+ typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
@@ -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.4.4", __name__[0:-6], "constructs@10.4.4.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.4.2
3
+ Version: 10.4.4
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,20 +10,19 @@ 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.8
14
13
  Classifier: Programming Language :: Python :: 3.9
15
14
  Classifier: Programming Language :: Python :: 3.10
16
15
  Classifier: Programming Language :: Python :: 3.11
17
16
  Classifier: Typing :: Typed
18
17
  Classifier: Development Status :: 5 - Production/Stable
19
18
  Classifier: License :: OSI Approved
20
- Requires-Python: ~=3.8
19
+ Requires-Python: ~=3.9
21
20
  Description-Content-Type: text/markdown
22
21
  License-File: LICENSE
23
22
  License-File: NOTICE
24
- Requires-Dist: jsii<2.0.0,>=1.102.0
23
+ Requires-Dist: jsii<2.0.0,>=1.121.0
25
24
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard~=2.13.3
25
+ Requires-Dist: typeguard==2.13.3
27
26
 
28
27
  # Constructs
29
28
 
@@ -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.4.2.jsii.tgz
15
+ src/constructs/_jsii/constructs@10.4.4.jsii.tgz
@@ -0,0 +1,3 @@
1
+ jsii<2.0.0,>=1.121.0
2
+ publication>=0.0.3
3
+ typeguard==2.13.3
@@ -1,24 +0,0 @@
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
- from typeguard import check_type
15
-
16
- __jsii_assembly__ = jsii.JSIIAssembly.load(
17
- "constructs", "10.4.2", __name__[0:-6], "constructs@10.4.2.jsii.tgz"
18
- )
19
-
20
- __all__ = [
21
- "__jsii_assembly__",
22
- ]
23
-
24
- publication.publish()
@@ -1,3 +0,0 @@
1
- jsii<2.0.0,>=1.102.0
2
- publication>=0.0.3
3
- typeguard~=2.13.3
File without changes
File without changes
File without changes
File without changes
File without changes