pantry/projects/github.com/aws-cloudformation/cfn-lint/package.yml

32 lines
702 B
YAML
Raw Normal View History

distributable:
url: https://github.com/aws-cloudformation/cfn-lint/archive/v{{version}}.tar.gz
strip-components: 1
2024-06-07 19:33:49 +03:00
versions:
github: aws-cloudformation/cfn-lint
2024-06-07 19:33:49 +03:00
dependencies:
2024-06-07 19:33:49 +03:00
pkgx.sh: 1
pyyaml.org: '*'
github.com/benjaminp/six: '*'
2024-06-07 19:33:49 +03:00
build:
dependencies:
rust-lang.org: '*'
2024-06-07 19:33:49 +03:00
python.org: ~3.11
script:
2024-06-07 19:33:49 +03:00
# wrong version shipped
- run: sed -i 's/__version__ = ".*"/__version__ = "{{version}}"/' version.py
working-directory: src/cfnlint
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} cfn-lint
provides:
- bin/cfn-lint
2024-06-07 19:33:49 +03:00
test:
script:
- cfn-lint test.yml
2024-06-07 19:33:49 +03:00
- cfn-lint -v | grep {{version}}