mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:19 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user