pantry/projects/aws.amazon.com/sam/package.yml

26 lines
526 B
YAML
Raw Normal View History

distributable:
url: https://github.com/aws/aws-sam-cli/archive/refs/tags/{{version.tag}}.tar.gz
strip-components: 1
versions:
github: aws/aws-sam-cli
dependencies:
pkgx.sh: ^1
build:
dependencies:
python.org: ^3.11
rust-lang.org: '*'
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} sam
provides:
- bin/sam
test:
- sam --version | grep {{version}}
- sam validate --region us-east-1 2>&1 | grep 'is a valid SAM Template'