From 6343505069eb684e08f19eefb1cf76c2db0be48d Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 28 Apr 2020 12:21:01 -0700 Subject: [PATCH] Build constraints.txt in snapcraft. --- snap/snapcraft.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 2e4f68c00..df0ed6a57 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -47,13 +47,16 @@ parts: plugin: python source: . source-subdir: acme - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] + override-pull: | + snapcraftctl pull + $SNAPCRAFT_PART_SRC/tools/strip_hashes.py $SNAPCRAFT_PART_SRC/letsencrypt-auto-source/pieces/dependency-requirements.txt > $SNAPCRAFT_STAGE/constraints.txt python-version: python3 certbot: plugin: python source: . source-subdir: certbot - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 after: [acme] override-pull: | @@ -66,7 +69,7 @@ parts: plugin: python source: . source-subdir: certbot-apache - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 after: [python-augeas, certbot] stage-packages: [libaugeas0] @@ -77,7 +80,7 @@ parts: plugin: python source: . source-subdir: certbot-nginx - constraints: [$SNAPCRAFT_PART_SRC/constraints.txt] + constraints: [$SNAPCRAFT_STAGE/constraints.txt] python-version: python3 # This is the last step, compile pycache now as there should be no conflicts. override-prime: |