aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricp <pangolin@vivaldi.net>2024-05-14 20:18:19 +0000
committerPiraty <mail@piraty.dev>2024-05-26 20:26:18 +0000
commit7d1fa617fd91a876fdeed6bdd989d92c36f1e208 (patch)
treedcd0e3acf89cf3f2b299c2e6476feeeb354d3699
parenta3b9f7f77df177d92873567a554b9d573c50aca5 (diff)
downloadvoid-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar.gz
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar.bz2
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar.lz
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar.xz
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.tar.zst
void-packages-7d1fa617fd91a876fdeed6bdd989d92c36f1e208.zip
glances: update to 4.0.5.
-rw-r--r--srcpkgs/glances/patches/no-check-update.patch17
-rw-r--r--srcpkgs/glances/template11
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 9de402a29bb..b44e7d11866 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 6022e7f809b..199d4b1dcd2 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 <pangolin@vivaldi.net>"
@@ -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