From nobody Sun Apr 28 07:10:16 2024 X-Original-To: dev-commits-ports-all@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 4VRyK45Rq5z5J7l9; Sun, 28 Apr 2024 07:10:16 +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 4VRyK41n7Yz44G3; Sun, 28 Apr 2024 07:10:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714288216; 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=DrcJoEuMNgEMGGq+0MISXo6g1q8MjVO3RT4376hgmSE=; b=t7iUCG6IHxmdYYqp5TOYcnJI6elgHDsld0a91kM37XfvTzqH46i/vY30gMrdQVrP0V6lyW cjytQeMwoLkKxDuZrpJaMi/F+TBYraxfLz5a3lz4i6shLjtb3XeFM7YJCeI65UEhKtALm+ Brh7k8XJDp+bE4lxui4PQDLQQ9vOnr8XbUroPT8WFz24+6Lffg0mUk9XoVBy/7abA4Ezbe 7r3jeaFSgwxVcIBJLwRqEkkDPDSi9XL7qSVNAA5tNTYDmUw4MQI+rnaCf/Ai45hDJ8UVik MFs+xwfflrZvpGbW/Z2PEMouPC1VxuQ47pW6Myt/AI/sDkvJKxt2v6r1KQwSLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714288216; a=rsa-sha256; cv=none; b=Eldg+Pwzg+msmXa3YvVtrUUlSyR7q/PUO4d9G6Vf1uziFBBJ6OybQx+mIuy7idfwAhhOTS Ta0JCPH1n3ujToIm0eYKJ7H3DGwMFU1/V288DP/cs0aEc5WwYA45ewYn3K/Ntx+qRU9Ipk zsUjZL4rB/CZJiah6jw83uEIAK7lL7xqNbW4srjnJ5Gbzpkog7VFdT0gcMgxPdUG1HViTS BMy3g9x4nHytDo0nOpNOSktMPPel0v5yEzL5lgZPDt3dYol9u+aqyf4SDFF1QWAEZo7BLc qZlgEyY4wBKbY2Xdql9Xf5u6NlzBwuE7RW4pQypiuZ4G3S2ovUqTmH5Dla1xTw== 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=1714288216; 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=DrcJoEuMNgEMGGq+0MISXo6g1q8MjVO3RT4376hgmSE=; b=E8swQIy4i3w/Sn7DE1OAWYTYOpjioYUc2hcuP6Af8mC5YZVeZ/lVHr6AwtrxBXJWoTuEK4 /A01hVCZFobz+oeTEjMPN7prWdTCU0qkd+mn8Ueh/DvcH49PwG+9+CYhXNY36IKHTxldzR LfINF8Igc6m+1qvq61ECtrrSS+p02J/0+op9bUBMR+9domZvjRevUety8AOcR7bkZ+WRGB 4Q/8MMr0i64ZBJD/PgK8GsVVAHPoHVHjWPhDZxw1/4X0rkUHmjj9gxeaYUyq7YqMzvuVjt wZmF3t0t1w41z26mgUrR82wZQ56/aJPo0d0cuMO/GoOzodIj7A1RB1PgqOObSw== 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 4VRyK41PZQzFhX; Sun, 28 Apr 2024 07:10:16 +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 43S7AGY8081344; Sun, 28 Apr 2024 07:10:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43S7AGLM081339; Sun, 28 Apr 2024 07:10:16 GMT (envelope-from git) Date: Sun, 28 Apr 2024 07:10:16 GMT Message-Id: <202404280710.43S7AGLM081339@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: 85db96ff3544 - main - misc/py-codecarbon: New port: Track Compute emissions, recommend ways to reduce environmental impact List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@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: 85db96ff35440744ee033db9a66d7e0e2467b00e Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=85db96ff35440744ee033db9a66d7e0e2467b00e commit 85db96ff35440744ee033db9a66d7e0e2467b00e Author: Yuri Victorovich AuthorDate: 2024-04-28 07:05:18 +0000 Commit: Yuri Victorovich CommitDate: 2024-04-28 07:10:01 +0000 misc/py-codecarbon: New port: Track Compute emissions, recommend ways to reduce environmental impact --- misc/Makefile | 1 + misc/py-codecarbon/Makefile | 33 +++++++++++++++++++++++++++++++++ misc/py-codecarbon/distinfo | 3 +++ misc/py-codecarbon/pkg-descr | 2 ++ 4 files changed, 39 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 2f2339470284..af4ed332f010 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -408,6 +408,7 @@ SUBDIR += py-boost-histogram SUBDIR += py-censys SUBDIR += py-cinder + SUBDIR += py-codecarbon SUBDIR += py-colorbrewer SUBDIR += py-colored SUBDIR += py-crudini diff --git a/misc/py-codecarbon/Makefile b/misc/py-codecarbon/Makefile new file mode 100644 index 000000000000..9392f567e378 --- /dev/null +++ b/misc/py-codecarbon/Makefile @@ -0,0 +1,33 @@ +PORTNAME= codecarbon +DISTVERSION= 2.3.5 +CATEGORIES= misc # machine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Track Compute emissions, recommend ways to reduce environmental impact +WWW= https://mlco2.github.io/codecarbon/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prometheus-client>0:net-mgmt/py-prometheus-client@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}py-cpuinfo>0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pynvml>0:devel/py-pynvml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rapidfuzz>0:devel/py-rapidfuzz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ + ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}requests-mock>0:www/py-requests-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest # some test dependencies are missing + +NO_ARCH= yes + +.include diff --git a/misc/py-codecarbon/distinfo b/misc/py-codecarbon/distinfo new file mode 100644 index 000000000000..6b36bc059c9c --- /dev/null +++ b/misc/py-codecarbon/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714179020 +SHA256 (codecarbon-2.3.5.tar.gz) = ef0f77d520f179624448a6a064f04647c08a8fb1bbc50cc516457899c69321ae +SIZE (codecarbon-2.3.5.tar.gz) = 170344 diff --git a/misc/py-codecarbon/pkg-descr b/misc/py-codecarbon/pkg-descr new file mode 100644 index 000000000000..d23af270412a --- /dev/null +++ b/misc/py-codecarbon/pkg-descr @@ -0,0 +1,2 @@ +The codecarbon package estimates and tracks carbon emissions from your computer, +quantify and analyze their impact.