Build constraints.txt in snapcraft.

This commit is contained in:
Brad Warren 2020-04-28 12:21:01 -07:00
parent 9cbb13ef04
commit 6343505069

View file

@ -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: |