cdk-factory 0.9.0__py3-none-any.whl → 0.9.1__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.
cdk_factory/app.py CHANGED
@@ -37,9 +37,6 @@ class CdkAppFactory:
37
37
 
38
38
  # Auto-detect outdir for CodeBuild compatibility
39
39
  if outdir is None and self.args.outdir is None and auto_detect_project_root:
40
- # Always detect project root first
41
- project_root = self._detect_project_root()
42
-
43
40
  # Check if we're in CodeBuild or building a pipeline
44
41
  in_codebuild = bool(os.getenv('CODEBUILD_SRC_DIR'))
45
42
 
@@ -47,8 +44,9 @@ class CdkAppFactory:
47
44
  is_pipeline_deployment = is_pipeline or self._check_if_pipeline_deployment(config_path)
48
45
 
49
46
  if in_codebuild or is_pipeline_deployment:
50
- # For pipelines, calculate relative path from runtime_directory to project_root/cdk.out
51
- # This ensures cdk.out is always at project root, even when app.py is in subdirectory
47
+ # For pipelines/CodeBuild: calculate relative path to project_root/cdk.out
48
+ # This ensures cdk.out is at project root and works in CodeBuild
49
+ project_root = self._detect_project_root()
52
50
  runtime_path = Path(self.runtime_directory).resolve()
53
51
  project_path = Path(project_root).resolve()
54
52
  cdk_out_path = project_path / 'cdk.out'
@@ -65,8 +63,9 @@ class CdkAppFactory:
65
63
  # If paths are on different drives (Windows), fallback to absolute
66
64
  self.outdir = str(cdk_out_path)
67
65
  else:
68
- # For local dev, use absolute path at project root
69
- self.outdir = os.path.join(project_root, 'cdk.out')
66
+ # For local dev: use CDK default (./cdk.out in current directory)
67
+ # This allows CDK CLI to find it when running from any directory
68
+ self.outdir = None
70
69
  else:
71
70
  self.outdir = outdir or self.args.outdir
72
71
 
cdk_factory/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.0"
1
+ __version__ = "0.9.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cdk_factory
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: CDK Factory. A QuickStarter and best practices setup for CDK projects
5
5
  Author-email: Eric Wilson <eric.wilson@geekcafe.com>
6
6
  License: MIT License
@@ -1,8 +1,8 @@
1
1
  cdk_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- cdk_factory/app.py,sha256=M8ZoOHJ5LKpcBOWRvhN0adLz9Pa0yXPLRdnPzasnASw,8471
2
+ cdk_factory/app.py,sha256=OXySeuN9YYwZmNkc9oKIAnwZSw8Vpta5MIWfwhMkmPY,8444
3
3
  cdk_factory/cdk.json,sha256=SKZKhJ2PBpFH78j-F8S3VDYW-lf76--Q2I3ON-ZIQfw,3106
4
4
  cdk_factory/cli.py,sha256=FGbCTS5dYCNsfp-etshzvFlGDCjC28r6rtzYbe7KoHI,6407
5
- cdk_factory/version.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
5
+ cdk_factory/version.py,sha256=UwJXM8JY2T3tE2id0K2k_lEaVThbRTrGO1mNibyzIz8,22
6
6
  cdk_factory/builds/README.md,sha256=9BBWd7bXpyKdMU_g2UljhQwrC9i5O_Tvkb6oPvndoZk,90
7
7
  cdk_factory/commands/command_loader.py,sha256=QbLquuP_AdxtlxlDy-2IWCQ6D-7qa58aphnDPtp_uTs,3744
8
8
  cdk_factory/configurations/base_config.py,sha256=JKjhNsy0RCUZy1s8n5D_aXXI-upR9izaLtCTfKYiV9k,9624
@@ -119,8 +119,8 @@ cdk_factory/utilities/lambda_function_utilities.py,sha256=S1GvBsY_q2cyUiaud3HORJ
119
119
  cdk_factory/utilities/os_execute.py,sha256=5Op0LY_8Y-pUm04y1k8MTpNrmQvcLmQHPQITEP7EuSU,1019
120
120
  cdk_factory/utils/api_gateway_utilities.py,sha256=If7Xu5s_UxmuV-kL3JkXxPLBdSVUKoLtohm0IUFoiV8,4378
121
121
  cdk_factory/workload/workload_factory.py,sha256=yBUDGIuB8-5p_mGcVFxsD2ZoZIziak3yh3LL3JvS0M4,5903
122
- cdk_factory-0.9.0.dist-info/METADATA,sha256=AwndbAlquZHs4tWAXDu4V_4vlDk2Sf2GUiSAXnWkAz4,2450
123
- cdk_factory-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
124
- cdk_factory-0.9.0.dist-info/entry_points.txt,sha256=S1DPe0ORcdiwEALMN_WIo3UQrW_g4YdQCLEsc_b0Swg,53
125
- cdk_factory-0.9.0.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
126
- cdk_factory-0.9.0.dist-info/RECORD,,
122
+ cdk_factory-0.9.1.dist-info/METADATA,sha256=ROeQUXNIHdxp8W7V8J-b-VjAafq9N0CHLNHSUmP9f0c,2450
123
+ cdk_factory-0.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
124
+ cdk_factory-0.9.1.dist-info/entry_points.txt,sha256=S1DPe0ORcdiwEALMN_WIo3UQrW_g4YdQCLEsc_b0Swg,53
125
+ cdk_factory-0.9.1.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
126
+ cdk_factory-0.9.1.dist-info/RECORD,,