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
This commit is contained in:
Charlie Li
2026-01-05 09:15:39 -05:00
parent c3cf0b7c6c
commit 66d6d48a38
3 changed files with 27 additions and 11 deletions
+23 -1
View File
@@ -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>
+3 -3
View File
@@ -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
+1 -7
View File
@@ -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