constructs 10.4.2__tar.gz → 10.4.3__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.3
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.118.0
25
24
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard~=2.13.3
25
+ Requires-Dist: typeguard<4.3.0,>=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.3",
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.3.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.118.0, <2.0.0",
38
38
  "publication>=0.0.3",
39
- "typeguard~=2.13.3"
39
+ "typeguard>=2.13.3,<4.3.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.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
 
@@ -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.
@@ -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.3", __name__[0:-6], "constructs@10.4.3.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.3
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.118.0
25
24
  Requires-Dist: publication>=0.0.3
26
- Requires-Dist: typeguard~=2.13.3
25
+ Requires-Dist: typeguard<4.3.0,>=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.3.jsii.tgz
@@ -0,0 +1,3 @@
1
+ jsii<2.0.0,>=1.118.0
2
+ publication>=0.0.3
3
+ typeguard<4.3.0,>=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