-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
56 lines (52 loc) · 1.39 KB
/
snapcraft.yaml
File metadata and controls
56 lines (52 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: juju-jockey
base: core22
adopt-info: juju-jockey
summary: Jockey is a utility for filtering and navigating Juju objects
description: |
Jockey is a CLI tool designed to facilitate quick and easy retrieval of Juju objects using filters.
It uses automatic caching of Juju's status in json format to enable faster parsing.
license: MIT
grade: stable
confinement: strict
architectures: [amd64, i386, arm64, armhf, ppc64el]
plugs:
juju-bin:
interface: content
content: juju-bin
target: $SNAP/usr/juju
default-provider: juju
dot-local-share-juju:
interface: personal-files
read:
- $HOME/.local/share/juju
- $HOME/.local/share/juju/ssh
- $HOME/.local/share/juju/lxd
write:
- $HOME/.local/share/juju/cookies
apps:
juju-jockey:
command: bin/juju-jockey
plugs:
- juju-bin
- dot-local-share-juju
- home
- ssh-keys
- network
parts:
juju-jockey:
plugin: python
source: .
source-type: local
build-snaps:
- jq
- remarshal
build-environment:
- SNAPCRAFT_PYTHON_INTERPRETER: python3.10
build-packages:
- python3.10
stage-packages:
- python3.10-minimal
- python3.10-venv
override-build: |
craftctl default
craftctl set version="$(env -u SNAPCRAFT_PART_INSTALL -u SNAPCRAFT_STAGE -- /snap/bin/toml2json $SNAPCRAFT_PART_BUILD/pyproject.toml | /snap/bin/jq -r '.tool.poetry.version')"