From nobody Tue May 30 08:34:17 2023 X-Original-To: dev-commits-ports-main@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 4QVm094qWsz4Y5tg; Tue, 30 May 2023 08:34:17 +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 4QVm093Zcwz3lVc; Tue, 30 May 2023 08:34:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685435657; 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=RoGyJxZwTc7JpcY34hku/GDFw/QsyUUO++GWRZCOFwk=; b=C1OhIt4SxlYI5ox4KXobNTz68v3lVure5TsebMwTw4B/gdI/d55d36qtOePu4rfAkdWQdI Oj5z4S9K1K41wow4JJnNzlG0QcSa+5SCf2w+5hlafbvxsT3dVb8/s0XdhLVSIlBE02suL5 5nPr0+0nMrBRaCe7hsT0+0LD7rSE4dliOMwVi8eS58O9v3rTp5LvAN7eIVPqFFev4dN0EX axBZ6GXjjRCfk07bcRYI/R7aYTX6l6NXJUsVBkR0sREuLVaNAjrZdOoI77nVByQX9dhtgR 0484NCxnYWjEW4H2B0SuKm/3pBTd5ZH7kagYbXkQFir3YbLCXUgTQ6u8jjap+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685435657; 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=RoGyJxZwTc7JpcY34hku/GDFw/QsyUUO++GWRZCOFwk=; b=vmZYwdbgdsKVgFTxDRdPEaTIUkssTRU1A0DV2lZaWZfZg4R7UpdKYq5YxO1OenLoLRmPPg IK5lpBLg3lpo0lDuaAL/YvolQmLDsObd+JUQADv1PIZEx4APBBXkQCehzneAFRseyJ6skX 7LLIjeZaDctEEdC4VABLimVwqJMGl+iQAs3rW3w+7GJ1xazVVKvrkkcGLW7S2bPvV2Y3+R MRGTSK38yL3e8RYcvTW9kFwshfg1r5hMfUqFqNvaEr0rCeqsYGqKGNrCgdfQsTCijNEV6D wRrMTkLo2eGLOvBjqYO37U4Lo5HTZUaDjLjEV5snP3h3bNmfl8eLD4doLT2ePA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685435657; a=rsa-sha256; cv=none; b=X0uFXjekH0wLS3pgayld/Muk1KmWx+aHYXQ0NSMK9TqW9rU3hwl4GzIwgbrnmyINBF0Jt1 OE4ZXl+wbPrQCofiGeDRa3ZXgzwppt9/BXgsH6h1BzivrmO8/rWUifLsz+zz5lDgI4Eq+i 7UUD1txRnLSuZus3/u3qSllvFnA3qEbejBysdLb82LMVo4Kel8gyFXHDDY1hgLo3PeyTEJ fCDueVIZqC9clESORQyNoTYhgVHSfylyRimB/Tgt73vJ+N+s/IAC2k3SNYkj5oBBHf6Kch u+yKyO7VUhyODmdtpgha/8shAnk76VOXh9BwERmzv8zOQ+b5Sp1ABUzwBmOr3g== 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 4QVm092Hy1zmn1; Tue, 30 May 2023 08:34:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34U8YHDA072135; Tue, 30 May 2023 08:34:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34U8YH5B072133; Tue, 30 May 2023 08:34:17 GMT (envelope-from git) Date: Tue, 30 May 2023 08:34:17 GMT Message-Id: <202305300834.34U8YH5B072133@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: e18e8104d404 - main - misc/py-torchmetrics: New port: PyTorch native metrics List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: e18e8104d4044b18f7d4d40046a4f56c3167febf Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e18e8104d4044b18f7d4d40046a4f56c3167febf commit e18e8104d4044b18f7d4d40046a4f56c3167febf Author: Yuri Victorovich AuthorDate: 2023-05-30 08:05:14 +0000 Commit: Yuri Victorovich CommitDate: 2023-05-30 08:34:13 +0000 misc/py-torchmetrics: New port: PyTorch native metrics --- misc/Makefile | 1 + misc/py-torchmetrics/Makefile | 30 ++++++++++++++++++++++++++++++ misc/py-torchmetrics/distinfo | 3 +++ misc/py-torchmetrics/pkg-descr | 8 ++++++++ 4 files changed, 42 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 4f160640a5e6..b95f3a87cd4c 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -469,6 +469,7 @@ SUBDIR += py-tflite-support SUBDIR += py-toil SUBDIR += py-torch-geometric + SUBDIR += py-torchmetrics SUBDIR += py-torchvision SUBDIR += py-tqdm SUBDIR += py-tvm diff --git a/misc/py-torchmetrics/Makefile b/misc/py-torchmetrics/Makefile new file mode 100644 index 000000000000..d67da7429b66 --- /dev/null +++ b/misc/py-torchmetrics/Makefile @@ -0,0 +1,30 @@ +PORTNAME= torchmetrics +DISTVERSION= 0.11.4 +CATEGORIES= misc python # machine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PyTorch native metrics +WWW= https://torchmetrics.readthedocs.io/en/stable/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nltk>=3.6:textproc/py-nltk@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}regex>=2021.9.24:textproc/py-regex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>=1.0.0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}torchvision>0:misc/py-torchvision@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=4.41.0:misc/py-tqdm@${PY_FLAVOR} # some optional dependencies for some sections are missing +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.7+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +.include diff --git a/misc/py-torchmetrics/distinfo b/misc/py-torchmetrics/distinfo new file mode 100644 index 000000000000..42fa25db6c86 --- /dev/null +++ b/misc/py-torchmetrics/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685432785 +SHA256 (torchmetrics-0.11.4.tar.gz) = 1fe45a14b44dd65d90199017dd5a4b5a128d56a8a311da7916c402c18c671494 +SIZE (torchmetrics-0.11.4.tar.gz) = 307144 diff --git a/misc/py-torchmetrics/pkg-descr b/misc/py-torchmetrics/pkg-descr new file mode 100644 index 000000000000..4655d2f97f10 --- /dev/null +++ b/misc/py-torchmetrics/pkg-descr @@ -0,0 +1,8 @@ +TorchMetrics is a collection of 90+ PyTorch metrics implementations and an +easy-to-use API to create custom metrics. It offers: +* A standardized interface to increase reproducibility +* Reduces Boilerplate +* Distributed-training compatible +* Rigorously tested +* Automatic accumulation over batches +* Automatic synchronization between multiple devices