Commit Graph

30 Commits

Author SHA1 Message Date
nicolargo
025ee1d77d Resolve SNAP conflict 2021-01-24 21:51:58 +01:00
nicolargo
102a6fb9a4 Force Ubuntu 20.01 for SNAP 2021-01-24 20:59:03 +01:00
nicolargo
8b5b19501b Glances 3.1.4 ready to be released 2020-03-10 21:52:01 +01:00
林博仁(Buo-ren Lin)
6fdf37ef89 snap: Incorporate selective-checkout to ensure a revision for stable channel is always available
Refer-to: Selective-checkout: Check out the tagged release revision if it isn't promoted to the stable channel - doc - snapcraft.io <https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617>
Refer-to: Releasing your app - Documentation for snaps: Universal Linux packages <https://docs.snapcraft.io/releasing-your-app/6795>
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-04-12 01:08:58 +08:00
林博仁(Buo-ren Lin)
15a9925d2a snap: Unify sequence indentation style
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-04-12 00:45:47 +08:00
林博仁(Buo-ren Lin)
2401523cb4 snap: Migrate to core base
This patch allows the snap to use the latest Snapcraft features.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-04-12 00:40:28 +08:00
Nicolas Hennion
9b7e7f1ba7
Merge pull request #1464 from Lin-Buo-Ren/patch/snap/support-canonical-config-paths
snap: Support canonical config paths, fixes #1403
2019-04-11 13:31:21 +02:00
林博仁(Buo-ren Lin)
2249251895 snap: Support canonical config paths, fixes #1403
This patch supports canonical config paths by the help of the
`personal-files` and the `system-files` security confinement interfaces.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-04-10 17:35:42 +08:00
林博仁
c05dd8a05d snap: Fix broken --webserver due to missing network-bind plug
Signed-off-by: 林博仁 <Buo.Ren.Lin@gmail.com>
2019-04-05 18:40:43 +08:00
Nicolas Hennion
e10dbe86c4
Merge pull request #1410 from Lin-Buo-Ren/patch/fix-snap-version
Improve snap version generation and introducing metadata sharing with setuptools
2019-01-26 07:55:04 +01:00
林博仁(Buo-ren Lin)
c9bc0b38f9 Minimize history fetch depth to cut down pull time
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 11:26:22 +08:00
林博仁(Buo-ren Lin)
cf670d2eaa Pin release of the runtime dependencies in snap
This patch specifies the exact release of the dependencies to pull in,
this avoids regressions and incompatibilities from the new upstream
changes.

The maintainer should check and bump the dependency version once in a
while and check for breakage.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 11:26:22 +08:00
林博仁(Buo-ren Lin)
f541e9215b Use new metadata extracting feature in snaps
This patch replaces the deprecated `version-script` key with new
Snapcraft metadata extracting features based on the `adopt-info` and
`parse-info` keys and the `snapcraftctl set-version` command.

This allows metadata sharing with Setuptools setup.py file.

Refernce:

    Extracting information from sources in snapcraft parts - doc - snapcraft.io
    https://forum.snapcraft.io/t/extracting-information-from-sources-in-snapcraft-parts/4642

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 06:04:44 +08:00
林博仁(Buo-ren Lin)
044fd14137 Implement custom snap version string generation
The snap version string generated by the `git` value of the `version`
key isn't mimicing the previous versioning style due to the prefixing
`v` in the git tag, this patch replace it with a custom implementation
based on the `version-script` key.

Note the `version` key is still required to exist due to schema
requirements, but has no effect when the `version-script` key is
defined.

Reference:

    Snapcraft version scripts - snapcraft - snapcraft.io
    https://forum.snapcraft.io/t/snapcraft-version-scripts/106

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 04:44:03 +08:00
林博仁(Buo-ren Lin)
7a8330aa07 ReReRevert Permission denied: '/etc/glances/glances.conf' #1403
The snapd version that supports the interface hasn't released to the
stable channel yet, and the Snap Store autoconnection isn't granted,
hold back the patch until both conditions are met.

This reverts commit c904a8a and (parts of) 108dc7b.
2019-01-26 02:57:28 +08:00
林博仁(Buo-ren Lin)
988c9a7613 Switch to automatic git versioning for snap version
Snapcraft supports `git describe` style snap version string generation
this patch exploits it.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:44 +08:00
林博仁(Buo-ren Lin)
665626e44b Use local source tree for glances part
This avoids the additional time to clone the already existing repository

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:44 +08:00
林博仁(Buo-ren Lin)
cd096cc8a8 Fix locale error due to missing compiled data
This patch hardcoded the locale variables to use the `C.UTF-8` locale
which is the only locale that is available in the Ubuntu Core.

Additional information:

* The gettext-launch remote part - doc - snapcraft.io
  https://forum.snapcraft.io/t/the-gettext-launch-remote-part/9111
* The locales-launch remote part - doc - snapcraft.io
  https://forum.snapcraft.io/t/the-locales-launch-remote-part/8729
* Python cannot determine the locale used when inside a snap - snapcraft - snapcraft.io
  https://forum.snapcraft.io/t/python-cannot-determine-the-locale-used-when-inside-a-snap/9492

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2019-01-26 02:51:41 +08:00
nicolargo
c904a8a3fe ReRevert Permission denied: '/etc/glances/glances.conf' #1403 2019-01-24 21:38:18 +01:00
nicolargo
f4e80561df Revert Permission denied: '/etc/glances/glances.conf' #1403 because Snapbuild fail 2019-01-23 22:24:50 +01:00
Tom Deckers
108dc7babe Allow use of configuration files when installed as snap.
Closes #1403
2019-01-23 20:30:27 +01:00
nicolargo
316d693c97 Glances 3.1.0 2019-01-19 16:41:03 +01:00
nicolargo
67a13ae53a Optimize process display 2018-05-12 23:02:28 +02:00
nicolargo
05066f9841 Add plugs to Glances snap 2018-01-01 10:43:34 +01:00
nicolargo
25cdc370c5 Report from master of the PR: Add missing mount-observe and system-observe interfaces #1179 2017-11-02 21:08:24 +01:00
nicolargo
caa60677f7 Creation of the maintenance branche for Glances 2.x 2017-09-06 15:41:54 +02:00
nicolargo
ad4763eb43 Update version and doc for Glances 2.11 2017-08-27 13:57:54 +02:00
nicolargo
74a56e078b Correct Snap for PsUtil 2017-06-25 10:17:12 +02:00
nicolargo
8cb4cc8ecb Correct PsUtil URL error in Snap file 2017-06-24 18:52:55 +02:00
nicolargo
f6e1fbd36a First snamp with PsUtil and Bottle 2017-06-24 18:47:16 +02:00