diff --git a/misc/py-modelscope/Makefile b/misc/py-modelscope/Makefile index 6640014087a7..72ffe6cb7240 100644 --- a/misc/py-modelscope/Makefile +++ b/misc/py-modelscope/Makefile @@ -1,29 +1,30 @@ PORTNAME= modelscope -PORTVERSION= 1.37.1 +PORTVERSION= 1.38.1 CATEGORIES= misc python # machine-learning MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Model-as-a-Service platform for AI model inference and training WWW= https://www.modelscope.cn/home \ https://github.com/modelscope/modelscope LICENSE= APACHE20 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}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} \ ${PYTHON_PKGNAMEPREFIX}tqdm>=4.64.0:misc/py-tqdm@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26:net/py-urllib3@${PY_FLAVOR} # from requirements/hub.txt, but there are other requirements files as well + ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26:net/py-urllib3@${PY_FLAVOR} # from requirements/hub.txt USES= python USE_PYTHON= pep517 concurrent autoplist NO_ARCH= yes .include diff --git a/misc/py-modelscope/distinfo b/misc/py-modelscope/distinfo index 4305fef05909..5ddf641377a7 100644 --- a/misc/py-modelscope/distinfo +++ b/misc/py-modelscope/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1781832793 -SHA256 (modelscope-1.37.1.tar.gz) = 7d9124970b4e53639bebe89f60473dee7d5a80589bf35bfbef4c839933cdaf93 -SIZE (modelscope-1.37.1.tar.gz) = 4594233 +TIMESTAMP = 1785187735 +SHA256 (modelscope-1.38.1.tar.gz) = a81f3685b1545f52b415d88a763456416aa65170e622f9dcc02eadb3f8e1cfa0 +SIZE (modelscope-1.38.1.tar.gz) = 4542886 diff --git a/misc/py-modelscope/files/patch-pyproject.toml b/misc/py-modelscope/files/patch-pyproject.toml index 807db916bd87..74ceee6d10d6 100644 --- a/misc/py-modelscope/files/patch-pyproject.toml +++ b/misc/py-modelscope/files/patch-pyproject.toml @@ -1,25 +1,38 @@ --- Fix pyproject.toml for compatibility with setuptools 63.1.0: +-- Fix pyproject.toml for compatibility with the setuptools version available in ports: -- - 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. ---- pyproject.toml.orig 2026-05-22 05:56:16 UTC +-- - 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 @@ -3,8 +3,7 @@ readme = {file = "README.md", content-type = "text/mar dynamic = ["version", "dependencies", "optional-dependencies"] description = "ModelScope: bring the notion of Model-as-a-Service to life." readme = {file = "README.md", content-type = "text/markdown"} -license = "Apache-2.0" -license-files = ["LICENSE"] +license = {text = "Apache-2.0"} authors = [ {name = "ModelScope team"}, {email = "contact@modelscope.cn"} -@@ -28,7 +27,7 @@ ms = "modelscope.cli.cli:run_cmd" - ms = "modelscope.cli.cli:run_cmd" +@@ -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" [build-system] -requires = ["setuptools>=69", "wheel"] +requires = ["setuptools>=63.1.0", "wheel"] build-backend = "setuptools.build_meta" [tool.setuptools]