git: 78984a3725d1 - main - devel/py-cloudpickle: Update to 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:43:45 UTC
The branch main has been updated by sunpoet:

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

commit 78984a3725d15ff781e6cd62d476622d5b2c93ae
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 12:59:33 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:36:53 +0000

    devel/py-cloudpickle: Update to 2.0.0
    
    - Update TEST_DEPENDS
    - Update do-test:
    - Update pkg-descr
    
    Changes:        https://github.com/cloudpipe/cloudpickle/blob/master/CHANGES.md
---
 devel/py-cloudpickle/Makefile  | 14 ++++++++------
 devel/py-cloudpickle/distinfo  |  6 +++---
 devel/py-cloudpickle/pkg-descr | 18 ++++++++++--------
 3 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/devel/py-cloudpickle/Makefile b/devel/py-cloudpickle/Makefile
index a3eb407810ff..8e0c5ec53901 100644
--- a/devel/py-cloudpickle/Makefile
+++ b/devel/py-cloudpickle/Makefile
@@ -1,7 +1,7 @@
 # Created by: Kubilay Kocak <koobs@FreeBSD.org>
 
 PORTNAME=	cloudpickle
-PORTVERSION=	1.3.0
+PORTVERSION=	2.0.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,16 +12,18 @@ COMMENT=	Extended pickling support for Python objects
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tornado>=0:www/py-tornado@${PY_FLAVOR}
 
 USES=		python:3.6+
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-# Need -s for https://github.com/cloudpipe/cloudpickle/issues/252
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -s
+# Need -s for https://github.com/cloudpipe/cloudpickle/issues/252
+	cd ${WRKSRC} && ${SETENV} PYTHONPATH=tests/cloudpickle_testpkg ${PYTHON_CMD} -m pytest -rs -s -v
 
 .include <bsd.port.mk>
diff --git a/devel/py-cloudpickle/distinfo b/devel/py-cloudpickle/distinfo
index ec3ee34f7f86..1716f9bf0f13 100644
--- a/devel/py-cloudpickle/distinfo
+++ b/devel/py-cloudpickle/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1596283802
-SHA256 (cloudpickle-1.3.0.tar.gz) = 38af54d0e7705d87a287bdefe1df00f936aadb1f629dca383e825cca927fa753
-SIZE (cloudpickle-1.3.0.tar.gz) = 46220
+TIMESTAMP = 1647264518
+SHA256 (cloudpickle-2.0.0.tar.gz) = 5cd02f3b417a783ba84a4ec3e290ff7929009fe51f6405423cfccfadd43ba4a4
+SIZE (cloudpickle-2.0.0.tar.gz) = 60038
diff --git a/devel/py-cloudpickle/pkg-descr b/devel/py-cloudpickle/pkg-descr
index 356d4f0e94ef..c512bf67a3d2 100644
--- a/devel/py-cloudpickle/pkg-descr
+++ b/devel/py-cloudpickle/pkg-descr
@@ -1,12 +1,14 @@
-cloudpickle makes it possible to serialize Python constructs not
-supported by the default pickle module from the Python standard library.
+cloudpickle makes it possible to serialize Python constructs not supported by
+the default pickle module from the Python standard library.
 
-cloudpickle is especially useful for cluster computing where Python
-expressions are shipped over the network to execute on remote hosts,
-possibly close to the data.
+cloudpickle is especially useful for cluster computing where Python code is
+shipped over the network to execute on remote hosts, possibly close to the data.
 
-Among other things, cloudpickle supports pickling for lambda
-expressions, functions and classes defined interactively in the
-`__main__` module.
+Among other things, cloudpickle supports pickling for lambda functions along
+with functions and classes defined interactively in the __main__ module (for
+instance in a script, a shell or a Jupyter notebook).
+
+Cloudpickle can only be used to send objects between the exact same version of
+Python.
 
 WWW: https://github.com/cloudpipe/cloudpickle