git: 97c9ac3401b4 - main - devel/py-Events: new port

From: Siva Mahadevan <siva_at_FreeBSD.org>
Date: Wed, 20 May 2026 15:07:55 UTC
The branch main has been updated by siva:

URL: https://cgit.FreeBSD.org/ports/commit/?id=97c9ac3401b45817c3cb4c49e87d9d954cd7ce01

commit 97c9ac3401b45817c3cb4c49e87d9d954cd7ce01
Author:     Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2025-12-14 18:58:24 +0000
Commit:     Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-05-20 15:06:22 +0000

    devel/py-Events: new port
    
    Needed to update textproc/py-opensearch-py to latest upstream 3.1.0.
    
    Approved by:    lwhsu (mentor, implicitly)
---
 devel/Makefile            |  1 +
 devel/py-Events/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-Events/distinfo  |  3 +++
 devel/py-Events/pkg-descr |  8 ++++++++
 4 files changed, 41 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 57bc63f307fd..82fc74095c50 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4394,6 +4394,7 @@
     SUBDIR += py-Automat
     SUBDIR += py-BTrees
     SUBDIR += py-Dumper
+    SUBDIR += py-Events
     SUBDIR += py-Faker
     SUBDIR += py-Farama-Notifications
     SUBDIR += py-IBMQuantumExperience
diff --git a/devel/py-Events/Makefile b/devel/py-Events/Makefile
new file mode 100644
index 000000000000..8f4b8e4a697c
--- /dev/null
+++ b/devel/py-Events/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	Events
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.5
+CATEGORIES=	devel
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	siva@FreeBSD.org
+COMMENT=	Python Event Handling the C# Style
+WWW=		https://events.readthedocs.io/en/latest/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	pyeve
+GH_PROJECT=	events
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py test
+
+.include <bsd.port.mk>
diff --git a/devel/py-Events/distinfo b/devel/py-Events/distinfo
new file mode 100644
index 000000000000..4183636c8495
--- /dev/null
+++ b/devel/py-Events/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1767037887
+SHA256 (pyeve-events-v0.5_GH0.tar.gz) = 51fed10bad025e4bb81714b6114546b7f42773eda82df10e769d76a7859e9c3a
+SIZE (pyeve-events-v0.5_GH0.tar.gz) = 13200
diff --git a/devel/py-Events/pkg-descr b/devel/py-Events/pkg-descr
new file mode 100644
index 000000000000..0310b56f6869
--- /dev/null
+++ b/devel/py-Events/pkg-descr
@@ -0,0 +1,8 @@
+Bringing the elegance of C# EventHandler to Python
+
+The C# language provides a handy way to declare, subscribe to and fire events.
+Technically, an event is a "slot" where callback functions (event handlers) can
+be attached to - a process referred to as subscribing to an event.
+
+This is a handy package that encapsulates the core to event subscription and
+event firing and feels like a "natural" part of the language.