Remove duplicate line at the end of file and update doc for Glances 4.4.0RC1

This commit is contained in:
nicolargo 2025-11-01 15:29:34 +01:00
parent d9d4507bd4
commit 02752f90ea
14 changed files with 4519 additions and 604 deletions

View File

@ -220,7 +220,7 @@ sniffio==1.3.1
# elasticsearch
sparklines==0.7.0
# via glances
starlette==0.49.1
starlette==0.49.2
# via fastapi
statsd==4.0.1
# via glances

View File

@ -414,7 +414,7 @@ sphinxcontrib-serializinghtml==2.0.0
# via sphinx
sse-starlette==3.0.3 ; python_full_version >= '3.10'
# via mcp
starlette==0.49.1 ; python_full_version >= '3.10'
starlette==0.49.2 ; python_full_version >= '3.10'
# via mcp
tomli==2.0.2
# via

View File

@ -59,7 +59,7 @@ six==1.17.0
# python-dateutil
sniffio==1.3.1
# via anyio
starlette==0.49.1
starlette==0.49.2
# via fastapi
tomli==2.0.2 ; python_full_version < '3.11'
# via podman

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "GLANCES" "1" "Nov 01, 2025" "4.4.0_dev7" "Glances"
.TH "GLANCES" "1" "Nov 01, 2025" "4.4.0rc1" "Glances"
.SH NAME
glances \- An eye on your system
.SH SYNOPSIS

View File

@ -19,7 +19,8 @@ import tracemalloc
# Global name
# Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version
__version__ = "4.4.0_dev7"
# Examples: 1.0.0, 1.0.0rc1, 1.1.0_dev1
__version__ = "4.4.0rc1"
__apiversion__ = '4'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3'

View File

@ -979,5 +979,3 @@ class GlancesRestfulApi:
raise HTTPException(status.HTTP_404_NOT_FOUND, f"Unknown PID process {pid}")
return GlancesJSONResponse(process_stats)
return GlancesJSONResponse(process_stats)
return GlancesJSONResponse(process_stats)

View File

@ -409,4 +409,3 @@ class PodmanExtension:
stats['ports'] = ','.join([f'{container.ports[cp][0]["HostPort"]}->{cp}' for cp in container.ports])
return stats
return stats

View File

@ -956,7 +956,3 @@ class ProcesslistPlugin(GlancesPluginModel):
# By default return 5 (corresponding to 99999 PID number)
return 5
return 5
return 5
return 5
return 5

View File

@ -320,4 +320,3 @@ class QuicklookPlugin(GlancesPluginModel):
def _mhz_to_hz(self, hz):
"""Convert Mhz to Hz."""
return hz * 1000000.0
return hz * 1000000.0

View File

@ -118,4 +118,3 @@ class GlancesPortsList:
def set_server(self, pos, key, value):
"""Set the key to the value for the pos (position in the list)."""
self._ports_list[pos][key] = value
self._ports_list[pos][key] = value

View File

@ -421,5 +421,3 @@ please rename it to "{plugin_path.capitalize()}Plugin"'
# Close plugins
for p in self._plugins:
self._plugins[p].exit()
self._plugins[p].exit()
self._plugins[p].exit()

View File

@ -14,12 +14,20 @@ description: |
base: core24
grade: stable
confinement: strict
compression: lzo
# i386 is not compliant with core20 or higher
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
- build-on: ppc64el
- build-on: s390x
apps:
glances:
command: bin/glances
plugs: # https://snapcraft.io/docs/supported-interfaces
- docker
- hardware-observe
- home
- log-observe
@ -36,11 +44,18 @@ apps:
- system-observe
- uio
- upower-observe
# Others
- docker
- home-glances-config
- etc-glances-config
- proc-sys
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8
plugs:
docker:
interface: docker
home-glances-config:
interface: personal-files
read: