5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
20 summary: A python client for orchestrating OSM
22 A python client for orchestrating Open Source Mano (OSM).
34 command: usr/bin/python3 $SNAP/usr/local/bin/osm
40 PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH:$SNAP/usr/local/bin/
41 PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
42 MAGIC: $SNAP/usr/share/file/magic.mgc
49 - PATH: "$PATH:$SNAPCRAFT_PART_INSTALL/usr/local/bin"
55 - libcurl4-openssl-dev
65 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install wheel
66 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install pyang
67 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install pyangbind
68 PATH="$PATH:$SNAPCRAFT_PART_INSTALL/usr/local/bin"
69 BRANCH_OR_TAG=`git symbolic-ref -q --short HEAD || git describe --tags --exact-match 2>/dev/null || echo $BRANCH`
70 git clone https://osm.etsi.org/gerrit/osm/IM.git
72 git checkout $BRANCH_OR_TAG
73 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install .
75 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install -r requirements.txt
76 $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install .