cdk-code-server 0.0.9__py3-none-any.whl → 0.0.11__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.
@@ -131,7 +131,22 @@ import jsii
131
131
  import publication
132
132
  import typing_extensions
133
133
 
134
- from typeguard import check_type
134
+ import typeguard
135
+ from importlib.metadata import version as _metadata_package_version
136
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
137
+
138
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
139
+ if TYPEGUARD_MAJOR_VERSION <= 2:
140
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
141
+ else:
142
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
143
+ pass
144
+ else:
145
+ if TYPEGUARD_MAJOR_VERSION == 3:
146
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
147
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
148
+ else:
149
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
135
150
 
136
151
  from ._jsii import *
137
152
 
@@ -11,7 +11,22 @@ 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 cdk_preinstalled_amazon_linux_ec2._jsii
@@ -19,7 +34,7 @@ import constructs._jsii
19
34
  import open_constructs_aws_cdk._jsii
20
35
 
21
36
  __jsii_assembly__ = jsii.JSIIAssembly.load(
22
- "cdk-code-server", "0.0.9", __name__[0:-6], "cdk-code-server@0.0.9.jsii.tgz"
37
+ "cdk-code-server", "0.0.11", __name__[0:-6], "cdk-code-server@0.0.11.jsii.tgz"
23
38
  )
24
39
 
25
40
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-code-server
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Summary: CDK Construct for a VSCode Server development environment on EC2
5
5
  Home-page: https://github.com/badmintoncryer/cdk-code-server.git
6
6
  Author: Kazuho CryerShinozuka<malaysia.cryer@gmail.com>
@@ -10,23 +10,22 @@ 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
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.143.0
24
23
  Requires-Dist: cdk-preinstalled-amazon-linux-ec2<0.0.11,>=0.0.10
25
24
  Requires-Dist: constructs<11.0.0,>=10.0.5
26
- Requires-Dist: jsii<2.0.0,>=1.102.0
25
+ Requires-Dist: jsii<2.0.0,>=1.112.0
27
26
  Requires-Dist: open-constructs-aws-cdk==0.0.0
28
27
  Requires-Dist: publication>=0.0.3
29
- Requires-Dist: typeguard~=2.13.3
28
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
30
29
 
31
30
  # CDK VSCode Server Construct
32
31
 
@@ -0,0 +1,9 @@
1
+ cdk_code-server/__init__.py,sha256=OgrsOboDe9XyeSklFj90EnH3cmK7s0urd7hRAzrdQjw,14816
2
+ cdk_code-server/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk_code-server/_jsii/__init__.py,sha256=RO_V0KGla8Ly_O5C8dq7QzsJ3FoU5c6i1n9GBCBLDVw,1527
4
+ cdk_code-server/_jsii/cdk-code-server@0.0.11.jsii.tgz,sha256=fzFBBtLB8OkzF33bgFs1PzM3m_E3BWHudghRGQEf-CM,1136809
5
+ cdk_code_server-0.0.11.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_code_server-0.0.11.dist-info/METADATA,sha256=nz6SbVwnb-5uvOYFqbzWhgJxya0ludIQUnUdp0sa82E,6191
7
+ cdk_code_server-0.0.11.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
8
+ cdk_code_server-0.0.11.dist-info/top_level.txt,sha256=ddKd-JX0B1KojbTdHpuZbc_BFCtLovS3D6LCWZWnU7Y,16
9
+ cdk_code_server-0.0.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: setuptools (75.3.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- cdk_code-server/__init__.py,sha256=JhhlhZgZ1EqDJDN20bDFFdEy6lVjvvIYXsgwRjBYJdc,13848
2
- cdk_code-server/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk_code-server/_jsii/__init__.py,sha256=Be7-6AkmaEN7EDYWlYepNxyeHy9kAXKk_NqqPDr9pCs,557
4
- cdk_code-server/_jsii/cdk-code-server@0.0.9.jsii.tgz,sha256=fCOGt4mOIucmFZv0KC9JwNge1yW6hgBJAfYJab4nIJE,1136803
5
- cdk_code_server-0.0.9.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk_code_server-0.0.9.dist-info/METADATA,sha256=sg0HlY6SmiLI3uqLpuFBHHok8UdlkdJj2ccf8QzqGzg,6233
7
- cdk_code_server-0.0.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- cdk_code_server-0.0.9.dist-info/top_level.txt,sha256=ddKd-JX0B1KojbTdHpuZbc_BFCtLovS3D6LCWZWnU7Y,16
9
- cdk_code_server-0.0.9.dist-info/RECORD,,