python yaml tweaks

This commit is contained in:
Max Howell 2023-03-01 05:32:36 -05:00
parent cfd38daa87
commit 3263c46165
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC
6 changed files with 9 additions and 26 deletions

View file

@ -32,4 +32,4 @@ test:
pipenv run pycowsay "Hello World"
provides:
- bin/pipenv
- bin/pipenv

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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 "$@"

View file

@ -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: