pantry/projects/pytest.org/package.yml
Jacob Heider a82c31eebb
fix(pytest)[1]
pytest used a v in their branch name; here's hoping they stay consistent.
2023-10-24 16:33:45 -04:00

24 lines
543 B
YAML

distributable:
url: https://github.com/pytest-dev/pytest/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: pytest-dev/pytest/releases/tags
strip: /^v/
dependencies:
python.org: '>=3.7<3.12'
build:
python-venv.sh {{prefix}}/bin/pytest
provides:
- bin/pytest
test:
script: |
pytest --version
# Must return true to pass test; we check for the failure response afterwards explicitly.
pytest >> test.txt || true
cat test.txt | grep "FAILED test_fail.py::test_answer - assert 4 == 5"