ci: Update for new ruamel.yaml API
dustin/dustin.web/pipeline/head This commit looks good Details

The old `safe_load` and similar PyYAML compatibility functions have been
removed from recent(-ish) versions of _ruamel.yaml_.
Dustin 2025-08-26 07:52:55 -05:00
parent 2ec8465252
commit deb86460fe
2 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
python3 -m pip install --user ruamel.yaml
python3 /dev/fd/3 < songquotes.yml > public/songquotes.json 3<<EOF
from ruamel.yaml import safe_load as load
from ruamel.yaml import YAML
from json import dump
import sys
dump(load(sys.stdin), sys.stdout)
yaml = YAML()
dump(yaml.load(sys.stdin), sys.stdout)
EOF
tar -cJf dustin.web.tar.xz -C public .

View File

@ -5,7 +5,7 @@ spec:
- name: zola
image: git.pyrocufflink.net/containerimages/zola
- name: python
image: docker.io/python:3.10
image: docker.io/python:3
command:
- python
args: