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.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-propcache listed in the above command, you can pick from the names under the Packages section.
Mk/Uses/python.mk: Introduce USE_PYTHON=cython3{,_run,_test}
- Update USE_PYTHON=cython{,_run,_test}
- Convert all cython3 occurrence to USE_PYTHON=cython3*
- While I'm here, fix incorrect usage of combining cython3 in BUILD_DEPENDS and
USE_PYTHON=cython
It is added to simplify the future transition from Cython 0.29 to 3.
The minimal version is set to 3.0.12 because it is required by
devel/py-propcache.
The upper bound of version is set to 3.1 because it is limited by multiple
ports.
devel/py-propcache: Add py-propcache 0.2.0
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.