From: beierlm Date: Mon, 26 Apr 2021 20:42:12 +0000 (-0400) Subject: Restrict tags to versions X-Git-Tag: release-v10.0-start~4 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f5c87f062b9d4b707135cc106ca7256d100461df;p=osm%2Fosmclient.git Restrict tags to versions Use the same from of git describe as the setup.py so that only tags which start with a v will be used for versions Change-Id: I89b119e52b91c8886cfb9a3dc43b54d2425253b0 Signed-off-by: beierlm --- diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e131f3b..d950852 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -16,7 +16,7 @@ ## 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). @@ -75,4 +75,5 @@ parts: $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 --long --dirty) snapcraftctl build