git: e1650914f17b - main - devel/py-ipyparallel: Update to 8.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 15:04:46 UTC
The branch main has been updated by sunpoet:

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

commit e1650914f17bac1eaebf258afbc81d9935e8a7c6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-23 14:26:44 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-23 14:50:12 +0000

    devel/py-ipyparallel: Update to 8.7.0
    
    - Sort RUN_DEPENDS
    - Convert to USE_PYTHON=pep517
    
    Changes:        https://github.com/ipython/ipyparallel/blob/main/docs/source/changelog.md
                    https://ipyparallel.readthedocs.io/en/latest/changelog.html
---
 devel/py-ipyparallel/Makefile       |  31 ++++-------
 devel/py-ipyparallel/distinfo       |   6 +-
 devel/py-ipyparallel/files/setup.py | 108 ------------------------------------
 3 files changed, 15 insertions(+), 130 deletions(-)

diff --git a/devel/py-ipyparallel/Makefile b/devel/py-ipyparallel/Makefile
index 63c1289dd503..754b4f4cec49 100644
--- a/devel/py-ipyparallel/Makefile
+++ b/devel/py-ipyparallel/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ipyparallel
-PORTVERSION=	8.6.1
+PORTVERSION=	8.7.0
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,37 +12,30 @@ WWW=		https://ipyparallel.readthedocs.io/en/latest/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING.md
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:devel/py-dateutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0.25:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jupyterlab>=4.0<5:devel/py-jupyterlab@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}entrypoints>=0:devel/py-entrypoints@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ipykernel>=4.4:devel/py-ipykernel@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ipython>=4.0.0:devel/ipython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ipython>=4:devel/ipython@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyter-client>=0:devel/py-jupyter-client@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}notebook>=0:www/py-notebook@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:devel/py-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyzmq>=18:net/py-pyzmq@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tornado>=5.1:www/py-tornado@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}traitlets>=4.3:devel/py-traitlets@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cloudpickle>=0:devel/py-cloudpickle@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}distributed>=0:devel/py-distributed@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}joblib>=0.10:devel/py-joblib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}nbformat>=0:devel/py-nbformat@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}numpy>=1.17,1:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pandas>=0:math/py-pandas@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython>=0:devel/ipython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}testpath>=0:devel/py-testpath@${PY_FLAVOR}
 
-USES=		python
-USE_PYTHON=	autoplist concurrent distutils pytest
+USES=		python shebangfix
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+SHEBANG_GLOB=	*.py
 
 .include <bsd.port.mk>
diff --git a/devel/py-ipyparallel/distinfo b/devel/py-ipyparallel/distinfo
index 06a491d606b2..da8d41aedf4c 100644
--- a/devel/py-ipyparallel/distinfo
+++ b/devel/py-ipyparallel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1703495871
-SHA256 (ipyparallel-8.6.1.tar.gz) = a39aa5ef9560170bf0e9afedca9ff045e1b9c1832c49303377edcc91cea9fb77
-SIZE (ipyparallel-8.6.1.tar.gz) = 6807935
+TIMESTAMP = 1710712804
+SHA256 (ipyparallel-8.7.0.tar.gz) = 403c0971ae56c2b6a39ffe8f35f31c7fd170ce127924629459cdd7f7a0b4e7c3
+SIZE (ipyparallel-8.7.0.tar.gz) = 6798726
diff --git a/devel/py-ipyparallel/files/setup.py b/devel/py-ipyparallel/files/setup.py
deleted file mode 100644
index 5a66fc8c6193..000000000000
--- a/devel/py-ipyparallel/files/setup.py
+++ /dev/null
@@ -1,108 +0,0 @@
-# -*- coding: utf-8 -*-
-from setuptools import setup
-
-setup(
-    name='ipyparallel',
-    version='%%PORTVERSION%%',
-    description='Interactive Parallel Computing with IPython',
-    long_description='# Interactive Parallel Computing with IPython\n\nIPython Parallel (`ipyparallel`) is a Python package and collection of CLI scripts for controlling clusters of IPython processes, built on the Jupyter protocol.\n\nIPython Parallel provides the following commands:\n\n- ipcluster - start/stop/list clusters\n- ipcontroller - start a controller\n- ipengine - start an engine\n\n## Install\n\nInstall IPython Parallel:\n\n    pip install ipyparallel\n\nThis will install and enable the IPython Parallel extensions\nfor Jupyter Notebook and (as of 7.0) Jupyter Lab 3.0.\n\n## Run\n\nStart a cluster:\n\n    ipcluster start\n\nUse it from Python:\n\n```python\nimport os\nimport ipyparallel as ipp\n\ncluster = ipp.Cluster(n=4)\nwith cluster as rc:\n    ar = rc[:].apply_async(os.getpid)\n    pid_map = ar.get_dict()\n```\n\nSee [the docs](https://ipyparallel.readthedocs.io) for more info.\n',
-    author_email='IPython Development Team <ipython-dev@scipy.org>',
-    classifiers=[
-        'Framework :: Jupyter',
-        'Framework :: Jupyter :: JupyterLab',
-        'Framework :: Jupyter :: JupyterLab :: 3',
-        'Framework :: Jupyter :: JupyterLab :: Extensions',
-        'Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt',
-        'Intended Audience :: Developers',
-        'Intended Audience :: Science/Research',
-        'Intended Audience :: System Administrators',
-        'License :: OSI Approved :: BSD License',
-        'Programming Language :: Python',
-        'Programming Language :: Python :: 3.7',
-        'Programming Language :: Python :: 3.8',
-        'Programming Language :: Python :: 3.9',
-    ],
-    install_requires=[
-        'decorator',
-        'entrypoints',
-        'ipykernel>=4.4',
-        'ipython>=4',
-        'jupyter-client',
-        'psutil',
-        'python-dateutil>=2.1',
-        'pyzmq>=18',
-        'tornado>=5.1',
-        'tqdm',
-        'traitlets>=4.3',
-    ],
-    extras_require={
-        'benchmark': [
-            'asv',
-        ],
-        'labextension': [
-            'jupyter-server',
-            'jupyterlab>=3',
-        ],
-        'nbext': [
-            'jupyter-server',
-            'notebook',
-        ],
-        'retroextension': [
-            'jupyter-server',
-            'retrolab',
-        ],
-        'serverextension': [
-            'jupyter-server',
-        ],
-        'test': [
-            'ipython[test]',
-            'pytest',
-            'pytest-asyncio',
-            'pytest-cov',
-            'testpath',
-        ],
-    },
-    entry_points={
-        'console_scripts': [
-            'ipcluster = ipyparallel.cluster.app:main',
-            'ipcontroller = ipyparallel.controller.app:main',
-            'ipengine = ipyparallel.engine.app:main',
-        ],
-        'ipyparallel.controller_launchers': [
-            'batch = ipyparallel.cluster.launcher:BatchControllerLauncher',
-            'htcondor = ipyparallel.cluster.launcher:HTCondorControllerLauncher',
-            'local = ipyparallel.cluster.launcher:LocalControllerLauncher',
-            'lsf = ipyparallel.cluster.launcher:LSFControllerLauncher',
-            'mpi = ipyparallel.cluster.launcher:MPIControllerLauncher',
-            'pbs = ipyparallel.cluster.launcher:PBSControllerLauncher',
-            'sge = ipyparallel.cluster.launcher:SGEControllerLauncher',
-            'slurm = ipyparallel.cluster.launcher:SlurmControllerLauncher',
-            'ssh = ipyparallel.cluster.launcher:SSHControllerLauncher',
-            'winhpc = ipyparallel.cluster.launcher:WindowsHPCControllerLauncher',
-        ],
-        'ipyparallel.engine_launchers': [
-            'batch = ipyparallel.cluster.launcher:BatchEngineSetLauncher',
-            'htcondor = ipyparallel.cluster.launcher:HTCondorEngineSetLauncher',
-            'local = ipyparallel.cluster.launcher:LocalEngineSetLauncher',
-            'lsf = ipyparallel.cluster.launcher:LSFEngineSetLauncher',
-            'mpi = ipyparallel.cluster.launcher:MPIEngineSetLauncher',
-            'pbs = ipyparallel.cluster.launcher:PBSEngineSetLauncher',
-            'sge = ipyparallel.cluster.launcher:SGEEngineSetLauncher',
-            'slurm = ipyparallel.cluster.launcher:SlurmEngineSetLauncher',
-            'ssh = ipyparallel.cluster.launcher:SSHEngineSetLauncher',
-            'sshproxy = ipyparallel.cluster.launcher:SSHProxyEngineSetLauncher',
-            'winhpc = ipyparallel.cluster.launcher:WindowsHPCEngineSetLauncher',
-        ],
-    },
-    packages=[
-        'ipyparallel',
-        'ipyparallel.apps',
-        'ipyparallel.client',
-        'ipyparallel.cluster',
-        'ipyparallel.controller',
-        'ipyparallel.engine',
-        'ipyparallel.nbextension',
-        'ipyparallel.serialize',
-        'ipyparallel.tests',
-    ],
-)