mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
+jinja2
This commit is contained in:
parent
8b10c587d9
commit
b381962059
1 changed files with 25 additions and 0 deletions
25
projects/github.com/mattrobenolt/jinja2-cli/package.yml
Normal file
25
projects/github.com/mattrobenolt/jinja2-cli/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/mattrobenolt/jinja2-cli/archive/refs/tags/{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: mattrobenolt/jinja2-cli/tags
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
python.org: '>=3.7'
|
||||||
|
|
||||||
|
build: python-venv.sh {{prefix}}/bin/jinja2
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/jinja2
|
||||||
|
|
||||||
|
test:
|
||||||
|
script: |
|
||||||
|
echo "{{ title }}" > test.tmpl
|
||||||
|
OUT="$(jinja2 test.tmpl $FIXTURE --format=json)"
|
||||||
|
test "$OUT" = "tea.xyz"
|
||||||
|
fixture: |
|
||||||
|
{
|
||||||
|
"title": "tea.xyz",
|
||||||
|
"url": "https://tea.xyz"
|
||||||
|
}
|
Loading…
Reference in a new issue