pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-cachetools



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jun  7 21:38:52 UTC 2025

Modified Files:
        pkgsrc/devel/py-cachetools: Makefile PLIST distinfo

Log Message:
py-cachetools: update to 6.0.0.

v6.0.0 (2025-05-23)
===================

- Require Python 3.9 or later (breaking change).

- Remove ``MRUCache`` and the ``@func.mru_cache`` decorator (breaking
  change).

- Add an optional ``condition`` parameter to the ``@cached`` and
  ``@cachedmethod`` decorators, which, when used with a
  ``threading.Condition`` instance, should improve `cache stampede
  <https://en.wikipedia.org/wiki/Cache_stampede>`_ issues in massively
  parallel environments.  Note that this will inflict some performance
  penalty, and therefore has to be enabled explicitly.

- Convert the ``cachetools.func`` decorators to use a
  ``threading.Condition`` instance to deal with `cache stampede
  <https://en.wikipedia.org/wiki/Cache_stampede>`_ issues.  Note that
  this *may* result in a noticable performance degradation, depending
  on your actual use case.

- Deprecate support for ``cache(self)`` returning ``None`` to suppress
  caching with the ``@cachedmethod`` decorator.

- Improve documentation.

- Update CI environment.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/devel/py-cachetools/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-cachetools/PLIST
cvs rdiff -u -r1.22 -r1.23 pkgsrc/devel/py-cachetools/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-cachetools/Makefile
diff -u pkgsrc/devel/py-cachetools/Makefile:1.23 pkgsrc/devel/py-cachetools/Makefile:1.24
--- pkgsrc/devel/py-cachetools/Makefile:1.23    Sat Apr 12 10:02:37 2025
+++ pkgsrc/devel/py-cachetools/Makefile Sat Jun  7 21:38:52 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2025/04/12 10:02:37 adam Exp $
+# $NetBSD: Makefile,v 1.24 2025/06/07 21:38:52 wiz Exp $
 
-DISTNAME=      cachetools-5.5.2
+DISTNAME=      cachetools-6.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/cachetools/}
 

Index: pkgsrc/devel/py-cachetools/PLIST
diff -u pkgsrc/devel/py-cachetools/PLIST:1.8 pkgsrc/devel/py-cachetools/PLIST:1.9
--- pkgsrc/devel/py-cachetools/PLIST:1.8        Sat Apr 12 10:02:37 2025
+++ pkgsrc/devel/py-cachetools/PLIST    Sat Jun  7 21:38:52 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2025/04/12 10:02:37 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2025/06/07 21:38:52 wiz Exp $
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -7,9 +7,12 @@ ${PYSITELIB}/${WHEEL_INFODIR}/top_level.
 ${PYSITELIB}/cachetools/__init__.py
 ${PYSITELIB}/cachetools/__init__.pyc
 ${PYSITELIB}/cachetools/__init__.pyo
-${PYSITELIB}/cachetools/_decorators.py
-${PYSITELIB}/cachetools/_decorators.pyc
-${PYSITELIB}/cachetools/_decorators.pyo
+${PYSITELIB}/cachetools/_cached.py
+${PYSITELIB}/cachetools/_cached.pyc
+${PYSITELIB}/cachetools/_cached.pyo
+${PYSITELIB}/cachetools/_cachedmethod.py
+${PYSITELIB}/cachetools/_cachedmethod.pyc
+${PYSITELIB}/cachetools/_cachedmethod.pyo
 ${PYSITELIB}/cachetools/func.py
 ${PYSITELIB}/cachetools/func.pyc
 ${PYSITELIB}/cachetools/func.pyo

Index: pkgsrc/devel/py-cachetools/distinfo
diff -u pkgsrc/devel/py-cachetools/distinfo:1.22 pkgsrc/devel/py-cachetools/distinfo:1.23
--- pkgsrc/devel/py-cachetools/distinfo:1.22    Fri Feb 21 08:47:04 2025
+++ pkgsrc/devel/py-cachetools/distinfo Sat Jun  7 21:38:52 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2025/02/21 08:47:04 adam Exp $
+$NetBSD: distinfo,v 1.23 2025/06/07 21:38:52 wiz Exp $
 
-BLAKE2s (cachetools-5.5.2.tar.gz) = b52812fc7c40823f41918395e4e636677f30f4f496c0f1b284047d18703c42b1
-SHA512 (cachetools-5.5.2.tar.gz) = 9969eb5ca092174975a79e664594842b4ae4f671bc17ae3e3d2d286b164eb408af254d6b40358dcbe5e4341fc6a0ef928e192eb1432696ed7654729062555a29
-Size (cachetools-5.5.2.tar.gz) = 28380 bytes
+BLAKE2s (cachetools-6.0.0.tar.gz) = 28811fb99ca59d141db0cfaa8cc5df717bcf8c384fbb47a181b25e6d0d29bbd0
+SHA512 (cachetools-6.0.0.tar.gz) = 881bbfede550fe6366eb69274e50156cf6f0a6d3cce9bc7542a4ca36044d3a9b9520aa547fcc173d518f6007c7b4c48d492fecb9d6663233d3d0ee9473f8aa53
+Size (cachetools-6.0.0.tar.gz) = 30160 bytes



Home | Main Index | Thread Index | Old Index