move python-augeas into the single part

This commit is contained in:
Erica Portnoy 2020-06-15 17:43:45 -07:00
parent 7642ef1395
commit 614330ab7a

View file

@ -20,7 +20,7 @@ adopt-info: certbot
apps:
certbot:
command: bin/certbot.wrapper
command: certbot.wrapper
environment:
PATH: "$SNAP/bin:$SNAP/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
AUGEAS_LENS_LIB: "$SNAP/usr/share/augeas/lenses/dist"
@ -37,26 +37,13 @@ apps:
parts:
python-augeas:
plugin: python
source: git://github.com/basak/python-augeas
source-branch: snap
build-packages: [libaugeas-dev]
python-packages:
- wheel
stage:
- -pyvenv.cfg
- -**/__pycache__
- -bin
- -**/RECORD
- -**/wheel
- -lib64
certbot:
plugin: python
source: .
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
python-packages:
- wheel
- git+https://github.com/basak/python-augeas.git@snap
- ./acme
- ./certbot
- ./certbot-apache
@ -69,7 +56,7 @@ parts:
- libaugeas0
- python3-venv
# To build cryptography and cffi if needed
build-packages: [libffi-dev, libssl-dev]
build-packages: [libaugeas-dev, libffi-dev, libssl-dev]
override-pull: |
snapcraftctl pull
snapcraftctl set-version `cd $SNAPCRAFT_PART_SRC/certbot && git describe|sed s/^v//`