distributable:
  - url: https://downloads.sourceforge.net/project/docutils/docutils/{{version.marketing}}/docutils-{{version.marketing}}.tar.gz
    strip-components: 1
  # 0.21 named its source distribution oddly
  - url: https://downloads.sourceforge.net/project/docutils/docutils/{{version.marketing}}/docutils-{{version.marketing}}.post1.tar.gz
    strip-components: 1

versions:
  url: https://sourceforge.net/projects/docutils/files/docutils/
  match: /docutils\/\d+\.\d+(\.\d+)?\/"/
  strip:
    - /docutils\//
    - /\/"/

dependencies:
  pkgx.sh: ^1

build:
  dependencies:
    python.org: ~3.11
  script:
    # python-venv.sh {{prefix}}/bin/docutils
    - bkpyvenv stage {{prefix}} {{version}}
    - ${{prefix}}/venv/bin/pip install .
    - bkpyvenv seal {{prefix}} docutils

provides:
  - bin/docutils

test:
  fixture: |
    - This is a bullet list.
    - Bullets can be "*", "+", or "-".
  script: docutils $FIXTURE test.html
