Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2026 20:10:41 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7785f5246b0c - main - science/py-pyprecice: update 3=?utf-8?Q?=2E1.2 =E2=86=92?= 3.4.0
Message-ID:  <6a724741.3d804.1c1c3356@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit 7785f5246b0cc7c03055f07996849ce5fa7c6415
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-08-04 07:23:44 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-08-04 20:10:24 +0000

    science/py-pyprecice: update 3.1.2 → 3.4.0
---
 science/py-pyprecice/Makefile                   | 13 +++++++---
 science/py-pyprecice/distinfo                   |  6 ++---
 science/py-pyprecice/files/patch-pyproject.toml | 33 +++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 6 deletions(-)

diff --git a/science/py-pyprecice/Makefile b/science/py-pyprecice/Makefile
index f7ac1ee68fce..d75761bf2338 100644
--- a/science/py-pyprecice/Makefile
+++ b/science/py-pyprecice/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	pyprecice
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.1.2
-PORTREVISION=	3
+DISTVERSION=	3.4.0
 CATEGORIES=	science # physics
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -29,7 +28,15 @@ GH_PROJECT=	python-bindings
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cyprecice.cpython-${PYTHON_SUFFIX}.so
 
+TEST_ENV=	${MAKE_ENV} \
+		PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
+		PYPRECICE_MOCKED=1 \
+		PYTEST_ADDOPTS="-p no:black -p no:ruff -p no:mypy -p no:flake8 -p no:cov -p no:benchmark -p no:inline-snapshot -p no:xdist -p no:randomly"
+
 do-test:
-	@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYSETUP} test
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext --inplace --force && \
+		${SETENV} ${TEST_ENV} pytest ${WRKSRC}/test
+
+# tests as of 3.4.0: 65 passed in 0.74s (using PYPRECICE_MOCKED=1)
 
 .include <bsd.port.mk>
diff --git a/science/py-pyprecice/distinfo b/science/py-pyprecice/distinfo
index 3aef8d8cdfa9..36eb4eba7e3a 100644
--- a/science/py-pyprecice/distinfo
+++ b/science/py-pyprecice/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1731517695
-SHA256 (precice-python-bindings-v3.1.2_GH0.tar.gz) = 6a231faf80468983b0aa0c04c2dbe4e0614df31e51945b508665e4919408b723
-SIZE (precice-python-bindings-v3.1.2_GH0.tar.gz) = 59937
+TIMESTAMP = 1785732561
+SHA256 (precice-python-bindings-v3.4.0_GH0.tar.gz) = 074b2a3a5072b786ec70ba9b2c6c403d07c8592ff80fdb2b5836b32b441b6a68
+SIZE (precice-python-bindings-v3.4.0_GH0.tar.gz) = 31986
diff --git a/science/py-pyprecice/files/patch-pyproject.toml b/science/py-pyprecice/files/patch-pyproject.toml
new file mode 100644
index 000000000000..f40d4a8bf7ff
--- /dev/null
+++ b/science/py-pyprecice/files/patch-pyproject.toml
@@ -0,0 +1,33 @@
+-- Fix PEP 621 license declaration and remove setuptools-git-versioning.
+-- The port distfile is not a git checkout, so dynamic git-based versioning fails.
+-- Use a static version matching DISTVERSION instead.
+--- pyproject.toml.orig	2026-08-04 00:44:13 UTC
++++ pyproject.toml
+@@ -1,14 +1,13 @@
+ [build-system]
+-requires = ["setuptools>=61", "wheel", "Cython>=0.29", "numpy", "mpi4py", "pkgconfig", "setuptools-git-versioning"]
++requires = ["setuptools>=61", "wheel", "Cython>=0.29", "numpy", "mpi4py", "pkgconfig"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
+ name = "pyprecice"
+-dynamic = [ "version" ]
++version = "3.4.0"
+ readme = "README.md"
+ description="Python language bindings for the preCICE coupling library"
+-license = "LGPL-3.0"
+-license-files = ["LICENSE.txt"]
++license = {text = "LGPL-3.0"}
+ 
+ requires-python = ">= 3.10"
+ dependencies = [
+@@ -27,9 +26,6 @@ sponsor = "https://precice.org/community-support-preci
+ issues = "https://github.com/precice/python-bindings/issues"
+ repository = "https://github.com/precice/python-bindings.git"
+ sponsor = "https://precice.org/community-support-precice.html"
+-
+-[tool.setuptools-git-versioning]
+-enabled = true
+ 
+ [tool.setuptools]
+ packages = ["precice"]


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a724741.3d804.1c1c3356>