git: 30df8925fd81 - main - misc/py-modelscope: update 1.38.1 → 1.40.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 12 Sep 2026 00:37:38 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=30df8925fd81f2938d335e540ad7fa4cdab7d096

commit 30df8925fd81f2938d335e540ad7fa4cdab7d096
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-11 17:14:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-12 00:37:20 +0000

    misc/py-modelscope: update 1.38.1 → 1.40.0
---
 misc/py-modelscope/Makefile                   |  4 ++--
 misc/py-modelscope/distinfo                   |  6 +++---
 misc/py-modelscope/files/patch-pyproject.toml | 19 +++----------------
 3 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/misc/py-modelscope/Makefile b/misc/py-modelscope/Makefile
index 72ffe6cb7240..65028cee6b43 100644
--- a/misc/py-modelscope/Makefile
+++ b/misc/py-modelscope/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	modelscope
-PORTVERSION=	1.38.1
+PORTVERSION=	1.40.0
 CATEGORIES=	misc python # machine-learning
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}modelscope-hub>=0.0.7:misc/py-modelscope-hub@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}modelscope-hub>=0.3.0:misc/py-modelscope-hub@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.25:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \
diff --git a/misc/py-modelscope/distinfo b/misc/py-modelscope/distinfo
index 5ddf641377a7..cf4c223b2753 100644
--- a/misc/py-modelscope/distinfo
+++ b/misc/py-modelscope/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1785187735
-SHA256 (modelscope-1.38.1.tar.gz) = a81f3685b1545f52b415d88a763456416aa65170e622f9dcc02eadb3f8e1cfa0
-SIZE (modelscope-1.38.1.tar.gz) = 4542886
+TIMESTAMP = 1789142452
+SHA256 (modelscope-1.40.0.tar.gz) = ed2a3882bdd2aa652f1ec692cee8e999ba7809a371a0b863f33649bb2f2de6ef
+SIZE (modelscope-1.40.0.tar.gz) = 4547751
diff --git a/misc/py-modelscope/files/patch-pyproject.toml b/misc/py-modelscope/files/patch-pyproject.toml
index 74ceee6d10d6..5bbd92819a18 100644
--- a/misc/py-modelscope/files/patch-pyproject.toml
+++ b/misc/py-modelscope/files/patch-pyproject.toml
@@ -2,9 +2,7 @@
 -- - Convert license string to PEP 621 table format.
 -- - Remove license-files property (not supported by setuptools<69).
 -- - Lower setuptools build requirement from >=69 to >=63.1.0.
--- - Remove [project.scripts] entries because they conflict with the modelscope-hub
---   dependency, which provides the same CLI scripts.
---- pyproject.toml.orig	2026-07-06 15:13:12 UTC
+--- pyproject.toml.orig	2026-09-09 02:17:05 UTC
 +++ pyproject.toml
 @@ -3,8 +3,7 @@ readme = {file = "README.md", content-type = "text/mar
  dynamic = ["version", "dependencies", "optional-dependencies"]
@@ -16,19 +14,8 @@
  authors = [
    {name = "ModelScope team"},
    {email = "contact@modelscope.cn"}
-@@ -23,10 +22,6 @@ Homepage = "https://github.com/modelscope/modelscope"
- [project.urls]
- Homepage = "https://github.com/modelscope/modelscope"
- 
--[project.scripts]
--modelscope = "modelscope.cli.cli:run_cmd"
--ms = "modelscope.cli.cli:run_cmd"
--
- [project.entry-points."modelscope_hub.cli_plugins"]
- pipeline = "modelscope.cli.pipeline:PipelineCMD"
- server = "modelscope.cli.server:ServerCMD"
-@@ -37,7 +32,7 @@ studio = "modelscope.cli.studio:StudioCMD"
- studio = "modelscope.cli.studio:StudioCMD"
+@@ -43,7 +42,7 @@ modelcard = "modelscope.cli.modelcard:ModelCardCMD"
+ modelcard = "modelscope.cli.modelcard:ModelCardCMD"
  
  [build-system]
 -requires = ["setuptools>=69", "wheel"]