Skip to content

Commit 8c2295e

Browse files
committed
docs: refine README
1 parent f7938bb commit 8c2295e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ CDK Construct for Python Lambda Functions using [uv](https://docs.astral.sh/uv/)
77
- ⚡️ Package and deploy Lambda Functions faster with `uv`'s speed
88
- 📦 Support workspaces in a monorepo with [uv workspaces](https://docs.astral.sh/uv/concepts/workspaces/)
99

10+
`uv-python-lambda` is based on [aws-lambda-python-alpha](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-lambda-python-alpha-readme.html) with some differences:
11+
12+
- It only supports `uv` for packaging - there is no Poetry or pip support
13+
- It supports workspaces so you can build multiple Lambda functions from different uv workspaces and have their dependencies included correctly. This is useful for, but not limited to, monorepos.
14+
1015
## API
1116

1217
See [API.md](API.md)

src/bundling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class Bundling {
148148
`cd ${options.outputDir}`, // uv pip install needs to be run from here for editable deps to relative paths to be resolved
149149
`uv sync ${uvCommonArgs} ${uvPackageArgs} --python-preference=only-system --compile-bytecode --no-dev --frozen --no-editable --link-mode=copy`,
150150
`uv export ${uvCommonArgs} ${uvPackageArgs} --no-dev --frozen --no-editable > ${reqsFile}`,
151-
`uv pip install -r ${reqsFile} --target ${options.outputDir} --reinstall --compile-bytecode --link-mode=copy`, // --editable $(grep -e "^\./" ${reqsFile})`,
151+
`uv pip install -r ${reqsFile} --target ${options.outputDir} --reinstall --compile-bytecode --link-mode=copy`,
152152
`rm -rf ${options.outputDir}/.venv`,
153153
]);
154154
commands.push(

0 commit comments

Comments
 (0)