diff options
Diffstat (limited to 'misc/py-codecarbon')
-rw-r--r-- | misc/py-codecarbon/Makefile | 13 | ||||
-rw-r--r-- | misc/py-codecarbon/distinfo | 6 | ||||
-rw-r--r-- | misc/py-codecarbon/files/patch-pyproject.toml | 18 |
3 files changed, 29 insertions, 8 deletions
diff --git a/misc/py-codecarbon/Makefile b/misc/py-codecarbon/Makefile index 28142c73be81..45172db110f4 100644 --- a/misc/py-codecarbon/Makefile +++ b/misc/py-codecarbon/Makefile @@ -1,6 +1,5 @@ PORTNAME= codecarbon -DISTVERSION= 2.3.5 -PORTREVISION= 1 +DISTVERSION= 3.0.4 CATEGORIES= misc # machine-learning MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,6 +11,8 @@ WWW= https://mlco2.github.io/codecarbon/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} 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} \ @@ -20,14 +21,16 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arrow>0:devel/py-arrow@${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} + ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}questionary>0:devel/py-questionary@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typer>0:devel/py-typer@${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 +USE_PYTHON= pep517 autoplist pytest # some test dependencies are missing NO_ARCH= yes diff --git a/misc/py-codecarbon/distinfo b/misc/py-codecarbon/distinfo index 6b36bc059c9c..a0e5318d490f 100644 --- a/misc/py-codecarbon/distinfo +++ b/misc/py-codecarbon/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714179020 -SHA256 (codecarbon-2.3.5.tar.gz) = ef0f77d520f179624448a6a064f04647c08a8fb1bbc50cc516457899c69321ae -SIZE (codecarbon-2.3.5.tar.gz) = 170344 +TIMESTAMP = 1755884609 +SHA256 (codecarbon-3.0.4.tar.gz) = 4292fede09e44753b1185a8b91c53e1ed9108692733f612f32c44cab779dcc8c +SIZE (codecarbon-3.0.4.tar.gz) = 296194 diff --git a/misc/py-codecarbon/files/patch-pyproject.toml b/misc/py-codecarbon/files/patch-pyproject.toml new file mode 100644 index 000000000000..d745319aa9d7 --- /dev/null +++ b/misc/py-codecarbon/files/patch-pyproject.toml @@ -0,0 +1,18 @@ +--- pyproject.toml.orig 2025-08-22 17:52:23 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools>=61", "wheel"] ++requires = ["setuptools", "wheel"] + build-backend = "setuptools.build_meta" + + [project] +@@ -7,8 +7,6 @@ requires-python = ">=3.7" + dynamic = ["version"] + readme = "README.md" + requires-python = ">=3.7" +-license = "MIT" +-license-files = ["LICENSE"] + authors = [ + { name = "Mila" }, + { name = "DataForGood" }, |