git: c28e9aacaa67 - main - science/py-mpcontribs-client: update 5.10.1 → 5.10.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Sep 2026 20:06:19 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c28e9aacaa674ce9a3f7aad268bfe4cd2eca99e8
commit c28e9aacaa674ce9a3f7aad268bfe4cd2eca99e8
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-10 00:09:17 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-10 19:58:18 +0000
science/py-mpcontribs-client: update 5.10.1 → 5.10.5
---
science/py-mpcontribs-client/Makefile | 11 ++++++-----
science/py-mpcontribs-client/distinfo | 6 +++---
.../files/patch-pyproject.toml | 22 ++++++++++++++++++++++
3 files changed, 31 insertions(+), 8 deletions(-)
diff --git a/science/py-mpcontribs-client/Makefile b/science/py-mpcontribs-client/Makefile
index 5e1a786f9db0..a33a814ca328 100644
--- a/science/py-mpcontribs-client/Makefile
+++ b/science/py-mpcontribs-client/Makefile
@@ -1,6 +1,5 @@
PORTNAME= mpcontribs-client
-DISTVERSION= 5.10.1
-PORTREVISION= 4
+DISTVERSION= 5.10.5
CATEGORIES= science python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +12,8 @@ WWW= https://github.com/materialsproject/MPContribs/tree/master/mpcontribs-clie
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boltons>0:devel/py-boltons@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}bravado>0:www/py-bravado@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cachetools>0:devel/py-cachetools@${PY_FLAVOR} \
@@ -36,10 +35,12 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boltons>0:devel/py-boltons@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ujson>0:devel/py-ujson@${PY_FLAVOR}
USES= python
-USE_PYTHON= distutils autoplist pytest # tests fail due to a missing package mpcontribs.api, see https://github.com/materialsproject/MPContribs/issues/1590
+USE_PYTHON= pep517 autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
+# tests as of 5.10.5: 3 passed, 1 skipped in 3.89s
+
.include <bsd.port.mk>
diff --git a/science/py-mpcontribs-client/distinfo b/science/py-mpcontribs-client/distinfo
index a0e5987ac5b0..1be4a5c54a56 100644
--- a/science/py-mpcontribs-client/distinfo
+++ b/science/py-mpcontribs-client/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1740649877
-SHA256 (mpcontribs_client-5.10.1.tar.gz) = 91f7ec109c990d560f118af9de600d82b838bad53409c79e654156218ec02246
-SIZE (mpcontribs_client-5.10.1.tar.gz) = 29809
+TIMESTAMP = 1788943998
+SHA256 (mpcontribs_client-5.10.5.tar.gz) = a26adfae9dbd34fc0164e477afcd3beefda25537301272909723cbd1b242ee13
+SIZE (mpcontribs_client-5.10.5.tar.gz) = 29887
diff --git a/science/py-mpcontribs-client/files/patch-pyproject.toml b/science/py-mpcontribs-client/files/patch-pyproject.toml
new file mode 100644
index 000000000000..3bea87c3f9f1
--- /dev/null
+++ b/science/py-mpcontribs-client/files/patch-pyproject.toml
@@ -0,0 +1,22 @@
+-- Adjust pyproject.toml to build with the setuptools version available in the
+-- FreeBSD ports tree: lower the build-system requirement and use the legacy
+-- PEP 621 license syntax supported by that version.
+
+--- pyproject.toml.orig 2026-09-09 09:05:05 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=80.0.0","setuptools-scm>=8"]
++requires = ["setuptools>=63.1","setuptools-scm>=8"]
+ build-backend = "setuptools.build_meta"
+
+ [tool.setuptools_scm]
+@@ -19,7 +19,7 @@
+ dynamic = ["version"]
+ requires-python = ">=3.11"
+ description="Client library for MPContribs API"
+-license = "BSD-3-Clause-LBNL"
++license = {text = "BSD-3-Clause-LBNL"}
+ authors = [
+ {name = "Patrick Huck", email = "phuck@lbl.gov"},
+ {name = "The Materials Project", email="feedback@materialsproject.org"},