Commit Graph

53 Commits

Author SHA1 Message Date
nicolargo
2e72a1e3de Get nack toSnapCraft Core22 because Snap is ... 2024-04-29 11:42:00 +02:00
nicolargo
af6576e448 Upgrade SnapCraft to Core24 2024-04-29 11:26:35 +02:00
nicolargo
cc7eeb2931 Try a simple Snapcraft.yaml file, add version 2024-03-24 14:18:21 +01:00
nicolargo
7ad9066f22 Try a simple Snapcraft.yaml file 2024-03-24 14:08:04 +01:00
nicolargo
9ed81b438d Another try for the fucking Snapcraft package 2024-03-23 11:39:21 +01:00
nicolargo
a5249a1893 Update Snapcraft 2024-02-03 09:59:31 +01:00
nicolargo
c28089ae47 First step of the migration 2023-11-26 22:40:36 +01:00
nicolargo
bcf4ce45fc Rename any reference to Bottle in doc and dep file. Ready to refactor the main glances_restful_api.py file. 2023-11-26 10:02:30 +01:00
nicolargo
d0b7e034e8 Get back to Core20 because Snap is PISA again 2023-05-19 10:30:46 +02:00
nicolargo
d42544fb8c Get back to Core20 because Snap is PISA 2023-05-19 10:15:12 +02:00
nicolargo
2ac78a8320 SNAP is PITA 2023-05-19 10:05:01 +02:00
nicolargo
33d767b7de Snap is a pain in the ass 2023-05-19 09:48:31 +02:00
nicolargo
50838c4bd6 Try to migrate SnapCraft Core 20 to 22 (following guide: https://forum.snapcraft.io/t/micro-howto-migrate-from-core20-to-core22/30188) 2023-05-19 09:34:36 +02:00
nicolargo
4a242e718a No module named 'influxdb' on the snap version of glances #1738 2023-05-19 09:02:10 +02:00
nicolargo
f5892af699 Another try for snap - Related to #1801 2022-10-22 12:25:41 +02:00
nicolargo
facb436030 Another try for snap - Related to #1801 2022-10-22 11:53:39 +02:00
nicolargo
2e3b47eb2e Another unsuccess try for SNAP 2021-04-23 09:58:56 +02:00
nicolargo
2592077eaa Correct launch issue in Snapcraft another try again... 2021-03-13 11:35:12 +01:00
nicolargo
3076e816f6 Correct launch issue in Snapcraft another try... 2021-03-13 11:26:49 +01:00
nicolargo
e6512ff2e8 Correct launch issue in Snapcraft 2021-03-13 11:19:15 +01:00
nicolargo
6a82592664 Add debug message for snap packaging again 2021-03-13 09:42:23 +01:00
nicolargo
6962bc425f One more try for snapcraft 2021-03-13 09:31:57 +01:00
nicolargo
67d050cedc Add debug message for snap packaging 2021-03-13 09:16:09 +01:00
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