From c346595345b21ee5846007612854f7aa23d479ce Mon Sep 17 00:00:00 2001 From: icp Date: Wed, 15 May 2024 01:48:19 +0530 Subject: [PATCH] glances: update to 4.0.5. --- srcpkgs/glances/patches/no-check-update.patch | 17 +++++++---------- srcpkgs/glances/template | 11 ++++++----- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/srcpkgs/glances/patches/no-check-update.patch b/srcpkgs/glances/patches/no-check-update.patch index 9de402a29bb3cb..b44e7d11866bcf 100644 --- a/srcpkgs/glances/patches/no-check-update.patch +++ b/srcpkgs/glances/patches/no-check-update.patch @@ -4,9 +4,9 @@ Bug-Debian: https://bugs.debian.org/877127 --- a/glances/standalone.py +++ b/glances/standalone.py -@@ -105,9 +105,6 @@ - # Init screen - self.screen = GlancesCursesStandalone(config=config, args=args) +@@ -112,9 +112,6 @@ + # It is done in the screen.init function + self._quiet = args.quiet - # Check the latest Glances version - self.outdated = Outdated(config=config, args=args) @@ -14,22 +14,19 @@ Bug-Debian: https://bugs.debian.org/877127 @property def quiet(self): return self._quiet -@@ -186,17 +183,3 @@ +@@ -192,15 +189,3 @@ # Exit from export modules self.stats.end() - - # Check Glances version versus PyPI one - if self.outdated.is_outdated(): -- print( -- "You are using Glances version {}, however version {} is available.".format( -- self.outdated.installed_version(), self.outdated.latest_version() -- ) -- ) +- latest_version = self.outdated.latest_version() +- installed_version = self.outdated.installed_version() +- print(f"You are using Glances version {installed_version}, however version {latest_version} is available.") - print("You should consider upgrading using: pip install --upgrade glances") - print("Disable this warning temporarily using: glances --disable-check-update") - print( - "To disable it permanently, refer config reference at " - "https://glances.readthedocs.io/en/latest/config.html#syntax" - ) - diff --git a/srcpkgs/glances/template b/srcpkgs/glances/template index 6022e7f809b606..199d4b1dcd287f 100644 --- a/srcpkgs/glances/template +++ b/srcpkgs/glances/template @@ -1,10 +1,11 @@ # Template file for 'glances' pkgname=glances -version=3.4.0.5 +version=4.0.5 revision=1 -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="python3-psutil python3-defusedxml python3-packaging python3-ultrajson" +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +depends="python3-psutil python3-defusedxml python3-packaging python3-ultrajson + python3-pydantic" checkdepends="$depends" short_desc="Cross-platform curses-based monitoring tool" maintainer="icp " @@ -12,7 +13,7 @@ license="LGPL-3.0-or-later" homepage="https://nicolargo.github.io/glances/" changelog="https://raw.githubusercontent.com/nicolargo/glances/develop/NEWS.rst" distfiles="https://github.com/nicolargo/glances/archive/refs/tags/v${version}.tar.gz" -checksum=420c394cb3f2dfd476d812adb88006d699c595fc75702b7fde075073a57050cd +checksum=679faa8eded58fdef187d46b4c83225a8b1bfb67c1bc2cf1ccb197f76dffb241 post_install() { vsconf conf/glances.conf