Adds missing dependencies for osmclient and required libraries
Fixes bug 1586
Change-Id: I4d42af70094a48f48fb58f013bceecbe54e555fd
Signed-off-by: beierlm <mark.beierl@canonical.com>
##
name: osmclient
base: core18
-version: git
+adopt-info: client
summary: A python client for orchestrating OSM
description: |
A python client for orchestrating Open Source Mano (OSM).
- home
- ssh-public-keys
environment:
- PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH
+ PATH: $SNAP/usr/bin:$SNAP/bin/:$PATH:$SNAP/usr/local/bin/
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
MAGIC: $SNAP/usr/share/file/magic.mgc
- git
- make
- wget
+ - libcurl4-openssl-dev
+ - libssl-dev
stage-packages:
+ - libcurl4
- libmagic1
- python3
- python3-dev
git checkout $BRANCH_OR_TAG
$SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install .
cd ../ && rm -rf IM/
+ $SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install -r requirements.txt
$SNAPCRAFT_PART_INSTALL/usr/bin/pip3 install .
rm -rf .tox
+ snapcraftctl set-version $(git describe --match v* --tags --dirty)
snapcraftctl build