git: dd57f5816cbe - main - devel/py-PyPubSub: update 4.0.3 → 4.0.7

Yuri Victorovich <[email protected]> Thu, 06 Aug 2026 02:19:08 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <6a73ef1c.3d3f0.11b54bea__44351.9036097982$1785983005$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by yuri:

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

commit dd57f5816cbe724a74e696ff0135bce9d6830ed0
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-06 01:25:41 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-06 02:18:51 +0000

    devel/py-PyPubSub: update 4.0.3 → 4.0.7
---
 devel/py-PyPubSub/Makefile                   | 22 +++++++++++++++++++---
 devel/py-PyPubSub/distinfo                   |  6 +++---
 devel/py-PyPubSub/files/patch-pyproject.toml | 24 ++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/devel/py-PyPubSub/Makefile b/devel/py-PyPubSub/Makefile
index 871492d79ff2..d5bb1bf5c40b 100644
--- a/devel/py-PyPubSub/Makefile
+++ b/devel/py-PyPubSub/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	PyPubSub
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.0.3
-PORTREVISION=	1
+DISTVERSION=	4.0.7
 CATEGORIES=	devel python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -11,8 +10,12 @@ WWW=		https://github.com/schollii/pypubsub
 
 LICENSE=	BSD3CLAUSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	pep517 autoplist pytest
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	schollii
@@ -20,4 +23,17 @@ GH_PROJECT=	pypubsub
 
 NO_ARCH=	yes
 
+MAKE_ENV=	SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC=	${WRKSRC}/tests/suite
+TEST_ARGS=	-p no:black -p no:mypy -p no:cov -p no:benchmark -p no:xdist -p no:randomly \
+		test1_listener.py test2_spec.py test2a_topic.py test2b_topicmgr.py \
+		test2c_notify.py test2c_notify2.py test2d_except.py test3b_sel_default.py \
+		test3c_pubsub3.py test3d_defaultlog.py test4_prov_module_expect.py \
+		test4_provider.py test5_xmlprovider.py
+
+# tests as of 4.0.7: 167 passed in 0.90s
+# The suite files must run in this order and single-threaded because they
+# share global topic-manager state.
+
 .include <bsd.port.mk>
diff --git a/devel/py-PyPubSub/distinfo b/devel/py-PyPubSub/distinfo
index 75cd7d18f9f1..7a990f549615 100644
--- a/devel/py-PyPubSub/distinfo
+++ b/devel/py-PyPubSub/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1718580324
-SHA256 (schollii-pypubsub-v4.0.3_GH0.tar.gz) = 0df83daa1cb0021bab858ff6812d836c9712dea59a5172be1888bb554c3a89a2
-SIZE (schollii-pypubsub-v4.0.3_GH0.tar.gz) = 174033
+TIMESTAMP = 1785907319
+SHA256 (schollii-pypubsub-v4.0.7_GH0.tar.gz) = eb836e155fff00dba2feddece25f2ef89cf49bb5b75812f3ebeb5cd6e8c8449b
+SIZE (schollii-pypubsub-v4.0.7_GH0.tar.gz) = 173489
diff --git a/devel/py-PyPubSub/files/patch-pyproject.toml b/devel/py-PyPubSub/files/patch-pyproject.toml
new file mode 100644
index 000000000000..fd1dc8fb7659
--- /dev/null
+++ b/devel/py-PyPubSub/files/patch-pyproject.toml
@@ -0,0 +1,24 @@
+-- Make the port build with the setuptools version available in FreeBSD ports,
+-- keep using setuptools-scm with SETUPTOOLS_SCM_PRETEND_VERSION because the
+-- GitHub tarball is not a git checkout, drop the Python 2 contrib package from
+-- the wheel, and keep the distribution name consistent with the port origin.
+
+--- pyproject.toml.orig	2025-12-07 05:01:32 UTC
++++ pyproject.toml
+@@ -1,9 +1,9 @@
+ [build-system]
+-requires = ["setuptools>=68,<77", "wheel", "setuptools-scm>=7"]
++requires = ["setuptools", "wheel", "setuptools-scm>=7"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+-name = "Pypubsub"
++name = "PyPubSub"
+ dynamic = ["version"]
+ description = "Python Publish-Subscribe Package"
+ readme = { file = "README.rst", content-type = "text/x-rst" }
+@@ -62,3 +62,4 @@
+
+ [tool.setuptools.packages.find]
+ where = ["src"]
++exclude = ["contrib"]