git: bc246c67d813 - main - science/{,py-}spglib: update 2.5.0 → 2.6.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Jul 2025 07:11:08 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bc246c67d8136e0d9e321c9df1089bdb7fa3c01d
commit bc246c67d8136e0d9e321c9df1089bdb7fa3c01d
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-07-21 23:06:45 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-07-22 07:10:55 +0000
science/{,py-}spglib: update 2.5.0 → 2.6.0
---
science/py-spglib/Makefile | 11 +++++++----
science/py-spglib/distinfo | 6 +++---
science/py-spglib/files/patch-pyproject.toml | 12 ++++++------
science/spglib/Makefile | 4 +++-
science/spglib/distinfo | 6 +++---
science/spglib/pkg-plist | 4 ++--
6 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/science/py-spglib/Makefile b/science/py-spglib/Makefile
index 14ad98f6aa4a..01e37fba4057 100644
--- a/science/py-spglib/Makefile
+++ b/science/py-spglib/Makefile
@@ -1,7 +1,6 @@
PORTNAME= spglib
DISTVERSIONPREFIX= v
-DISTVERSION= 2.5.0
-PORTREVISION= 1
+DISTVERSION= 2.6.0
CATEGORIES= science python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,10 +18,12 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@$
${PYNUMPY} \
${PY_SETUPTOOLS}
LIB_DEPENDS= libsymspg.so:science/spglib
-RUN_DEPENDS= ${PYNUMPY}
+RUN_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.9.0:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR}
USES= python
-USE_PYTHON= pep517 autoplist pytest # tests fail to run, see https://github.com/spglib/spglib/issues/192
+USE_PYTHON= pep517 autoplist pytest
USE_GITHUB= yes
CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD}
@@ -32,4 +33,6 @@ MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION=${DISTVERSION}
TEST_WRKSRC= ${WRKSRC}
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+# tests as of 2.6.0: 3024 passed in 149.52s (0:02:29)
+
.include <bsd.port.mk>
diff --git a/science/py-spglib/distinfo b/science/py-spglib/distinfo
index 48711790a26d..b88216427863 100644
--- a/science/py-spglib/distinfo
+++ b/science/py-spglib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1720768210
-SHA256 (spglib-spglib-v2.5.0_GH0.tar.gz) = b6026f5e85106c0c9ee57e54b9399890d0f29982e20e96ede0428b3efbe6b914
-SIZE (spglib-spglib-v2.5.0_GH0.tar.gz) = 2926427
+TIMESTAMP = 1753137266
+SHA256 (spglib-spglib-v2.6.0_GH0.tar.gz) = c65af71136c915352eb82444b165ec83289877eb8e46593033f199801b43dbf7
+SIZE (spglib-spglib-v2.6.0_GH0.tar.gz) = 2438640
diff --git a/science/py-spglib/files/patch-pyproject.toml b/science/py-spglib/files/patch-pyproject.toml
index 38d350736f4d..d7417075f4d6 100644
--- a/science/py-spglib/files/patch-pyproject.toml
+++ b/science/py-spglib/files/patch-pyproject.toml
@@ -1,21 +1,21 @@
- removal of license-files is a workaround for https://github.com/spglib/spglib/issues/560
---- pyproject.toml.orig 2024-07-11 08:36:56 UTC
+--- pyproject.toml.orig 2025-03-06 12:33:46 UTC
+++ pyproject.toml
@@ -1,7 +1,7 @@
[build-system]
# Numpy build and runtime dependencies are linked to ABI compatibility
# A new wheel rebuild is needed when changing these
--requires = ["scikit-build-core", "numpy~=2.0"]
-+requires = ["scikit-build-core", "numpy"]
+-requires = ["scikit-build-core>=0.11", "numpy~=2.0"]
++requires = ["scikit-build-core>=0.11", "numpy"]
build-backend = "scikit_build_core.build"
[project]
-@@ -9,7 +9,6 @@ license = { text = "BSD-3-Clause" }
+@@ -9,7 +9,6 @@ license = "BSD-3-Clause"
requires-python = ">=3.9"
description = "This is the spglib module."
- license = { text = "BSD-3-Clause" }
--license-files = { paths = ["COPYING"] }
+ license = "BSD-3-Clause"
+-license-files = ["COPYING"]
readme = "python/README.rst"
dynamic = ["version"]
dependencies = [
diff --git a/science/spglib/Makefile b/science/spglib/Makefile
index 4615c4db21ff..d12f56544466 100644
--- a/science/spglib/Makefile
+++ b/science/spglib/Makefile
@@ -1,6 +1,6 @@
PORTNAME= spglib
DISTVERSIONPREFIX= v
-DISTVERSION= 2.5.0
+DISTVERSION= 2.6.0
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
@@ -32,4 +32,6 @@ OPTIONS_SUB= yes
FORTRAN_USES= fortran
FORTRAN_CMAKE_BOOL= SPGLIB_WITH_Fortran
+# tests as of 2.6.0: 100% tests passed, 0 tests failed out of 59
+
.include <bsd.port.mk>
diff --git a/science/spglib/distinfo b/science/spglib/distinfo
index 07218b207bc7..85fbb27635db 100644
--- a/science/spglib/distinfo
+++ b/science/spglib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1720768091
-SHA256 (spglib-spglib-v2.5.0_GH0.tar.gz) = b6026f5e85106c0c9ee57e54b9399890d0f29982e20e96ede0428b3efbe6b914
-SIZE (spglib-spglib-v2.5.0_GH0.tar.gz) = 2926427
+TIMESTAMP = 1753138641
+SHA256 (spglib-spglib-v2.6.0_GH0.tar.gz) = c65af71136c915352eb82444b165ec83289877eb8e46593033f199801b43dbf7
+SIZE (spglib-spglib-v2.6.0_GH0.tar.gz) = 2438640
diff --git a/science/spglib/pkg-plist b/science/spglib/pkg-plist
index c3b5f01c8d33..5315006f0e5c 100644
--- a/science/spglib/pkg-plist
+++ b/science/spglib/pkg-plist
@@ -11,9 +11,9 @@ lib/cmake/Spglib/SpglibTargets_shared.cmake
%%FORTRAN%%lib/cmake/Spglib/try_compile.f90
%%FORTRAN%%lib/libspglib_f08.so
%%FORTRAN%%lib/libspglib_f08.so.2
-%%FORTRAN%%lib/libspglib_f08.so.2.5.0
+%%FORTRAN%%lib/libspglib_f08.so.2.6.0
lib/libsymspg.so
lib/libsymspg.so.2
-lib/libsymspg.so.2.5.0
+lib/libsymspg.so.2.6.0
libdata/pkgconfig/spglib.pc
%%FORTRAN%%libdata/pkgconfig/spglib_f08.pc