git: 85db96ff3544 - main - misc/py-codecarbon: New port: Track Compute emissions, recommend ways to reduce environmental impact
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Apr 2024 07:10:16 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=85db96ff35440744ee033db9a66d7e0e2467b00e commit 85db96ff35440744ee033db9a66d7e0e2467b00e Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-04-28 07:05:18 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> 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 <bsd.port.mk> 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.