diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2019-01-26 07:55:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 07:55:04 +0100 |
commit | e10dbe86c452591cd7a393329bb0f27b93c07494 (patch) | |
tree | 7f7f6cd7539b633e5dcbe5509bff8cc3ee8802c0 /snap | |
parent | 9eb1310a6eb6a07dec85d6688bdd7d72f15f5c66 (diff) | |
parent | f541e9215bc63156c61505a4bafc2a13ddafd23e (diff) |
Merge pull request #1410 from Lin-Buo-Ren/patch/fix-snap-version
Improve snap version generation and introducing metadata sharing with setuptools
Diffstat (limited to 'snap')
-rw-r--r-- | snap/snapcraft.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index c7de5912..eb2f5ee1 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: glances -version: git +adopt-info: glances summary: Glances an Eye on your system. A top/htop alternative. description: | Glances is a cross-platform monitoring tool which aims to present @@ -31,6 +31,15 @@ parts: glances: plugin: python source: . + # FIXME: Theoretically this also replaces `summary` and `description` + # keys, however due to the following bug we still need to keep + # them until it is fixed. + # https://bugs.launchpad.net/snapcraft/+bug/1813364 + parse-info: [setup.py] + override-pull: | + snapcraftctl pull + snapcraftctl set-version \ + "$(git describe --always --dirty --tags --match 'v*' | sed s/^v//)" bottle: plugin: python source: https://github.com/bottlepy/bottle.git |