pantry/projects/pytest.org/package.yml

30 lines
696 B
YAML
Raw Normal View History

distributable:
2024-01-05 04:27:30 +03:00
url: https://github.com/pytest-dev/pytest/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1
versions:
2023-03-04 00:59:51 +03:00
github: pytest-dev/pytest/releases/tags
2023-10-24 23:09:14 +03:00
strip: /^v/
dependencies:
2024-01-05 04:27:30 +03:00
pkgx.sh: ^1
build:
2024-01-05 04:27:30 +03:00
dependencies:
python.org: '>=3.7<3.12'
git-scm.org: ^2
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} pytest
provides:
- bin/pytest
test:
2024-01-05 04:27:30 +03:00
script:
- pytest --version
# Must return true to pass test; we check for the failure response afterwards explicitly.
2024-01-05 04:27:30 +03:00
- pytest >> test.txt || true
- cat test.txt | grep "FAILED test_fail.py::test_answer - assert 4 == 5"