git: 813ca905450d - main - science/py-trx-python: update 0.3 → 0.4.0

Yuri Victorovich <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

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

commit 813ca905450d5a38d89b471480e529c4ae78b3b0
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-07-31 06:35:00 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-07-31 07:08:37 +0000

    science/py-trx-python: update 0.3 → 0.4.0
---
 science/py-trx-python/Makefile                   | 28 ++++++++++++------------
 science/py-trx-python/distinfo                   |  6 ++---
 science/py-trx-python/files/patch-pyproject.toml | 13 +++++++++++
 3 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/science/py-trx-python/Makefile b/science/py-trx-python/Makefile
index 5a953ced1633..37639199542a 100644
--- a/science/py-trx-python/Makefile
+++ b/science/py-trx-python/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	trx-python # this project is planned to be merged into DIPY (science/py-dipy)
-DISTVERSION=	0.3
-PORTREVISION=	1
+DISTVERSION=	0.4.0
 CATEGORIES=	science python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,18 +12,16 @@ WWW=		https://tee-ar-ex.github.io/trx-python/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}deepdiff>0:devel/py-deepdiff@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}nibabel>0:science/py-nibabel@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}packaging>=19.0:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4:devel/py-setuptools-scm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
-		${PY_SETUPTOOLS}
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} # mistaken dependency, see https://github.com/tee-ar-ex/trx-python/issues/73
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest-console-scripts>0:devel/py-pytest-console-scripts@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=7:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}deepdiff>0:devel/py-deepdiff@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nibabel>=5:science/py-nibabel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}numpy>=1.22:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typer>=0.9:devel/py-typer@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=7:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-console-scripts>=0:devel/py-pytest-console-scripts@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	pep517 cython autoplist pytest # few tests fail due to missing files
@@ -34,5 +31,8 @@ USE_PYTHON=	pep517 cython autoplist pytest # few tests fail due to missing files
 
 NO_ARCH=	yes
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_ARGS=	-p no:relaxed
+
+# tests as of 0.4.0: 138 passed, 25 skipped, 2 xfailed in 6.53s
 
 .include <bsd.port.mk>
diff --git a/science/py-trx-python/distinfo b/science/py-trx-python/distinfo
index cfa4774f5541..a74a6cf6471c 100644
--- a/science/py-trx-python/distinfo
+++ b/science/py-trx-python/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1731105961
-SHA256 (trx_python-0.3.tar.gz) = 193e3282eaf03610c7e1b848aec04ddb9498fad3a7b684b30ca358e06751fbfd
-SIZE (trx_python-0.3.tar.gz) = 85937
+TIMESTAMP = 1777539225
+SHA256 (trx_python-0.4.0.tar.gz) = 264e25d57dd98ead71a009a2e35a8143c98ff5b32fcabce7464a9d1a8c88195d
+SIZE (trx_python-0.4.0.tar.gz) = 120843
diff --git a/science/py-trx-python/files/patch-pyproject.toml b/science/py-trx-python/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e57310cb107f
--- /dev/null
+++ b/science/py-trx-python/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+-- Relax the setuptools minimum version in pyproject.toml
+-- The port is built against the FreeBSD py-setuptools version, which may be
+-- older than 64, so drop the lower bound while keeping the required packages.
+
+--- pyproject.toml.orig	2026-04-30 15:57:26 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools >= 64", "wheel", "setuptools_scm[toml] >= 7"]
++requires = ["setuptools", "wheel", "setuptools_scm[toml] >= 7"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.