No module named 'influxdb' on the snap version of glances #1738

This commit is contained in:
nicolargo 2023-05-19 09:02:10 +02:00
parent 6d7d3a914d
commit 5f7e713254

View File

@ -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