mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 00:30:48 +03:00
python yaml tweaks
This commit is contained in:
parent
cfd38daa87
commit
3263c46165
|
@ -32,4 +32,4 @@ test:
|
|||
pipenv run pycowsay "Hello World"
|
||||
|
||||
provides:
|
||||
- bin/pipenv
|
||||
- bin/pipenv
|
||||
|
|
|
@ -10,8 +10,7 @@ dependencies:
|
|||
python.org: '>=3.8'
|
||||
|
||||
build:
|
||||
script:
|
||||
python-venv.sh {{prefix}}/bin/pre-commit
|
||||
python-venv.sh {{prefix}}/bin/pre-commit
|
||||
|
||||
provides:
|
||||
- bin/pre-commit
|
||||
|
@ -39,4 +38,3 @@ test:
|
|||
rev: v0.9.1
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
|
||||
|
|
|
@ -9,10 +9,8 @@ versions:
|
|||
dependencies:
|
||||
python.org: '>=3.7'
|
||||
|
||||
|
||||
build:
|
||||
script:
|
||||
python-venv.sh {{prefix}}/bin/virtualenv
|
||||
python-venv.sh {{prefix}}/bin/virtualenv
|
||||
|
||||
test:
|
||||
script: |
|
||||
|
@ -30,6 +28,5 @@ test:
|
|||
deactivate # exit venv
|
||||
venv_dir/bin/pycowsay "All tests pass!" # verify that pycowsay was installed inside the venv
|
||||
|
||||
|
||||
provides:
|
||||
- bin/virtualenv
|
||||
|
|
|
@ -2,9 +2,6 @@ distributable:
|
|||
url: https://github.com/ytdl-org/youtube-dl/releases/download/{{version}}/youtube-dl-{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
#NOTE copy-pasta from mesonbuild.com
|
||||
#TODO make a brewkit/ script to do this automatically
|
||||
|
||||
versions:
|
||||
github: ytdl-org/youtube-dl
|
||||
strip: /^youtube-dl /
|
||||
|
@ -15,7 +12,7 @@ dependencies:
|
|||
build:
|
||||
python-venv.sh {{prefix}}/bin/youtube-dl
|
||||
|
||||
test: |
|
||||
test:
|
||||
youtube-dl --simulate https://youtu.be/pOtd1cbOP7k
|
||||
|
||||
provides:
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
self="${BASH_SOURCE[0]}"
|
||||
if test -L "$self"; then
|
||||
prefix="$(dirname "$self")"
|
||||
suffix="$(dirname $(readlink $self))"
|
||||
LIBEXEC="$(cd $prefix/$suffix && pwd)"
|
||||
else
|
||||
LIBEXEC="$(cd "$(dirname "$self")" && pwd)"
|
||||
fi
|
||||
source "$LIBEXEC/activate"
|
||||
exec "$LIBEXEC"/youtube-dl.py "$@"
|
|
@ -7,13 +7,15 @@ versions:
|
|||
strip: /^yt-dlp /
|
||||
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99 # to build brotli pymod
|
||||
python.org: 3
|
||||
|
||||
build:
|
||||
python-venv.sh {{prefix}}/bin/yt-dlp
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99 # to build brotli pymod
|
||||
script:
|
||||
python-venv.sh {{prefix}}/bin/yt-dlp
|
||||
|
||||
test: |
|
||||
test:
|
||||
yt-dlp --simulate https://youtu.be/pOtd1cbOP7k
|
||||
|
||||
provides:
|
||||
|
|
Loading…
Reference in a new issue