git: 66d6d48a3884 - main - devel/py-pygobject: update to 3.54.5
Date: Sat, 24 Jan 2026 18:39:11 UTC
The branch main has been updated by vishwin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=66d6d48a3884aa95750a7e43727e63d56688119f
commit 66d6d48a3884aa95750a7e43727e63d56688119f
Author: Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-01-05 14:15:39 +0000
Commit: Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-01-24 18:39:02 +0000
devel/py-pygobject: update to 3.54.5
Changelog: https://gitlab.gnome.org/GNOME/pygobject/-/blob/3.54.5/NEWS
Note, tests run from the primary port, not -common.
Event: Winter Field Day 2026
PR: 291335
---
devel/py-pygobject/Makefile | 24 +++++++++++++++++++++++-
devel/py-pygobject/distinfo | 6 +++---
devel/pygobject-common/Makefile | 8 +-------
3 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/devel/py-pygobject/Makefile b/devel/py-pygobject/Makefile
index 7ac838223d7b..d83c976cf3fc 100644
--- a/devel/py-pygobject/Makefile
+++ b/devel/py-pygobject/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pygobject
-DISTVERSION= 3.50.2
+DISTVERSION= 3.54.5
PORTREVISION?= 0
CATEGORIES= devel python
MASTER_SITES= GNOME
@@ -39,6 +39,28 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.16:graphics/py-cairo@${PY_FLAVOR} \
${LOCALBASE}/libdata/pkgconfig/pygobject-3.0.pc:devel/pygobject-common
USE_GNOME= cairo glib20 introspection
USE_PYTHON= autoplist concurrent pep517
+
+OPTIONS_DEFINE= TEST
+
+TEST_TEST_DEPENDS= bash:shells/bash
+TEST_USE= python=pytest
+# PYTEST_BROKEN_TESTS may have infinite loops
+# test_subprocess_communicate_stdout has caused kernel panics
+TEST_VARS= PEP517_BUILD_CONFIG_SETTING="-Csetup-args=-Dtests=true -Cbuild-dir=_build" \
+ TEST_ARGS=--import-mode=importlib \
+ PYTEST_BROKEN_TESTS="test_pytest_capture_error_in_closure test_sigint test_finalize test_idle_data test_idle_method_callback_no_data test_idle_method_callback_with_data test_idle_multidata test_idle_no_data" \
+ PYTEST_IGNORED_TESTS=test_subprocess_communicate_stdout
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|setuptools<74|setuptools|' \
+ ${WRKSRC}/pyproject.toml
+
+post-patch-TEST-on:
+ @${REINPLACE_CMD} -e 's|"-Dtests=false", ||' \
+ ${WRKSRC}/pyproject.toml
+
+pre-test-TEST-on:
+ ${CP} -a ${WRKSRC}/_build/ ${WRKSRC}
.endif
.include <bsd.port.mk>
diff --git a/devel/py-pygobject/distinfo b/devel/py-pygobject/distinfo
index 7e89d9e5d790..1748446eec0c 100644
--- a/devel/py-pygobject/distinfo
+++ b/devel/py-pygobject/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1761489022
-SHA256 (gnome/pygobject-3.50.2.tar.gz) = ece6b860aab77cb649fdfc6e88d8a83765e7a62f7ffd39a628d6e2a0d397a7ff
-SIZE (gnome/pygobject-3.50.2.tar.gz) = 1085854
+TIMESTAMP = 1764628744
+SHA256 (gnome/pygobject-3.54.5.tar.gz) = b6656f6348f5245606cf15ea48c384c7f05156c75ead206c1b246c80a22fb585
+SIZE (gnome/pygobject-3.54.5.tar.gz) = 1274658
diff --git a/devel/pygobject-common/Makefile b/devel/pygobject-common/Makefile
index 34f82088547c..af7c65aabebd 100644
--- a/devel/pygobject-common/Makefile
+++ b/devel/pygobject-common/Makefile
@@ -3,18 +3,12 @@ PKGNAMESUFFIX= -common
COMMENT= Common files for Python bindings for GObject Introspection
-TEST_DEPENDS= bash:shells/bash \
- ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
-
NO_BUILD= yes
+NO_TEST= yes
NO_ARCH= yes
PLIST_FILES= include/pygobject-3.0/pygobject.h \
libdata/pkgconfig/pygobject-3.0.pc
-# tests/test_glib.py is flaky - its tests fail when run together, but pass when
-# executed separately
-TEST_ENV= PYTEST_ADDOPTS='-k "not test_io_add_watch and not test_main_loop"'
-
SLAVE_PORT= common
MASTERDIR= ${.CURDIR}/../../devel/py-pygobject