git: 3b36d78239ed - main - devel/py-tblib: Update to 3.2.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 27 Oct 2025 21:14:18 UTC
The branch main has been updated by sunpoet:

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

commit 3b36d78239ed72d97e5d31fdc4f6d3b949c995a1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-27 21:09:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-27 21:11:55 +0000

    devel/py-tblib: Update to 3.2.0
    
    - Update COMMENT
    - Update WWW
    - Convert to USE_PYTHON=pep517
    - Update pkg-descr
    - Take maintainership
    
    Changes:        https://github.com/ionelmc/python-tblib/blob/master/CHANGELOG.rst
                    https://python-tblib.readthedocs.io/en/latest/changelog.html
---
 devel/py-tblib/Makefile                   | 15 +++++++++------
 devel/py-tblib/distinfo                   |  6 +++---
 devel/py-tblib/files/patch-pyproject.toml | 20 ++++++++++++++++++++
 devel/py-tblib/pkg-descr                  | 21 ++++++++++++++++-----
 4 files changed, 48 insertions(+), 14 deletions(-)

diff --git a/devel/py-tblib/Makefile b/devel/py-tblib/Makefile
index d8802287bec7..82086f443e84 100644
--- a/devel/py-tblib/Makefile
+++ b/devel/py-tblib/Makefile
@@ -1,19 +1,22 @@
 PORTNAME=	tblib
-PORTVERSION=	1.7.0
-PORTREVISION=	1
+PORTVERSION=	3.2.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Traceback serialization library in Python
-WWW=		https://pypi.org/project/tblib/
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Traceback serialization library
+WWW=		https://python-tblib.readthedocs.io/en/latest/ \
+		https://github.com/ionelmc/python-tblib
 
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-tblib/distinfo b/devel/py-tblib/distinfo
index d2c09980689f..bf0e54d7b0e3 100644
--- a/devel/py-tblib/distinfo
+++ b/devel/py-tblib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1596305987
-SHA256 (tblib-1.7.0.tar.gz) = 059bd77306ea7b419d4f76016aef6d7027cc8a0785579b5aad198803435f882c
-SIZE (tblib-1.7.0.tar.gz) = 33074
+TIMESTAMP = 1761578096
+SHA256 (tblib-3.2.0.tar.gz) = 62ae1b8808cfd7c1c15b871d4022abb46188c49d21ace87a02a88707dc7aa1b1
+SIZE (tblib-3.2.0.tar.gz) = 33384
diff --git a/devel/py-tblib/files/patch-pyproject.toml b/devel/py-tblib/files/patch-pyproject.toml
new file mode 100644
index 000000000000..90192992f42c
--- /dev/null
+++ b/devel/py-tblib/files/patch-pyproject.toml
@@ -0,0 +1,20 @@
+--- pyproject.toml.orig	2025-10-21 08:22:05 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ requires = [
+ [build-system]
+ requires = [
+-    "setuptools>=80",
++    "setuptools>=61",
+ ]
+ build-backend = "setuptools.build_meta"
+ 
+@@ -10,8 +10,7 @@ version = "3.2.0"
+ ]
+ name = "tblib"
+ version = "3.2.0"
+-license = "BSD-2-Clause"
+-license-files = ["LICENSE"]
++license = {text = "BSD-2-Clause"}
+ description = "Traceback serialization library."
+ authors = [
+     { name = "Ionel Cristian Mărieș", email = "contact@ionelmc.ro" },
diff --git a/devel/py-tblib/pkg-descr b/devel/py-tblib/pkg-descr
index b2b23b7c681f..5d6a1ca95ad9 100644
--- a/devel/py-tblib/pkg-descr
+++ b/devel/py-tblib/pkg-descr
@@ -1,5 +1,16 @@
-Pickle tracebacks and raise exceptions with pickled tracebacks in
-different processes. This allows better error handling when running
-code over multiple processes (imagine multiprocessing, billiard,
-futures, celery etc).
-Parse traceback strings and raise with the parsed tracebacks.
+Serialization library for Exceptions and Tracebacks.
+
+It allows you to:
+- Pickle tracebacks and raise exceptions with pickled tracebacks in different
+  processes. This allows better error handling when running code over multiple
+  processes (imagine multiprocessing, billiard, futures, celery etc).
+- Create traceback objects from strings (the from_string method). No pickling is
+  used.
+- Serialize tracebacks to/from plain dicts (the from_dict and to_dict methods).
+  No pickling is used.
+- Raise the tracebacks created from the aforementioned sources.
+- Pickle an Exception together with its traceback and exception chain (raise ...
+  from ...) (Python 3 only)
+
+Again, note that using the pickle support is completely optional. You are solely
+responsible for security problems should you decide to use the pickle support.