mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
d437c3a331
closes #4580
25 lines
570 B
YAML
25 lines
570 B
YAML
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:
|
|
python.org: '>=3.7<3.12'
|
|
gnu.org/which: '*'
|
|
|
|
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 }}"
|