mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
python yaml tweaks
This commit is contained in:
parent
cfd38daa87
commit
3263c46165
|
@ -10,7 +10,6 @@ dependencies:
|
||||||
python.org: '>=3.8'
|
python.org: '>=3.8'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script:
|
|
||||||
python-venv.sh {{prefix}}/bin/pre-commit
|
python-venv.sh {{prefix}}/bin/pre-commit
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
|
@ -39,4 +38,3 @@ test:
|
||||||
rev: v0.9.1
|
rev: v0.9.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,7 @@ versions:
|
||||||
dependencies:
|
dependencies:
|
||||||
python.org: '>=3.7'
|
python.org: '>=3.7'
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script:
|
|
||||||
python-venv.sh {{prefix}}/bin/virtualenv
|
python-venv.sh {{prefix}}/bin/virtualenv
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -30,6 +28,5 @@ test:
|
||||||
deactivate # exit venv
|
deactivate # exit venv
|
||||||
venv_dir/bin/pycowsay "All tests pass!" # verify that pycowsay was installed inside the venv
|
venv_dir/bin/pycowsay "All tests pass!" # verify that pycowsay was installed inside the venv
|
||||||
|
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/virtualenv
|
- bin/virtualenv
|
||||||
|
|
|
@ -2,9 +2,6 @@ distributable:
|
||||||
url: https://github.com/ytdl-org/youtube-dl/releases/download/{{version}}/youtube-dl-{{version}}.tar.gz
|
url: https://github.com/ytdl-org/youtube-dl/releases/download/{{version}}/youtube-dl-{{version}}.tar.gz
|
||||||
strip-components: 1
|
strip-components: 1
|
||||||
|
|
||||||
#NOTE copy-pasta from mesonbuild.com
|
|
||||||
#TODO make a brewkit/ script to do this automatically
|
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: ytdl-org/youtube-dl
|
github: ytdl-org/youtube-dl
|
||||||
strip: /^youtube-dl /
|
strip: /^youtube-dl /
|
||||||
|
@ -15,7 +12,7 @@ dependencies:
|
||||||
build:
|
build:
|
||||||
python-venv.sh {{prefix}}/bin/youtube-dl
|
python-venv.sh {{prefix}}/bin/youtube-dl
|
||||||
|
|
||||||
test: |
|
test:
|
||||||
youtube-dl --simulate https://youtu.be/pOtd1cbOP7k
|
youtube-dl --simulate https://youtu.be/pOtd1cbOP7k
|
||||||
|
|
||||||
provides:
|
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 /
|
strip: /^yt-dlp /
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
tea.xyz/gx/cc: c99 # to build brotli pymod
|
|
||||||
python.org: 3
|
python.org: 3
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99 # to build brotli pymod
|
||||||
|
script:
|
||||||
python-venv.sh {{prefix}}/bin/yt-dlp
|
python-venv.sh {{prefix}}/bin/yt-dlp
|
||||||
|
|
||||||
test: |
|
test:
|
||||||
yt-dlp --simulate https://youtu.be/pOtd1cbOP7k
|
yt-dlp --simulate https://youtu.be/pOtd1cbOP7k
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
|
|
Loading…
Reference in a new issue