distributable:
  url: https://github.com/pypa/build/archive/refs/tags/{{version.tag}}.tar.gz
  strip-components: 1

versions:
  github: pypa/build/tags

dependencies:
  pkgx.sh: ^1

build:
  dependencies:
    python.org: '>=3<3.12'
  script:
    - bkpyvenv stage {{prefix}} {{version}}
    - ${{prefix}}/venv/bin/pip install .
    - bkpyvenv seal {{prefix}} pyproject-build

provides:
  - bin/pyproject-build

test: pyproject-build --version | grep {{version}}
