projen-modules 0.0.23__py3-none-any.whl → 0.0.25__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.
@@ -21,7 +21,22 @@ import jsii
21
21
  import publication
22
22
  import typing_extensions
23
23
 
24
- from typeguard import check_type
24
+ import typeguard
25
+ from importlib.metadata import version as _metadata_package_version
26
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
27
+
28
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
29
+ if TYPEGUARD_MAJOR_VERSION <= 2:
30
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
31
+ else:
32
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
33
+ pass
34
+ else:
35
+ if TYPEGUARD_MAJOR_VERSION == 3:
36
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
37
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
38
+ else:
39
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
25
40
 
26
41
  from ._jsii import *
27
42
 
@@ -358,7 +373,7 @@ class JsiiProject(
358
373
  :param release_trigger: (experimental) The release trigger to use. Default: - Continuous releases (``ReleaseTrigger.continuous()``)
359
374
  :param release_workflow_name: (experimental) The name of the default release workflow. Default: "release"
360
375
  :param release_workflow_setup_steps: (experimental) A set of workflow steps to execute in order to setup the workflow container.
361
- :param versionrc_options: (experimental) Custom configuration used when creating changelog with standard-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
376
+ :param versionrc_options: (experimental) Custom configuration used when creating changelog with commit-and-tag-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
362
377
  :param workflow_container_image: (experimental) Container image to use for GitHub workflows. Default: - default image
363
378
  :param workflow_runs_on: (experimental) Github Runner selection labels. Default: ["ubuntu-latest"]
364
379
  :param workflow_runs_on_group: (experimental) Github Runner Group selection options.
@@ -963,7 +978,7 @@ class JsiiProjectOptions(_projen_cdk_04054675.JsiiProjectOptions):
963
978
  :param release_trigger: (experimental) The release trigger to use. Default: - Continuous releases (``ReleaseTrigger.continuous()``)
964
979
  :param release_workflow_name: (experimental) The name of the default release workflow. Default: "release"
965
980
  :param release_workflow_setup_steps: (experimental) A set of workflow steps to execute in order to setup the workflow container.
966
- :param versionrc_options: (experimental) Custom configuration used when creating changelog with standard-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
981
+ :param versionrc_options: (experimental) Custom configuration used when creating changelog with commit-and-tag-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
967
982
  :param workflow_container_image: (experimental) Container image to use for GitHub workflows. Default: - default image
968
983
  :param workflow_runs_on: (experimental) Github Runner selection labels. Default: ["ubuntu-latest"]
969
984
  :param workflow_runs_on_group: (experimental) Github Runner Group selection options.
@@ -2690,7 +2705,7 @@ class JsiiProjectOptions(_projen_cdk_04054675.JsiiProjectOptions):
2690
2705
  def versionrc_options(
2691
2706
  self,
2692
2707
  ) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
2693
- '''(experimental) Custom configuration used when creating changelog with standard-version package.
2708
+ '''(experimental) Custom configuration used when creating changelog with commit-and-tag-version package.
2694
2709
 
2695
2710
  Given values either append to default configuration or overwrite values in it.
2696
2711
 
@@ -3537,7 +3552,7 @@ class JsiiProjectOptions(_projen_cdk_04054675.JsiiProjectOptions):
3537
3552
  :default: "1.x"
3538
3553
 
3539
3554
  :stability: experimental
3540
- :pjnew: "~5.4.0"
3555
+ :pjnew: "~5.5.0"
3541
3556
  '''
3542
3557
  result = self._values.get("jsii_version")
3543
3558
  return typing.cast(typing.Optional[builtins.str], result)
@@ -3921,7 +3936,7 @@ class NpmPackage(
3921
3936
  :param release_trigger: (experimental) The release trigger to use. Default: - Continuous releases (``ReleaseTrigger.continuous()``)
3922
3937
  :param release_workflow_name: (experimental) The name of the default release workflow. Default: "release"
3923
3938
  :param release_workflow_setup_steps: (experimental) A set of workflow steps to execute in order to setup the workflow container.
3924
- :param versionrc_options: (experimental) Custom configuration used when creating changelog with standard-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
3939
+ :param versionrc_options: (experimental) Custom configuration used when creating changelog with commit-and-tag-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
3925
3940
  :param workflow_container_image: (experimental) Container image to use for GitHub workflows. Default: - default image
3926
3941
  :param workflow_runs_on: (experimental) Github Runner selection labels. Default: ["ubuntu-latest"]
3927
3942
  :param workflow_runs_on_group: (experimental) Github Runner Group selection options.
@@ -4478,7 +4493,7 @@ class NpmPackageOptions(_projen_typescript_04054675.TypeScriptProjectOptions):
4478
4493
  :param release_trigger: (experimental) The release trigger to use. Default: - Continuous releases (``ReleaseTrigger.continuous()``)
4479
4494
  :param release_workflow_name: (experimental) The name of the default release workflow. Default: "release"
4480
4495
  :param release_workflow_setup_steps: (experimental) A set of workflow steps to execute in order to setup the workflow container.
4481
- :param versionrc_options: (experimental) Custom configuration used when creating changelog with standard-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
4496
+ :param versionrc_options: (experimental) Custom configuration used when creating changelog with commit-and-tag-version package. Given values either append to default configuration or overwrite values in it. Default: - standard configuration applicable for GitHub repositories
4482
4497
  :param workflow_container_image: (experimental) Container image to use for GitHub workflows. Default: - default image
4483
4498
  :param workflow_runs_on: (experimental) Github Runner selection labels. Default: ["ubuntu-latest"]
4484
4499
  :param workflow_runs_on_group: (experimental) Github Runner Group selection options.
@@ -6132,7 +6147,7 @@ class NpmPackageOptions(_projen_typescript_04054675.TypeScriptProjectOptions):
6132
6147
  def versionrc_options(
6133
6148
  self,
6134
6149
  ) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
6135
- '''(experimental) Custom configuration used when creating changelog with standard-version package.
6150
+ '''(experimental) Custom configuration used when creating changelog with commit-and-tag-version package.
6136
6151
 
6137
6152
  Given values either append to default configuration or overwrite values in it.
6138
6153
 
@@ -11,13 +11,28 @@ 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 constructs._jsii
17
32
  import projen._jsii
18
33
 
19
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
20
- "projen-modules", "0.0.23", __name__[0:-6], "projen-modules@0.0.23.jsii.tgz"
35
+ "projen-modules", "0.0.25", __name__[0:-6], "projen-modules@0.0.25.jsii.tgz"
21
36
  )
22
37
 
23
38
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: projen_modules
3
- Version: 0.0.23
3
+ Version: 0.0.25
4
4
  Summary: projen-modules
5
5
  Home-page: https://github.com/daveshepherd/projen-modules.git
6
6
  Author: Dave Shepherd<dave.shepherd@endor.me.uk>
@@ -21,10 +21,10 @@ Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: constructs==10.3.0
24
- Requires-Dist: jsii<2.0.0,>=1.102.0
25
- Requires-Dist: projen==0.85.0
24
+ Requires-Dist: jsii<2.0.0,>=1.103.0
25
+ Requires-Dist: projen==0.86.5
26
26
  Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard~=2.13.3
27
+ Requires-Dist: typeguard<5.0.0,>=2.13.3
28
28
 
29
29
  # Projen Modules
30
30
 
@@ -0,0 +1,9 @@
1
+ projen_modules/__init__.py,sha256=-1p7uVe8bisSBp3m5s3CHwphQps5t3hPZ25DtAMn4RU,501077
2
+ projen_modules/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ projen_modules/_jsii/__init__.py,sha256=wVdSNA1SyiQZ82YGhoJSFp4JPoPWglb92lVkqEyfYlM,1440
4
+ projen_modules/_jsii/projen-modules@0.0.25.jsii.tgz,sha256=7E4B8kj9v7IZ7C5OdAmE-LmOJ1dvvmIXnGSYYG-i7u0,67574
5
+ projen_modules-0.0.25.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ projen_modules-0.0.25.dist-info/METADATA,sha256=6THBbHA0FVefS9UUWNhko58Thynp2yXGKH0V4FMA5n0,1138
7
+ projen_modules-0.0.25.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
+ projen_modules-0.0.25.dist-info/top_level.txt,sha256=YhmVEeu2LoZS5cqGRszYa1QjC4sk2iA12CJBzxieX8I,15
9
+ projen_modules-0.0.25.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- projen_modules/__init__.py,sha256=jO6vD0MOMrLYVy_r6BawwzcTBj5Ck3Abg7LCQNj7zH4,500073
2
- projen_modules/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- projen_modules/_jsii/__init__.py,sha256=gmem796FKFC87MrB_rBW8K1e3yfJdQYCCR2gIV78Kn4,472
4
- projen_modules/_jsii/projen-modules@0.0.23.jsii.tgz,sha256=Uxx5DbkfZ6Ecti7z9UX9C2Bo-6BB10DjirQi-HDsmeY,67546
5
- projen_modules-0.0.23.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- projen_modules-0.0.23.dist-info/METADATA,sha256=5uM34mp0EGl8NmHJlcSfTQIJRbwFZYHMiUGAmQ6RBkc,1131
7
- projen_modules-0.0.23.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- projen_modules-0.0.23.dist-info/top_level.txt,sha256=YhmVEeu2LoZS5cqGRszYa1QjC4sk2iA12CJBzxieX8I,15
9
- projen_modules-0.0.23.dist-info/RECORD,,