summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-05-19 09:02:10 +0200
committernicolargo <nicolas@nicolargo.com>2023-05-19 09:02:29 +0200
commit5f7e7132549f7368cddf604866ce1175b5d7673e (patch)
tree05711cdbef0da7a17b2799d1a4aaaaf8db76ce18
parent6d7d3a914db60113c4ec1114a53b12197fc3d27d (diff)
No module named 'influxdb' on the snap version of glances #1738
-rw-r--r--snap/snapcraft.yaml52
1 files changed, 49 insertions, 3 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index ab8d7446..9188d818 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -7,7 +7,7 @@ description: |
Web based interface. It can adapt dynamically the displayed information
depending on the user interface size.
-base: core20
+base: core22
grade: stable
confinement: strict
@@ -40,6 +40,7 @@ plugs:
- /etc/glances/glances.conf
parts:
+
glances:
after:
- selective-checkout
@@ -53,6 +54,7 @@ parts:
override-pull: |
snapcraftctl pull
"$SNAPCRAFT_STAGE"/scriptlets/selective-checkout
+
bottle:
plugin: python
source: https://github.com/bottlepy/bottle.git
@@ -67,13 +69,57 @@ parts:
docker:
plugin: python
source: https://github.com/docker/docker-py.git
- source-tag: '3.7.3'
+ source-tag: '6.1.2'
source-depth: 1
override-build: |
mkdir -p $SNAPCRAFT_PART_BUILD/dist
cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/docker-dist
organize:
- bottle-dist: docker/dist
+ docker-dist: docker/dist
+
+ python-dateutil:
+ plugin: python
+ source: https://github.com/dateutil/dateutil.git
+ source-tag: '2.8.2'
+ source-depth: 1
+ override-build: |
+ mkdir -p $SNAPCRAFT_PART_BUILD/dist
+ cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/python-dateutil-dist
+ organize:
+ python-dateutil-dist: python-dateutil/dist
+
+ six:
+ plugin: python
+ source: https://github.com/benjaminp/six.git
+ source-tag: '1.16.0'
+ source-depth: 1
+ override-build: |
+ mkdir -p $SNAPCRAFT_PART_BUILD/dist
+ cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/six-dist
+ organize:
+ six-dist: six/dist
+
+ podman:
+ plugin: python
+ source: https://github.com/containers/podman-py.git
+ source-tag: '4.5.0'
+ source-depth: 1
+ override-build: |
+ mkdir -p $SNAPCRAFT_PART_BUILD/dist
+ cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/podman-dist
+ organize:
+ podman-dist: podman/dist
+
+ packaging:
+ plugin: python
+ source: https://github.com/pypa/packaging.git
+ source-tag: '23.1'
+ source-depth: 1
+ override-build: |
+ mkdir -p $SNAPCRAFT_PART_BUILD/dist
+ cp -r $SNAPCRAFT_PART_BUILD/dist $SNAPCRAFT_PART_INSTALL/packaging-dist
+ organize:
+ packaging-dist: packaging/dist
launchers:
source: snap/local/launchers