mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
+github.com/psf/black (#890)
* +github.com/psf/black * Fixed blackd * Changed EXTRA_DEPS to OPTIONAL_DEPS * Switch from python-venv.sh and ENV VAR to python-venv.py and arg; better test --------- Co-authored-by: James Reynolds <magnsuviri@me.com>
This commit is contained in:
parent
40c141ce80
commit
359fbb4768
1 changed files with 24 additions and 0 deletions
24
projects/github.com/psf/black/package.yml
Normal file
24
projects/github.com/psf/black/package.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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'
|
||||||
|
|
||||||
|
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 }}"
|
Loading…
Reference in a new issue