git: 8bc09aa2e50e - main - devel/py-sparse: Update to 0.15.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:24:15 UTC
The branch main has been updated by sunpoet:

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

commit 8bc09aa2e50ec02932d8998da90e935cf7b3afde
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:43:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:07:47 +0000

    devel/py-sparse: Update to 0.15.1
    
    - Update WWW
    - Convert to USE_PYTHON=pep517
    
    Changes:        https://github.com/pydata/sparse/blob/main/docs/changelog.rst
                    https://sparse.pydata.org/en/stable/changelog.html
---
 devel/py-sparse/Makefile                   | 13 ++++++++-----
 devel/py-sparse/distinfo                   |  6 +++---
 devel/py-sparse/files/patch-pyproject.toml | 18 ++++++++++++++++++
 3 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/devel/py-sparse/Makefile b/devel/py-sparse/Makefile
index 2c9282e45841..063c9f76d999 100644
--- a/devel/py-sparse/Makefile
+++ b/devel/py-sparse/Makefile
@@ -1,23 +1,26 @@
 PORTNAME=	sparse
-PORTVERSION=	0.14.0
-PORTREVISION=	1
+PORTVERSION=	0.15.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Sparse n-dimensional arrays
-WWW=		https://github.com/pydata/sparse
+WWW=		https://sparse.pydata.org/en/stable/ \
+		https://github.com/pydata/sparse
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+xRUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=1.17,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-sparse/distinfo b/devel/py-sparse/distinfo
index c4cd42b253e4..cec0b9fc584c 100644
--- a/devel/py-sparse/distinfo
+++ b/devel/py-sparse/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1677771299
-SHA256 (sparse-0.14.0.tar.gz) = 5f5827a37f6cd6f6730a541f994c95c60a3ae2329e01f4ba21ced5339aea0098
-SIZE (sparse-0.14.0.tar.gz) = 356293
+TIMESTAMP = 1708449350
+SHA256 (sparse-0.15.1.tar.gz) = 973adcb88a8db8e3d8047953331e26d3f64a5657f9b46a6b859c47663c3eef99
+SIZE (sparse-0.15.1.tar.gz) = 359467
diff --git a/devel/py-sparse/files/patch-pyproject.toml b/devel/py-sparse/files/patch-pyproject.toml
new file mode 100644
index 000000000000..48d537b6f6bf
--- /dev/null
+++ b/devel/py-sparse/files/patch-pyproject.toml
@@ -0,0 +1,18 @@
+--- pyproject.toml.orig	2024-01-10 10:09:23 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=64", "setuptools_scm>=8"]
++requires = ["setuptools>=61", "setuptools_scm>=6"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
+@@ -53,7 +53,7 @@ include = ["sparse", "sparse.*"]
+ include = ["sparse", "sparse.*"]
+ 
+ [tool.setuptools_scm]
+-version_file = "sparse/_version.py"
++write_to = "sparse/_version.py"
+ 
+ [tool.ruff]
+ select = ["F", "E", "W", "I", "B", "UP", "YTT", "BLE", "C4", "T10", "ISC", "ICN", "PIE", "PYI", "RSE", "RET", "SIM", "PGH", "FLY", "NPY", "PERF"]