upsert-slr 1.0.3__tar.gz → 1.0.6__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.

Potentially problematic release.


This version of upsert-slr might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: upsert-slr
3
- Version: 1.0.3
3
+ Version: 1.0.6
4
4
  Summary: Manage AWS service-linked roles in a better way.
5
5
  Home-page: https://github.com/tmokmss/upsert-slr.git
6
6
  Author: tmokmss<tmokmss@users.noreply.github.com>
@@ -20,6 +20,11 @@ Classifier: License :: OSI Approved
20
20
  Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.1.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.104.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
23
28
 
24
29
  # Upsert Service-Linked Role
25
30
 
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["setuptools~=67.3.2", "wheel~=0.42"]
2
+ requires = ["setuptools~=70.0.0", "wheel~=0.42"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.pyright]
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "upsert-slr",
8
- "version": "1.0.3",
8
+ "version": "1.0.6",
9
9
  "description": "Manage AWS service-linked roles in a better way.",
10
10
  "license": "MIT",
11
11
  "url": "https://github.com/tmokmss/upsert-slr.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "upsert_slr._jsii": [
29
- "upsert-slr@1.0.3.jsii.tgz"
29
+ "upsert-slr@1.0.6.jsii.tgz"
30
30
  ],
31
31
  "upsert_slr": [
32
32
  "py.typed"
@@ -36,9 +36,9 @@ kwargs = json.loads(
36
36
  "install_requires": [
37
37
  "aws-cdk-lib>=2.1.0, <3.0.0",
38
38
  "constructs>=10.0.5, <11.0.0",
39
- "jsii>=1.94.0, <2.0.0",
39
+ "jsii>=1.104.0, <2.0.0",
40
40
  "publication>=0.0.3",
41
- "typeguard~=2.13.3"
41
+ "typeguard>=2.13.3,<4.3.0"
42
42
  ],
43
43
  "classifiers": [
44
44
  "Intended Audience :: Developers",
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # Upsert Service-Linked Role
3
3
 
4
4
  AWS CDK construct to create a [service-linked role (SLR)](https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html) if there is no SLR for the same service, and if there is, skip the creation process.
@@ -36,6 +36,9 @@ Also, even if CFn successfully creates a role, resources that depend on the role
36
36
 
37
37
  To avoid the IAM propagation delay, this construct also waits for some time after a role is created.
38
38
  '''
39
+ from pkgutil import extend_path
40
+ __path__ = extend_path(__path__, __name__)
41
+
39
42
  import abc
40
43
  import builtins
41
44
  import datetime
@@ -46,7 +49,22 @@ import jsii
46
49
  import publication
47
50
  import typing_extensions
48
51
 
49
- from typeguard import check_type
52
+ import typeguard
53
+ from importlib.metadata import version as _metadata_package_version
54
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
55
+
56
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
57
+ if TYPEGUARD_MAJOR_VERSION <= 2:
58
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
59
+ else:
60
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
61
+ pass
62
+ else:
63
+ if TYPEGUARD_MAJOR_VERSION == 3:
64
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
65
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
66
+ else:
67
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
50
68
 
51
69
  from ._jsii import *
52
70
 
@@ -0,0 +1,42 @@
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
+ import aws_cdk._jsii
32
+ import constructs._jsii
33
+
34
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
35
+ "upsert-slr", "1.0.6", __name__[0:-6], "upsert-slr@1.0.6.jsii.tgz"
36
+ )
37
+
38
+ __all__ = [
39
+ "__jsii_assembly__",
40
+ ]
41
+
42
+ publication.publish()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: upsert-slr
3
- Version: 1.0.3
3
+ Version: 1.0.6
4
4
  Summary: Manage AWS service-linked roles in a better way.
5
5
  Home-page: https://github.com/tmokmss/upsert-slr.git
6
6
  Author: tmokmss<tmokmss@users.noreply.github.com>
@@ -20,6 +20,11 @@ Classifier: License :: OSI Approved
20
20
  Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.1.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.104.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
23
28
 
24
29
  # Upsert Service-Linked Role
25
30
 
@@ -11,4 +11,4 @@ src/upsert_slr.egg-info/dependency_links.txt
11
11
  src/upsert_slr.egg-info/requires.txt
12
12
  src/upsert_slr.egg-info/top_level.txt
13
13
  src/upsert_slr/_jsii/__init__.py
14
- src/upsert_slr/_jsii/upsert-slr@1.0.3.jsii.tgz
14
+ src/upsert_slr/_jsii/upsert-slr@1.0.6.jsii.tgz
@@ -1,5 +1,5 @@
1
1
  aws-cdk-lib<3.0.0,>=2.1.0
2
2
  constructs<11.0.0,>=10.0.5
3
- jsii<2.0.0,>=1.94.0
3
+ jsii<2.0.0,>=1.104.0
4
4
  publication>=0.0.3
5
- typeguard~=2.13.3
5
+ typeguard<4.3.0,>=2.13.3
@@ -1,24 +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
- import aws_cdk._jsii
14
- import constructs._jsii
15
-
16
- __jsii_assembly__ = jsii.JSIIAssembly.load(
17
- "upsert-slr", "1.0.3", __name__[0:-6], "upsert-slr@1.0.3.jsii.tgz"
18
- )
19
-
20
- __all__ = [
21
- "__jsii_assembly__",
22
- ]
23
-
24
- publication.publish()
File without changes
File without changes
File without changes
File without changes