-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
37 lines (31 loc) · 1.61 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[tool.poetry]
name = "rustifying-serverless"
version = "0.1.0"
description = "How to use Rust in your existing Serverless projects"
authors = ["Efi Merdler-Kravitz <[email protected]>"]
readme = "README.md"
[tool.poe.tasks]
build-python-lib = "maturin build -m s3-ops-rust-pyo3-lib/Cargo.toml --strip --release --zig -o .rust-lib"
build-node-lib = { shell = "napi build --platform --release --config ./s3-ops-rust-napi-lib/package.json --cargo-cwd ./s3-ops-rust-napi-lib && mv s3-ops-rust-napi-lib.linux-x64-gnu.node index.js index.d.ts ./s3-admin-app/list-buckets-rust-node" }
deploy-app = { shell = "cd s3-admin-app && sam build --no-cached && sam deploy" }
build-and-deploy-app = ["build-python-lib", "build-node-lib", "deploy-app"]
build-extension = "cargo lambda build --manifest-path analytics-extension/Cargo.toml --extension --release"
deploy-extension = "cargo lambda deploy --manifest-path analytics-extension/Cargo.toml --extension"
build-and-deploy-extension = ["build-extension", "deploy-extension"]
update-dependencies = { shell = "poetry remove s3-ops-rust && poetry add .rust-lib/s3_ops_rust-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl --group dev" }
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
aws-lambda-powertools = { extras = ["aws-sdk"], version = "^2.23.1" }
black = "^23.7.0"
ipython = "^8.14.0"
wheel = "^0.41.2"
aiobotocore = "^2.6.0"
uvloop = "^0.17.0"
aiolimiter = "^1.1.0"
[tool.poetry.group.rust-dev-tools.dependencies]
maturin = "^1.2.3"
cargo-lambda = "^0.21.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"