BSD Ports

devel/py-propcache 0.4.1 MidnightBSD

Accelerated property cache

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
2bca5e4df4
License
Apache-2.0
Categories
devel, python

Description

propcache provides a fast implementation of cached properties for Python.

The API is designed to be nearly identical to the built-in functools.cached_property class, except for the additional under_cached_property class which uses self._cache instead of self.__dict__ to store the cached values and prevents __set__ from being called.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-propcache0.4.1
FreeBSDdevel/py-propcache0.5.4
OpenBSDdevel/py-propcache0.5.4
NetBSDdevel/py-propcache0.5.2
DragonFlydevel/py-propcache0.3.0
HardenedBSDdevel/py-propcache0.5.4
GhostBSDdevel/py-propcache0.5.4

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}propcache

From mports:

cd /usr/mports/devel/py-propcache && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}propcache>0:devel/py-propcache

Dependencies

As this port's Makefile names them.

Build 3

Build dependencies 3

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
propcache-0.4.1.tar.gz46442f48107a8c637e80362555f37ecf49abe20370e557cc4ab374f04ec4423c97c3d
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
2bca5e4df4 Lucas Holt devel/py-propcache: add 0.4.1 (#1275)
New port: accelerated property cache from the aio-libs project. A fast implementation of cached properties whose API mirrors `functools.cached_property`, plus an `under_cached_property` variant that stores values in `self._cache` instead of `self.__dict__`. Part of #1269. Needed as a run dependency by `www/py-yarl` 1.17+ and `www/py-aiohttp` 3.14+. Ported from FreeBSD `devel/py-propcache` (same version, same distfile checksum), including the `patch-cython` relaxation of the Cython pin. ### Validation - `bmake makesum` / `patch` / `build` / `fake` / `package` all pass - `portlint -AC` clean - Import and C-extension load verified on MidnightBSD 4.0.6/amd64, py312 **Merge first** — `www/py-yarl` and `www/py-aiohttp` depend on this. …