BSD Ports

devel/py-propcache 0.5.2 NetBSD

Accelerated property cache

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
65c9b1c391
License
apache-2.0
Categories
devel, python
Package size
46.9 KiB, 153.2 KiB installed

Description

The module provides a fast implementation of cached properties for Python 3.8+.

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
NetBSDdevel/py-propcache0.5.2
FreeBSDdevel/py-propcache0.5.4
OpenBSDdevel/py-propcache0.5.4
DragonFlydevel/py-propcache0.3.0
MidnightBSDdevel/py-propcache0.4.1
HardenedBSDdevel/py-propcache0.5.4
GhostBSDdevel/py-propcache0.5.4

Install

Binary package:

pkgin install py312-propcache

From pkgsrc:

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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.5.2
NetBSD 10.1 aarch640.5.2
SmartOS / illumos x86_640.5.4
macOS 15 arm640.5.4

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py313-propcache-0.5.2, py314-propcache-0.5.2

Commit history 2

DateCommitCreditsLog message
65c9b1c391 adam Forget Python 3.10
1ba4080654 adam py-propcache: updated to 0.5.4
0.5.4 Packaging updates and notes for downstreams - Fixed the release wheels being compiled without optimization since version 0.5.0. The build backend set ``CFLAGS`` to add ``-ffile-prefix-map``, which replaced the interpreter's own compiler flags instead of extending them, so ``-O3`` and ``-DNDEBUG`` were dropped; the extra flags now go through ``CPPFLAGS``, which is appended. Cached property reads are about 1.5x faster than in 0.5.3