From nobody Wed Dec 11 20:46:59 2024 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 4Y7nhg2nQTz5gSLt; Wed, 11 Dec 2024 20:46:59 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7nhg1qrlz4mfW; Wed, 11 Dec 2024 20:46:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733950019; 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=qtaakT55rxiaqZGaAdKWlqLbCR7zgr1ZZ/66FfyUqLc=; b=yvR43Ft7vFErTN1813eoXDPM0jcOeONZlKSM71n7O7q9ydALnH1mxpuYwt7jdT/aD+B/2m /V+pQOyGW0BH09GZR13lwJH4oJhVrAlvYp2szZ4MtC7pHGdxB3U34aZGK8zPggGMt0aLQi MgO0UzVJoY1m0NxJ+sJ/h7jvYN2z/f0iOVDhKM6sfzcHFtryPFezdjD11NXdkaVHtTytY3 VKRJ5mOKjcg+3HjdP2eIXnKfbl0iFCzCNzwB6aKsJ0pM5Ns9lpNofAS8cKZ54vjY3pdCWd fUyq2FMUOPjmWwVsMFF3cxfM3y5LLW9CaiL3ozTQSmVVIckSZK1vZOuJTJ+AVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733950019; 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=qtaakT55rxiaqZGaAdKWlqLbCR7zgr1ZZ/66FfyUqLc=; b=h/cHs81mA6OmFhjJGQjmi4dTNYxfwa5nW7fEMkfy9awre3k8mMXZl/iVppgDSpKzsnjJuW atTAUgE+6TcbCoi/3O7ZaGP2Lb8KQfurnroSyTjFswkSBYepxnBVOVdVGChotQn6SU6YF0 SvsgBeOpiC08OgFNkl+Fe/Kpj5qrwPgp3z9JXlSr8fw4NlXXT7NV7GzEJcjwKAa0eUjMYl SUs1LVKadp5keyrFx58tq4YL4y7AjB9vQdv2djnTqaMbWvXoR+HWmkUPCZiQv5acpilVp5 D2j3GSvOLrtxUPtpr+RtwWnuxZCVDe73f0SZf+P13sANXivKuS5WFHPv+UEvGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733950019; a=rsa-sha256; cv=none; b=GlVz9ci4LE/CU70JKrXj3j0cPlpem5PZ/H1SL7ESSYo+TXHX64Fbb0b9R+t8brR74nBdtf ILbDRLdy1z/rMoFFdSZSZoS8nJtqENFcypNeV2aWisPwtNsEyLN369f9jn/Rnnj5czmlha vXIrBBDum5YnWIzTgDfQBdM1vTTJgY5omMBM5athEV6TLjG7238j17RCH7yYQIH2r4kg/4 5hTz1f407VQi7CGqxn9fZtGW4xYbozpp4A256Pv5VabqU38xkZfKTvAR5Tg+z+VCidKuYV XdNC/0eaFeFotwwnu4monhme0rofdb53Vs66azxpEHfgUhy8kNTL39FqzKnjbA== 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 4Y7nhg1RTXzNP4; Wed, 11 Dec 2024 20:46:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BBKkxQj084510; Wed, 11 Dec 2024 20:46:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BBKkx7a084507; Wed, 11 Dec 2024 20:46:59 GMT (envelope-from git) Date: Wed, 11 Dec 2024 20:46:59 GMT Message-Id: <202412112046.4BBKkx7a084507@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: 8ab7d67491a4 - main - devel/py-cachey: New port: Caching mindful of computation/storage costs 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: 8ab7d67491a47c4e7754373a91bc334dec80f8c7 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ab7d67491a47c4e7754373a91bc334dec80f8c7 commit 8ab7d67491a47c4e7754373a91bc334dec80f8c7 Author: Yuri Victorovich AuthorDate: 2024-12-11 20:46:23 +0000 Commit: Yuri Victorovich CommitDate: 2024-12-11 20:46:55 +0000 devel/py-cachey: New port: Caching mindful of computation/storage costs --- devel/Makefile | 1 + devel/py-cachey/Makefile | 21 +++++++++++++++++++++ devel/py-cachey/distinfo | 3 +++ devel/py-cachey/pkg-descr | 7 +++++++ 4 files changed, 32 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 436a13acfa9b..d7b491d4a9e5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4582,6 +4582,7 @@ SUBDIR += py-cabby SUBDIR += py-cached-property SUBDIR += py-cachetools + SUBDIR += py-cachey SUBDIR += py-cacheyou SUBDIR += py-cachy SUBDIR += py-cadquery-pywrap diff --git a/devel/py-cachey/Makefile b/devel/py-cachey/Makefile new file mode 100644 index 000000000000..73cc02684d43 --- /dev/null +++ b/devel/py-cachey/Makefile @@ -0,0 +1,21 @@ +PORTNAME= cachey +DISTVERSION= 0.2.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Caching mindful of computation/storage costs +WWW= https://github.com/dask/cachey/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}heapdict>0:devel/py-heapdict@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest + +NO_ARCH= yes + +.include diff --git a/devel/py-cachey/distinfo b/devel/py-cachey/distinfo new file mode 100644 index 000000000000..5c79c670e701 --- /dev/null +++ b/devel/py-cachey/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1733949081 +SHA256 (cachey-0.2.1.tar.gz) = 0310ba8afe52729fa7626325c8d8356a8421c434bf887ac851e58dcf7cf056a6 +SIZE (cachey-0.2.1.tar.gz) = 6461 diff --git a/devel/py-cachey/pkg-descr b/devel/py-cachey/pkg-descr new file mode 100644 index 000000000000..22bc88402a66 --- /dev/null +++ b/devel/py-cachey/pkg-descr @@ -0,0 +1,7 @@ +cachey implements caching based on computation time and storage space. + +Cachey tries to hold on to values that have the following characteristics: +* Expensive to recompute (in seconds) +* Cheap to store (in bytes) +* Frequently used +* Recenty used