From nobody Sun Apr 21 03:04:43 2024 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VMYBz4PPYz5HGpk; Sun, 21 Apr 2024 03:04:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VMYBz3fb2z4Chq; Sun, 21 Apr 2024 03:04:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713668683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IjdsnJOkANx9XhDImO48huAv1TRBvmW73CWrUBc//2Y=; b=hzKVjdGGEqcS5NetW/nAeOyIswVUliWabQerrzuzyY3G7zvOXiBIhxMADm/gQ8qdbIvjFX mkl9Z/rbsgLvD3a6NKD5HVYkUkQtNONuqK7z2qTpVPUdIiAoVdo8BJPQA73Vk3qOZhCHuI OX6mQC/xIQssdl4uyUFhUy/jDC4y4iKgfNqTQmRXwqOHEsgEvcTTlLRlE8+PhW40ni5HFM 3Hxk2aRgqEmNmj6LBiJJOj+EJr0xvYTKMiVVcrzBixXvuGQAgoh1Sm1s0q4/k4ITeAW5rM fLRq8yM47eUA0RHvg3XLcdJww+W1ih91OLse4C555+6m6Q127hVPED2jDfyO9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713668683; a=rsa-sha256; cv=none; b=fL320r/j3pQH/L2rkNxLbpWL/a5Dedw4f51YyhO3nDMIWDWBcSylREeJI/vnhLpflW1heG F5XutrkEmYEbl2jUm6wsCTChBQx1knjPVVMt5zZ/vrBLCY2NH1tGz6LDsqwRdSuSgkhNFF T0sLKC7im1gaDfZAJKPda/on/lD2yc5PdUbx7L5uGt2vXBes4Xqksn52itXUKY1GRfbBL0 e65nxy5a1pk9Galn+G3G37dE6LH+86Eg4+bSbAWNTTMby4kfV5j5SHVjy3dXhlr7CcuSgj gAVaniYhQvskdIDjjjXgFPzSa60MgK4WejAn3rzB2ANuAqn0+6q40kIbPlT53g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713668683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IjdsnJOkANx9XhDImO48huAv1TRBvmW73CWrUBc//2Y=; b=POi4KviUmf48qDHXge2eRDruybnPKQGAJZhOIkU5Z9mdu7pdJngOq3zz7sZYAUZ2PPq0t/ aNZh/kWJkamkWKyU5mNO2gP9yKgc5KRLQPJ1YuJDzOwfmJedvOJLEpUXWL1VetTTjsmwLi PEg6PGFgZ9jdV6y0cacJJ7NTWPmGvs360W96XQHiqBSqz4cCPTjeSyEggizgiYA7/TEoh/ 4tTnMd7B15jKHT0L9v2PT1urd+cX6db4VMKJBBUIzVr3c7vYMTKY/V734bkR9NcnWNX8ML jKbUW9BA+MTWXxbt9Yj5mPumdneZ52NdaoyFb1YwrFiZLoN9Zv7A3MpOHG+E7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VMYBz3GNxz1366; Sun, 21 Apr 2024 03:04:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43L34hWB097897; Sun, 21 Apr 2024 03:04:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43L34h9S097894; Sun, 21 Apr 2024 03:04:43 GMT (envelope-from git) Date: Sun, 21 Apr 2024 03:04:43 GMT Message-Id: <202404210304.43L34h9S097894@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Yuri Victorovich Subject: git: 064820fad8cd - 2024Q2 - misc/py-onnx: update 1.14.1 =?utf-8?Q?=E2=86=92?= 1.16.0 List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-branches@freebsd.org Sender: owner-dev-commits-ports-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q2 X-Git-Reftype: branch X-Git-Commit: 064820fad8cd2000dcc2ffaaa6c462bc02212fa0 Auto-Submitted: auto-generated The branch 2024Q2 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=064820fad8cd2000dcc2ffaaa6c462bc02212fa0 commit 064820fad8cd2000dcc2ffaaa6c462bc02212fa0 Author: Yuri Victorovich AuthorDate: 2024-04-20 03:28:45 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-21 03:04:39 +0000 misc/py-onnx: update 1.14.1 → 1.16.0 Reported by: portscout (cherry picked from commit 3a60351797a76f2c1bdbfac7d31b2ed3e661f01f) --- misc/py-onnx/Makefile | 16 ++++++++++----- misc/py-onnx/distinfo | 6 +++--- misc/py-onnx/files/patch-CMakeLists.txt | 13 ++---------- misc/py-onnx/files/patch-pyproject.toml | 11 ++++++++++ misc/py-onnx/files/patch-setup.py | 36 +++++++++++++++++++++++++++------ 5 files changed, 57 insertions(+), 25 deletions(-) diff --git a/misc/py-onnx/Makefile b/misc/py-onnx/Makefile index 09c41dcc6110..f39307b4743f 100644 --- a/misc/py-onnx/Makefile +++ b/misc/py-onnx/Makefile @@ -1,6 +1,5 @@ PORTNAME= onnx -DISTVERSION= 1.14.1 -PORTREVISION= 1 +DISTVERSION= 1.16.0 CATEGORIES= misc # machine-learning MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -16,19 +15,26 @@ BUILD_DEPENDS= bash:shells/bash \ cmake:devel/cmake-core \ protoc-gen-mypy:devel/py-mypy-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} -LIB_DEPENDS= libprotobuf.so:devel/protobuf + ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} \ + ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libabsl_base.so:devel/abseil \ + libprotobuf.so:devel/protobuf RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.2.1:devel/py-typing-extensions@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}parameterized>0:devel/py-parameterized@${PY_FLAVOR} USES= compiler:c++17-lang python shebangfix -USE_PYTHON= distutils concurrent autoplist +USE_PYTHON= pep517 concurrent autoplist pytest CXXFLAGS+= -Dstat64=stat SHEBANG_FILES= tools/protoc-gen-mypy.sh.in +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/onnx/test + BINARY_ALIAS= python=${PYTHON_CMD} post-install: diff --git a/misc/py-onnx/distinfo b/misc/py-onnx/distinfo index 32b8f3c1aa76..1e6ebb954add 100644 --- a/misc/py-onnx/distinfo +++ b/misc/py-onnx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1693031876 -SHA256 (onnx-1.14.1.tar.gz) = 70903afe163643bd71195c78cedcc3f4fa05a2af651fd950ef3acbb15175b2d1 -SIZE (onnx-1.14.1.tar.gz) = 11328774 +TIMESTAMP = 1713580433 +SHA256 (onnx-1.16.0.tar.gz) = 237c6987c6c59d9f44b6136f5819af79574f8d96a760a1fa843bede11f3822f7 +SIZE (onnx-1.16.0.tar.gz) = 12303017 diff --git a/misc/py-onnx/files/patch-CMakeLists.txt b/misc/py-onnx/files/patch-CMakeLists.txt index 07e389904c09..c658385d91e3 100644 --- a/misc/py-onnx/files/patch-CMakeLists.txt +++ b/misc/py-onnx/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- CMakeLists.txt.orig 2023-08-08 18:33:06 UTC +--- CMakeLists.txt.orig 2024-03-05 00:46:58 UTC +++ CMakeLists.txt -@@ -18,7 +18,7 @@ project(onnx C CXX) +@@ -19,7 +19,7 @@ option(ONNX_USE_PROTOBUF_SHARED_LIBS "Build ONNX using option(ONNX_BUILD_BENCHMARKS "Build ONNX micro-benchmarks" OFF) option(ONNX_USE_PROTOBUF_SHARED_LIBS "Build ONNX using protobuf shared library. Sets PROTOBUF_USE_DLLS CMAKE Flag and Protobuf_USE_STATIC_LIBS. " OFF) @@ -9,12 +9,3 @@ option(ONNX_GEN_PB_TYPE_STUBS "Generate protobuf python type stubs" ON) option(ONNX_WERROR "Build with Werror" OFF) option(ONNX_COVERAGE "Build with coverage instrumentation" OFF) -@@ -58,7 +58,7 @@ endif() - # Required to use /std:c++17 or higher on Windows - # For other platforms, set C++11 as standard for the whole project - if(NOT MSVC) -- set(CMAKE_CXX_STANDARD 11) -+ set(CMAKE_CXX_STANDARD 17) - else() - string(APPEND CMAKE_CXX_FLAGS " /std:c++17") - endif() diff --git a/misc/py-onnx/files/patch-pyproject.toml b/misc/py-onnx/files/patch-pyproject.toml new file mode 100644 index 000000000000..03d073137dca --- /dev/null +++ b/misc/py-onnx/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2024-03-05 06:23:47 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: Apache-2.0 + + [build-system] +-requires = ["setuptools>=64", "protobuf>=3.20.2", "cmake"] ++requires = ["setuptools", "protobuf>=3.20.2"] + build-backend = "setuptools.build_meta" + + [project] diff --git a/misc/py-onnx/files/patch-setup.py b/misc/py-onnx/files/patch-setup.py index 550ecb070c95..0c28f53ef277 100644 --- a/misc/py-onnx/files/patch-setup.py +++ b/misc/py-onnx/files/patch-setup.py @@ -1,20 +1,44 @@ ---- setup.py.orig 2023-04-12 23:29:42 UTC +--- setup.py.orig 2024-03-25 14:15:57 UTC +++ setup.py -@@ -59,11 +59,12 @@ COVERAGE = bool(os.getenv("COVERAGE", "0") == "1") +@@ -65,11 +65,12 @@ try: ################################################################################ try: -- git_version = ( +- _git_version = ( - subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) - .decode("ascii") - .strip() - ) -+ #git_version = ( ++ #_git_version = ( + # subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=TOP_DIR) + # .decode("ascii") + # .strip() + #) -+ git_version = None ++ _git_version = "" except (OSError, subprocess.CalledProcessError): - git_version = None + _git_version = "" +@@ -227,10 +228,7 @@ class BuildPy(setuptools.command.build_py.build_py): + + class BuildPy(setuptools.command.build_py.build_py): + def run(self): +- if self.editable_mode: +- dst_dir = TOP_DIR +- else: +- dst_dir = self.build_lib ++ dst_dir = self.build_lib + create_version(dst_dir) + return super().run() + +@@ -273,10 +271,7 @@ class BuildExt(setuptools.command.build_ext.build_ext) + self.copy_file(src, dst) + + # Copy over the generated python files to build/source dir depending on editable mode +- if self.editable_mode: +- dst_dir = TOP_DIR +- else: +- dst_dir = build_lib ++ dst_dir = build_lib + + generated_py_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.py")) + generated_pyi_files = glob.glob(os.path.join(CMAKE_BUILD_DIR, "onnx", "*.pyi"))