Skip to content

Commit a8ab43c

Browse files
ran-isenbergRan Isenberg
and
Ran Isenberg
authored
feature: upgrade to poetry v2 (#907)
Co-authored-by: Ran Isenberg <ran.isenberg@ranthebuilder.cloud>
1 parent a2e8d84 commit a8ab43c

File tree

9 files changed

+317
-1013
lines changed

9 files changed

+317
-1013
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
exclude: "^(?!helpers/)"
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
2828
# Ruff version.
29-
rev: v0.8.4
29+
rev: v0.9.1
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Ran Isenberg
3+
Copyright (c) 2025 Ran Isenberg
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ Answer the questions to select repo name, service name, etc.:
5454

5555
```bash
5656
cd {new repo folder}
57-
poetry shell
57+
poetry env activate
5858
make deploy
5959
```
6060

61+
Make sure you have poetry v2 and above.
62+
6163
You can also run 'make pr' will run all checks, synth, file formatters , unit tests, deploy to AWS and run integration and E2E tests.
6264

6365
## **The Problem**

docs/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: AWS Lambda Cookbook Project Getting started
77
* **Docker** - install [Docker](https://www.docker.com/){target="_blank"}. Required for the Lambda layer packaging process.
88
* **[AWS CDK](cdk.md)** - Required for synth & deploying the AWS Cloudformation stack. Run CDK [Bootstrap](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) on your AWS account and region.
99
* Python 3.13
10-
* [poetry](https://pypi.org/project/poetry/){target="_blank"} - Make sure to run ``poetry config --local virtualenvs.in-project true`` so all dependencies are installed in the project '.venv' folder.
10+
* [poetry](https://pypi.org/project/poetry/){target="_blank"} - Make sure to have poetry v2 and above and to run ``poetry config --local virtualenvs.in-project true`` so all dependencies are installed in the project '.venv' folder.
1111
* For Windows based machines, use the Makefile_windows version (rename to Makefile). Default Makefile is for Mac/Linux.
1212

1313
## Getting Started

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ markdown_extensions:
7676
class: mermaid
7777
format: !!python/name:pymdownx.superfences.fence_code_format
7878

79-
copyright: Copyright &copy; 2024 Ran Isenberg
79+
copyright: Copyright &copy; 2025 Ran Isenberg
8080

8181
plugins:
8282
- git-revision-date

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"aws-cdk": "2.173.4"
3+
"aws-cdk": "2.175.1"
44
}
55
}

poetry.lock

Lines changed: 297 additions & 1001 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[build-system]
2+
requires = ["poetry>=2.0.1"]
3+
build-backend = "poetry.core.masonry.api"
14
[tool.poetry]
25
name = "aws_lambda_handler_cookbook"
36
version = "3.0.0"
@@ -15,6 +18,7 @@ readme = "README.md"
1518
keywords = ["aws lambda cookbook", "guide to aws lambda", "cdk blueprint", "best practices", "serverless service blueprint"]
1619
license = "MIT-0"
1720

21+
1822
[tool.poetry.dependencies]
1923
python = "^3.13.0"
2024
pydantic = {version = "^2.0.3"}
@@ -25,7 +29,7 @@ cachetools = "*"
2529
boto3 = "^1.26.125"
2630
aws-lambda-env-modeler = "*"
2731

28-
[tool.poetry.dev-dependencies]
32+
[tool.poetry.group.dev.dependencies]
2933
# CDK
3034
service-cdk = {path = "cdk", develop = true}
3135
aws-cdk-lib = ">=2.130.0"
@@ -53,9 +57,11 @@ types-cachetools = "*"
5357
mypy = "*"
5458
types-requests = "*"
5559
toml = "*"
56-
poetry-plugin-export = "*"
5760
mkdocs-render-swagger-plugin = "*"
5861

62+
[tool.poetry.requires-plugins]
63+
poetry-plugin-export = ">=1.9"
64+
5965
[tool.pytest.ini_options]
6066
testpaths = "tests"
6167

0 commit comments

Comments
 (0)