From 359534f9c0c8318d44c2263e9d4426512289199a Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Tue, 9 Mar 2021 11:08:52 +0000 Subject: [PATCH] fix(python): change Python namespace to `aws_cdk` The current Python namespace in v2 for the monopackage is `aws_cdk_lib`, which means people need to update a lot of imports their source code. `aws_cdk` is the namespace used by the v1 packages, which means people who have already written code against v1 have less updating to do. Unfortunately there will still be SOME updating, as some classes *used* to be in `aws_cdk.core` but are now in `aws_cdk` directly. Tested that the `aws_cdk_lib` package that vends `aws_cdk/__init__.py` can still be installed without problems alongside `aws_cdk.cx_api` which vends `aws_cdk/cx_api/__init__.py`, and others. --- packages/aws-cdk-lib/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/package.json b/packages/aws-cdk-lib/package.json index 3fa1d9e758c0a..a921736614acb 100644 --- a/packages/aws-cdk-lib/package.json +++ b/packages/aws-cdk-lib/package.json @@ -63,7 +63,7 @@ }, "python": { "distName": "aws-cdk-lib", - "module": "aws_cdk_lib" + "module": "aws_cdk" } }, "projectReferences": false