cdk-factory 0.9.2__py3-none-any.whl → 0.9.3__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.
Potentially problematic release.
This version of cdk-factory might be problematic. Click here for more details.
- cdk_factory/app.py +8 -25
- cdk_factory/version.py +1 -1
- {cdk_factory-0.9.2.dist-info → cdk_factory-0.9.3.dist-info}/METADATA +1 -1
- {cdk_factory-0.9.2.dist-info → cdk_factory-0.9.3.dist-info}/RECORD +7 -7
- {cdk_factory-0.9.2.dist-info → cdk_factory-0.9.3.dist-info}/WHEEL +0 -0
- {cdk_factory-0.9.2.dist-info → cdk_factory-0.9.3.dist-info}/entry_points.txt +0 -0
- {cdk_factory-0.9.2.dist-info → cdk_factory-0.9.3.dist-info}/licenses/LICENSE +0 -0
cdk_factory/app.py
CHANGED
|
@@ -37,32 +37,15 @@ 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
|
-
#
|
|
41
|
-
|
|
40
|
+
# For both local dev and CodeBuild: use CDK default (./cdk.out in current directory)
|
|
41
|
+
# This ensures CDK CLI can always find the files where it expects them
|
|
42
|
+
# CodeBuild buildspec handles artifact collection from the correct location
|
|
43
|
+
self.outdir = None
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
runtime_path = Path(self.runtime_directory).resolve()
|
|
48
|
-
project_path = Path(project_root).resolve()
|
|
49
|
-
cdk_out_path = project_path / 'cdk.out'
|
|
50
|
-
|
|
51
|
-
try:
|
|
52
|
-
# Calculate relative path from runtime directory to project_root/cdk.out
|
|
53
|
-
relative_path = os.path.relpath(cdk_out_path, runtime_path)
|
|
54
|
-
self.outdir = relative_path
|
|
55
|
-
if in_codebuild:
|
|
56
|
-
print(f"📦 CodeBuild detected: using relative path '{relative_path}'")
|
|
57
|
-
else:
|
|
58
|
-
print(f"📦 Pipeline mode: using relative path '{relative_path}'")
|
|
59
|
-
except ValueError:
|
|
60
|
-
# If paths are on different drives (Windows), fallback to absolute
|
|
61
|
-
self.outdir = str(cdk_out_path)
|
|
62
|
-
else:
|
|
63
|
-
# For local dev: use CDK default (./cdk.out in current directory)
|
|
64
|
-
# This allows CDK CLI to find it when running 'cdk synth' or 'cdk deploy'
|
|
65
|
-
self.outdir = None
|
|
45
|
+
# Log for transparency
|
|
46
|
+
if os.getenv('CODEBUILD_SRC_DIR'):
|
|
47
|
+
print(f"📦 CodeBuild detected: using CDK default (./cdk.out)")
|
|
48
|
+
print(f" └─ BuildSpec will collect artifacts from correct location")
|
|
66
49
|
else:
|
|
67
50
|
self.outdir = outdir or self.args.outdir
|
|
68
51
|
|
cdk_factory/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.9.
|
|
1
|
+
__version__ = "0.9.3"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
cdk_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
cdk_factory/app.py,sha256=
|
|
2
|
+
cdk_factory/app.py,sha256=TR9U84oc20x2oPH3tcSgr8ukxddqMQjVHILTgvBNsA4,8980
|
|
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=
|
|
5
|
+
cdk_factory/version.py,sha256=xKd3pzbczuMsdB08eLAOqZDUd_q1IRxwZ_ccAFL4c4A,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.
|
|
123
|
-
cdk_factory-0.9.
|
|
124
|
-
cdk_factory-0.9.
|
|
125
|
-
cdk_factory-0.9.
|
|
126
|
-
cdk_factory-0.9.
|
|
122
|
+
cdk_factory-0.9.3.dist-info/METADATA,sha256=J6-gWzSHahIyQU5gNMKs8UGYsKfD32XRDt0thjCL9sk,2450
|
|
123
|
+
cdk_factory-0.9.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
124
|
+
cdk_factory-0.9.3.dist-info/entry_points.txt,sha256=S1DPe0ORcdiwEALMN_WIo3UQrW_g4YdQCLEsc_b0Swg,53
|
|
125
|
+
cdk_factory-0.9.3.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
|
|
126
|
+
cdk_factory-0.9.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|