diff --git a/.gitignore b/.gitignore index 85c17de92..5169defd6 100644 --- a/.gitignore +++ b/.gitignore @@ -64,3 +64,4 @@ certbot-dns*/certbot-dns*_amd64*.txt certbot-dns*/certbot-dns*_arm*.txt /certbot_amd64*.txt /certbot_arm*.txt +certbot-dns*/snap diff --git a/certbot-dns-cloudflare/snap/hooks/post-refresh b/certbot-dns-cloudflare/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-cloudflare/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-cloudflare/snap/snapcraft.yaml b/certbot-dns-cloudflare/snap/snapcraft.yaml deleted file mode 100644 index 536f09e12..000000000 --- a/certbot-dns-cloudflare/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-cloudflare -summary: Cloudflare DNS Authenticator plugin for Certbot -description: Cloudflare DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-cloudflare - -parts: - certbot-dns-cloudflare: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-cloudxns/snap/hooks/post-refresh b/certbot-dns-cloudxns/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-cloudxns/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-cloudxns/snap/snapcraft.yaml b/certbot-dns-cloudxns/snap/snapcraft.yaml deleted file mode 100644 index 7af52f684..000000000 --- a/certbot-dns-cloudxns/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-cloudxns -summary: CloudXNS DNS Authenticator plugin for Certbot -description: CloudXNS DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-cloudxns - -parts: - certbot-dns-cloudxns: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-digitalocean/snap/hooks/post-refresh b/certbot-dns-digitalocean/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-digitalocean/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-digitalocean/snap/snapcraft.yaml b/certbot-dns-digitalocean/snap/snapcraft.yaml deleted file mode 100644 index db8f6b347..000000000 --- a/certbot-dns-digitalocean/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-digitalocean -summary: DigitalOcean DNS Authenticator plugin for Certbot -description: DigitalOcean DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-digitalocean - -parts: - certbot-dns-digitalocean: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-dnsimple/snap/hooks/post-refresh b/certbot-dns-dnsimple/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-dnsimple/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-dnsimple/snap/snapcraft.yaml b/certbot-dns-dnsimple/snap/snapcraft.yaml deleted file mode 100644 index 527f9e08b..000000000 --- a/certbot-dns-dnsimple/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-dnsimple -summary: DNSimple DNS Authenticator plugin for Certbot -description: DNSimple DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-dnsimple - -parts: - certbot-dns-dnsimple: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-dnsmadeeasy/snap/hooks/post-refresh b/certbot-dns-dnsmadeeasy/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-dnsmadeeasy/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml b/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml deleted file mode 100644 index 2dd807825..000000000 --- a/certbot-dns-dnsmadeeasy/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-dnsmadeeasy -summary: DNS Made Easy DNS Authenticator plugin for Certbot -description: DNS Made Easy DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-dnsmadeeasy - -parts: - certbot-dns-dnsmadeeasy: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-gehirn/snap/hooks/post-refresh b/certbot-dns-gehirn/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-gehirn/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-gehirn/snap/snapcraft.yaml b/certbot-dns-gehirn/snap/snapcraft.yaml deleted file mode 100644 index 44a85e3a5..000000000 --- a/certbot-dns-gehirn/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-gehirn -summary: Gehirn Infrastructure Service DNS Authenticator plugin for Certbot -description: Gehirn Infrastructure Service DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-gehirn - -parts: - certbot-dns-gehirn: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-google/snap/hooks/post-refresh b/certbot-dns-google/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-google/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-google/snap/snapcraft.yaml b/certbot-dns-google/snap/snapcraft.yaml deleted file mode 100644 index 6450d9d26..000000000 --- a/certbot-dns-google/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-google -summary: Google Cloud DNS Authenticator plugin for Certbot -description: Google Cloud DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-google - -parts: - certbot-dns-google: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-linode/snap/hooks/post-refresh b/certbot-dns-linode/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-linode/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-linode/snap/snapcraft.yaml b/certbot-dns-linode/snap/snapcraft.yaml deleted file mode 100644 index 5722b4d3d..000000000 --- a/certbot-dns-linode/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-linode -summary: Linode DNS Authenticator plugin for Certbot -description: Linode DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-linode - -parts: - certbot-dns-linode: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-luadns/snap/hooks/post-refresh b/certbot-dns-luadns/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-luadns/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-luadns/snap/snapcraft.yaml b/certbot-dns-luadns/snap/snapcraft.yaml deleted file mode 100644 index e36c3d3e7..000000000 --- a/certbot-dns-luadns/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-luadns -summary: LuaDNS Authenticator plugin for Certbot -description: LuaDNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-luadns - -parts: - certbot-dns-luadns: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-nsone/snap/hooks/post-refresh b/certbot-dns-nsone/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-nsone/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-nsone/snap/snapcraft.yaml b/certbot-dns-nsone/snap/snapcraft.yaml deleted file mode 100644 index 7e50eaef1..000000000 --- a/certbot-dns-nsone/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-nsone -summary: NS1 DNS Authenticator plugin for Certbot -description: NS1 DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-nsone - -parts: - certbot-dns-nsone: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-ovh/snap/hooks/post-refresh b/certbot-dns-ovh/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-ovh/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-ovh/snap/snapcraft.yaml b/certbot-dns-ovh/snap/snapcraft.yaml deleted file mode 100644 index 22a762846..000000000 --- a/certbot-dns-ovh/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-ovh -summary: OVH DNS Authenticator plugin for Certbot -description: OVH DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-ovh - -parts: - certbot-dns-ovh: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-rfc2136/snap/hooks/post-refresh b/certbot-dns-rfc2136/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-rfc2136/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-rfc2136/snap/snapcraft.yaml b/certbot-dns-rfc2136/snap/snapcraft.yaml deleted file mode 100644 index 53aa0e838..000000000 --- a/certbot-dns-rfc2136/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-rfc2136 -summary: RFC 2136 DNS Authenticator plugin for Certbot -description: RFC 2136 DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-rfc2136 - -parts: - certbot-dns-rfc2136: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-route53/snap/hooks/post-refresh b/certbot-dns-route53/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-route53/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-route53/snap/snapcraft.yaml b/certbot-dns-route53/snap/snapcraft.yaml deleted file mode 100644 index 4f23f4e7d..000000000 --- a/certbot-dns-route53/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-route53 -summary: Route53 DNS Authenticator plugin for Certbot -description: Route53 DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-route53 - -parts: - certbot-dns-route53: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/certbot-dns-sakuracloud/snap/hooks/post-refresh b/certbot-dns-sakuracloud/snap/hooks/post-refresh deleted file mode 100644 index 717714c20..000000000 --- a/certbot-dns-sakuracloud/snap/hooks/post-refresh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -e -# This file is generated automatically and should not be edited manually. - -# get certbot version -if [ ! -f "$SNAP/certbot-shared/certbot-version.txt" ]; then - echo "No certbot version available; not doing version comparison check" >> "$SNAP_DATA/debuglog" - exit 0 -fi -cb_installed=$(cat $SNAP/certbot-shared/certbot-version.txt) - -# get required certbot version for plugin. certbot version must be at least the plugin's -# version. note that this is not the required version in setup.py, but the version number itself. -cb_required=$(grep -oP "version = '\K.*(?=')" $SNAP/setup.py) - - -$SNAP/bin/python3 -c "import sys; from packaging import version; sys.exit(1) if version.parse('$cb_installed') < version.parse('$cb_required') else sys.exit(0)" || exit_code=$? -if [ "$exit_code" -eq 1 ]; then - echo "Certbot is version $cb_installed but needs to be at least $cb_required before" \ - "this plugin can be updated; will try again on next refresh." - exit 1 -fi diff --git a/certbot-dns-sakuracloud/snap/snapcraft.yaml b/certbot-dns-sakuracloud/snap/snapcraft.yaml deleted file mode 100644 index 077c82330..000000000 --- a/certbot-dns-sakuracloud/snap/snapcraft.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# This file is generated automatically and should not be edited manually. -name: certbot-dns-sakuracloud -summary: Sakura Cloud DNS Authenticator plugin for Certbot -description: Sakura Cloud DNS Authenticator plugin for Certbot -confinement: strict -grade: stable -base: core20 -adopt-info: certbot-dns-sakuracloud - -parts: - certbot-dns-sakuracloud: - plugin: python - source: . - constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt] - override-pull: | - snapcraftctl pull - snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"` - build-environment: - - SNAP_BUILD: "True" - # To build cryptography and cffi if needed - build-packages: [gcc, libffi-dev, libssl-dev, python3-dev] - certbot-metadata: - plugin: dump - source: . - stage: [setup.py, certbot-shared] - override-pull: | - snapcraftctl pull - mkdir -p $SNAPCRAFT_PART_SRC/certbot-shared - -slots: - certbot: - interface: content - content: certbot-1 - read: - - $SNAP/lib/python3.8/site-packages - -plugs: - certbot-metadata: - interface: content - content: metadata-1 - target: $SNAP/certbot-shared diff --git a/tools/snap/build_remote.py b/tools/snap/build_remote.py index 642b444b9..285521190 100755 --- a/tools/snap/build_remote.py +++ b/tools/snap/build_remote.py @@ -34,15 +34,6 @@ def _build_snap(target, archs, status, lock): workspace = CERTBOT_DIR else: workspace = join(CERTBOT_DIR, target) - with tempfile.NamedTemporaryFile() as f: - subprocess.check_output( - ('"{0}" tools/strip_hashes.py letsencrypt-auto-source/pieces/dependency-requirements.txt ' - '| grep -v python-augeas > "{1}"').format(sys.executable, f.name), - shell=True, cwd=CERTBOT_DIR) - subprocess.check_output( - ('"{0}" tools/merge_requirements.py tools/dev_constraints.txt ' - '"{1}" > "{2}/snap-constraints.txt"').format(sys.executable, f.name, workspace), - shell=True, cwd=CERTBOT_DIR) retry = 3 while retry: @@ -165,6 +156,12 @@ def main(): targets.remove('DNS_PLUGINS') targets.update(PLUGINS) + # If we're building anything other than just Certbot, we need to + # generate the snapcraft files for the DNS plugins. + if targets != set(('certbot',)): + subprocess.run(['tools/snap/generate_dnsplugins_all.sh'], + check=True, cwd=CERTBOT_DIR) + print('Start remote snap builds...') print(f' - archs: {", ".join(archs)}') print(f' - projects: {", ".join(sorted(targets))}')