Set up dns plugins to use pyproject.toml (#10425)

Final part of https://github.com/certbot/certbot/issues/10403

I tested running `tools/snap/generate_dnsplugins_snapcraft.sh
certbot-dns-dnsimple` and it put the correct description in to the
`snapcraft.yaml` file.
This commit is contained in:
ohemorange
2025-08-15 09:17:15 -07:00
committed by GitHub
parent d5dd8e47e1
commit 407dc158f6
28 changed files with 701 additions and 638 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ set -e
PLUGIN_PATH=$1
PLUGIN=$(basename "${PLUGIN_PATH}")
DESCRIPTION=$(sed -E -n "/[[:space:]]+description=/ s/[[:space:]]+description=['\"](.*)['\"],/\1/ p" "${PLUGIN_PATH}/setup.py")
DESCRIPTION=$(sed -E -n "/^description = / s/^description = ['\"](.*)['\"]/\1/ p" "${PLUGIN_PATH}/pyproject.toml")
mkdir -p "${PLUGIN_PATH}/snap"
cat <<EOF > "${PLUGIN_PATH}/snap/snapcraft.yaml"
# This file is generated automatically and should not be edited manually.