-
Notifications
You must be signed in to change notification settings - Fork 7
/
snapcraft.yaml
37 lines (34 loc) · 1010 Bytes
/
snapcraft.yaml
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
name: data-science-stack
summary: ML development and experimentation environment manager
description: |
The DSS is a tool that allows workstations users to deploy
and manage development and experimentation environments
in systems with GPU support.
adopt-info: data-science-stack-version
base: core22
confinement: strict
architectures:
- build-on: amd64
apps:
dss:
command: bin/dss
plugs:
- home
- network
parts:
data-science-stack-version:
plugin: nil
source: .
override-pull: |
craftctl default
# Pull the version from setup.cfg, parsing the value after
# the '=' and truncating any whitespace
CODE_VERSION=$(grep version setup.cfg)
CODE_VERSION=$(echo ${CODE_VERSION#*=} | tr -d ' ')
COMMIT_HASH=$(git rev-parse HEAD)
VERSION=${CODE_VERSION}-${COMMIT_HASH}
# version field has max length of 32 characters
craftctl set version=${VERSION:0:32}
data-science-stack:
plugin: python
source: .