From 4a2618d41552d1297a204dbd2e1bf69952e3bd24 Mon Sep 17 00:00:00 2001 From: Robie Basak Date: Tue, 3 Sep 2019 11:45:20 +0100 Subject: [PATCH] Add CERTBOT_PLUGIN_PATH support Initial revision Fix interface export path Switch to strict confinement Normalise slot parameters --- certbot-dns-dnsimple/snap/snapcraft.yaml | 22 ++++++++++++++++++++++ certbot/certbot/_internal/plugins/disco.py | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 certbot-dns-dnsimple/snap/snapcraft.yaml diff --git a/certbot-dns-dnsimple/snap/snapcraft.yaml b/certbot-dns-dnsimple/snap/snapcraft.yaml new file mode 100644 index 00000000000..ade7d7e8694 --- /dev/null +++ b/certbot-dns-dnsimple/snap/snapcraft.yaml @@ -0,0 +1,22 @@ +name: certbot-dns-dnsimple +version: script +version-script: cd parts/certbot-dns-dnsimple/src && git describe|sed s/^v// +summary: DNSimple DNS Authenticator plugin for Certbot +description: TBC +confinement: strict +grade: devel + +parts: + certbot-dns-dnsimple: + plugin: python + source: git://github.com/certbot/certbot + source-branch: master + source-subdir: certbot-dns-dnsimple + python-version: python3 + +slots: + certbot: + interface: content + content: certbot-1 + read: + - $SNAP/lib/python3.5/site-packages diff --git a/certbot/certbot/_internal/plugins/disco.py b/certbot/certbot/_internal/plugins/disco.py index f1d89f06a0f..4fd20c16ed1 100644 --- a/certbot/certbot/_internal/plugins/disco.py +++ b/certbot/certbot/_internal/plugins/disco.py @@ -2,6 +2,8 @@ import collections import itertools import logging +import os +import sys import pkg_resources import six