diff --git a/lang/python/python-zope-event/patches/001-relax-setuptools-version.patch b/lang/python/python-zope-event/patches/001-relax-setuptools-version.patch new file mode 100644 index 0000000000..37d3adff5f --- /dev/null +++ b/lang/python/python-zope-event/patches/001-relax-setuptools-version.patch @@ -0,0 +1,11 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -3,7 +3,7 @@ + + [build-system] + requires = [ +- "setuptools >= 78.1.1,< 81", ++ "setuptools >= 78.1.1", + "wheel", + ] + build-backend = "setuptools.build_meta" diff --git a/lang/python/python-zope-event/test.sh b/lang/python/python-zope-event/test.sh new file mode 100644 index 0000000000..c41c0807f7 --- /dev/null +++ b/lang/python/python-zope-event/test.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +[ "$1" = python3-zope-event ] || exit 0 + +python3 - << 'PYEOF' +# Verify core API: subscribers list and notify function +import zope.event +assert hasattr(zope.event, 'subscribers'), "missing subscribers list" +assert callable(zope.event.notify), "missing notify()" + +# Exercise notify: register a subscriber and fire an event +received = [] +zope.event.subscribers.append(received.append) +zope.event.notify("test-event") +assert received == ["test-event"], f"event not received: {received!r}" + +print("python3-zope-event OK") +PYEOF