2023-04-16 17:16:04 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/psf/black/archive/refs/tags/{{ version }}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: psf/black/releases/tags
|
|
|
|
strip: /^v/
|
|
|
|
|
|
|
|
dependencies:
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: '>=3.7<3.12'
|
2023-04-16 17:16:04 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
python-venv.py {{prefix}}/bin/black --extra d
|
|
|
|
cp {{prefix}}/bin/black {{prefix}}/bin/blackd
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/black
|
|
|
|
- bin/blackd
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
test "$(black --version | grep black | sed 's/.*, \([^ ]*\) .*/\1/')" = "{{ version }}"
|
|
|
|
test "$(blackd --version | sed 's/.* //')" = "{{ version }}"
|