My current part looks like this:
parts: crbs: plugin: python source: . source-type: local requirements: - requirements.txt build-packages: - git - libffi-dev - libpq-dev - python3-setuptools stage-packages: - libpq5 - libpython3.8 - libxml2 filesets: bins: - bin/alembic - bin/crbs-admin - bin/crbs-asyncapi - bin/uwsgi - bin/snap-helpers* - bin/python - bin/python3 - pyvenv.cfg prime: - $bins - etc - lib - usr/lib override-build: | set -e snapcraftctl build snapcraftctl set-version $($SNAPCRAFT_PROJECT_DIR/snap/local/snap-version) snap-helpers write-hooks
My current part looks like this:
parts: PROJECT_ DIR/snap/ local/snap- version)
crbs:
plugin: python
source: .
source-type: local
requirements:
- requirements.txt
build-packages:
- git
- libffi-dev
- libpq-dev
- python3-setuptools
stage-packages:
- libpq5
- libpython3.8
- libxml2
filesets:
bins:
- bin/alembic
- bin/crbs-admin
- bin/crbs-asyncapi
- bin/uwsgi
- bin/snap-helpers*
- bin/python
- bin/python3
- pyvenv.cfg
prime:
- $bins
- etc
- lib
- usr/lib
override-build: |
set -e
snapcraftctl build
snapcraftctl set-version $($SNAPCRAFT_
snap-helpers write-hooks