pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/py-Glances



Module Name:    pkgsrc
Committed By:   fox
Date:           Sun Nov 29 17:24:05 UTC 2026

Modified Files:
        pkgsrc/sysutils/py-Glances: Makefile PLIST distinfo

Log Message:
sysutils/py-Glances: Fix web server mode and the test suite

Keep the prebuilt WebUI files (static/public and static/templates)
and remove only the nodejs sources they are built from.

Switch the distfile from the PyPI sdist to the GitHub tag tarball.
The sdist does not ship all of the test dependencies.

The web server mode still needs py-fastapi and py-uvicorn to be
installed; they remain test dependencies only.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 pkgsrc/sysutils/py-Glances/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/sysutils/py-Glances/PLIST
cvs rdiff -u -r1.47 -r1.48 pkgsrc/sysutils/py-Glances/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/py-Glances/Makefile
diff -u pkgsrc/sysutils/py-Glances/Makefile:1.59 pkgsrc/sysutils/py-Glances/Makefile:1.60
--- pkgsrc/sysutils/py-Glances/Makefile:1.59    Wed Nov 11 15:51:07 2026
+++ pkgsrc/sysutils/py-Glances/Makefile Sun Nov 29 17:24:05 2026
@@ -1,9 +1,13 @@
-# $NetBSD: Makefile,v 1.59 2026/11/11 15:51:07 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2026/11/29 17:24:05 fox Exp $
 
 DISTNAME=      glances-4.5.9
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/g/G/}
+PKGREVISION=   1
 CATEGORIES=    sysutils python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=g/glances/}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=nicolargo/}
+GITHUB_PROJECT=        glances
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
 
 MAINTAINER=    fox%NetBSD.org@localhost
 HOMEPAGE=      https://nicolargo.github.io/glances/
@@ -27,7 +31,7 @@ TEST_DEPENDS+=        ${PYPKGPREFIX}-uvicorn-[0
 ALLOW_NETWORK_ACCESS=  yes
 TEST_ENV+=             PYTHONPATH=${WRKSRC}
 # as of 4.5.9
-# 64 failed, 596 passed, 36 skipped, 377 errors
+# 22 failed, 1011 passed, 40 skipped
 
 USE_LANGUAGES= # none
 
@@ -40,8 +44,12 @@ SUBST_SED.prefix=    -e 's,share/man,${PKGM
 PY_RENAME_BINARIES+=   glances
 
 post-extract:
-       # Removes the nodejs component which is not required.
-       ${RM} -fR ${WRKSRC}/glances/outputs/static
+       # Keep the prebuilt WebUI (public, templates), which the web server
+       # needs at startup; remove the nodejs sources it was built from.
+       cd ${WRKSRC}/glances/outputs && \
+       ${MV} static static.orig && ${MKDIR} static && \
+       ${MV} static.orig/public static.orig/templates static && \
+       ${RM} -fr static.orig
 
 post-install:
        cd ${DESTDIR}${PREFIX} && \

Index: pkgsrc/sysutils/py-Glances/PLIST
diff -u pkgsrc/sysutils/py-Glances/PLIST:1.25 pkgsrc/sysutils/py-Glances/PLIST:1.26
--- pkgsrc/sysutils/py-Glances/PLIST:1.25       Sun Nov  8 11:52:42 2026
+++ pkgsrc/sysutils/py-Glances/PLIST    Sun Nov 29 17:24:05 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.25 2026/11/08 11:52:42 wiz Exp $
+@comment $NetBSD: PLIST,v 1.26 2026/11/29 17:24:05 fox Exp $
 bin/glances-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -220,6 +220,11 @@ ${PYSITELIB}/glances/outputs/glances_std
 ${PYSITELIB}/glances/outputs/glances_unicode.py
 ${PYSITELIB}/glances/outputs/glances_unicode.pyc
 ${PYSITELIB}/glances/outputs/glances_unicode.pyo
+${PYSITELIB}/glances/outputs/static/public/browser.js
+${PYSITELIB}/glances/outputs/static/public/favicon.ico
+${PYSITELIB}/glances/outputs/static/public/glances.js
+${PYSITELIB}/glances/outputs/static/templates/browser.html
+${PYSITELIB}/glances/outputs/static/templates/index.html
 ${PYSITELIB}/glances/password.py
 ${PYSITELIB}/glances/password.pyc
 ${PYSITELIB}/glances/password.pyo

Index: pkgsrc/sysutils/py-Glances/distinfo
diff -u pkgsrc/sysutils/py-Glances/distinfo:1.47 pkgsrc/sysutils/py-Glances/distinfo:1.48
--- pkgsrc/sysutils/py-Glances/distinfo:1.47    Sun Nov  8 11:52:42 2026
+++ pkgsrc/sysutils/py-Glances/distinfo Sun Nov 29 17:24:05 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.47 2026/11/08 11:52:42 wiz Exp $
+$NetBSD: distinfo,v 1.48 2026/11/29 17:24:05 fox Exp $
 
-BLAKE2s (glances-4.5.9.tar.gz) = 3621cd1c9787cd681222e714c9651583517c60d54e096b1f55cc5c9a78d96284
-SHA512 (glances-4.5.9.tar.gz) = c3b0e417ea43abadb449404ca4be07204f2f18f56feb1319d653f1ccaa22bc2f642c98fac8afa35427d6acfb167e8e700c7ea06e81ce00bbbb6bcb98b09c7834
-Size (glances-4.5.9.tar.gz) = 7641166 bytes
+BLAKE2s (glances/glances-4.5.9.tar.gz) = 42385d11b9b1e632cc733578d6f0a892e065fb7f9db8c1409979b716554a3345
+SHA512 (glances/glances-4.5.9.tar.gz) = 30450fbb86873fa9bb2606ec2e82daabf80e30e2788a4f7b91939fb95c30665219ad64de7864df837fd6ed18bfccfe99266946b2b55948b01c28cc2ee1e45b46
+Size (glances/glances-4.5.9.tar.gz) = 7734111 bytes



Home | Main Index | Thread Index | Old Index