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: Sun Apr 30 15:15:20 UTC 2023
Modified Files:
pkgsrc/devel/py-cachetools: Makefile PLIST distinfo
Log Message:
py-cachetools: update to 5.3.0.
v5.3.0 (2023-01-22)
===================
- Add ``cache_info()`` function to ``@cached`` decorator.
v5.2.1 (2023-01-08)
===================
- Add support for Python 3.11.
- Correct version information in RTD documentation.
- ``badges/shields``: Change to GitHub workflow badge routes.
v5.2.0 (2022-05-29)
===================
- Add ``cachetools.keys.methodkey()``.
- Add ``cache_clear()`` function to decorators.
- Add ``src`` directory to ``sys.path`` for Sphinx autodoc.
- Modernize ``func`` wrappers.
v5.1.0 (2022-05-15)
===================
- Add cache decorator parameters as wrapper function attributes.
v5.0.0 (2021-12-21)
===================
- Require Python 3.7 or later (breaking change).
- Remove deprecated submodules (breaking change).
The ``cache``, ``fifo``, ``lfu``, ``lru``, ``mru``, ``rr`` and
``ttl`` submodules have been deleted. Therefore, statements like
``from cachetools.ttl import TTLCache``
will no longer work. Use
``from cachetools import TTLCache``
instead.
- Pass ``self`` to ``@cachedmethod`` key function (breaking change).
The ``key`` function passed to the ``@cachedmethod`` decorator is
now called as ``key(self, *args, **kwargs)``.
The default key function has been changed to ignore its first
argument, so this should only affect applications using custom key
functions with the ``@cachedmethod`` decorator.
- Change exact time of expiration in ``TTLCache`` (breaking change).
``TTLCache`` items now get expired if their expiration time is less
than *or equal to* ``timer()``. For applications using the default
``timer()``, this should be barely noticable, but it may affect the
use of custom timers with larger tick intervals. Note that this
also implies that a ``TTLCache`` with ``ttl=0`` can no longer hold
any items, since they will expire immediately.
- Change ``Cache.__repr__()`` format (breaking change).
String representations of cache instances now use a more compact and
efficient format, e.g.
``LRUCache({1: 1, 2: 2}, maxsize=10, currsize=2)``
- Add TLRU cache implementation.
- Documentation improvements.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/py-cachetools/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-cachetools/PLIST
cvs rdiff -u -r1.14 -r1.15 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.13 pkgsrc/devel/py-cachetools/Makefile:1.14
--- pkgsrc/devel/py-cachetools/Makefile:1.13 Tue Jan 4 20:52:55 2022
+++ pkgsrc/devel/py-cachetools/Makefile Sun Apr 30 15:15:20 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2022/01/04 20:52:55 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2023/04/30 15:15:20 wiz Exp $
-DISTNAME= cachetools-4.2.4
+DISTNAME= cachetools-5.3.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.4 pkgsrc/devel/py-cachetools/PLIST:1.5
--- pkgsrc/devel/py-cachetools/PLIST:1.4 Thu Sep 30 19:02:27 2021
+++ pkgsrc/devel/py-cachetools/PLIST Sun Apr 30 15:15:20 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2021/09/30 19:02:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2023/04/30 15:15:20 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -6,30 +6,9 @@ ${PYSITELIB}/${EGG_INFODIR}/top_level.tx
${PYSITELIB}/cachetools/__init__.py
${PYSITELIB}/cachetools/__init__.pyc
${PYSITELIB}/cachetools/__init__.pyo
-${PYSITELIB}/cachetools/cache.py
-${PYSITELIB}/cachetools/cache.pyc
-${PYSITELIB}/cachetools/cache.pyo
-${PYSITELIB}/cachetools/fifo.py
-${PYSITELIB}/cachetools/fifo.pyc
-${PYSITELIB}/cachetools/fifo.pyo
${PYSITELIB}/cachetools/func.py
${PYSITELIB}/cachetools/func.pyc
${PYSITELIB}/cachetools/func.pyo
${PYSITELIB}/cachetools/keys.py
${PYSITELIB}/cachetools/keys.pyc
${PYSITELIB}/cachetools/keys.pyo
-${PYSITELIB}/cachetools/lfu.py
-${PYSITELIB}/cachetools/lfu.pyc
-${PYSITELIB}/cachetools/lfu.pyo
-${PYSITELIB}/cachetools/lru.py
-${PYSITELIB}/cachetools/lru.pyc
-${PYSITELIB}/cachetools/lru.pyo
-${PYSITELIB}/cachetools/mru.py
-${PYSITELIB}/cachetools/mru.pyc
-${PYSITELIB}/cachetools/mru.pyo
-${PYSITELIB}/cachetools/rr.py
-${PYSITELIB}/cachetools/rr.pyc
-${PYSITELIB}/cachetools/rr.pyo
-${PYSITELIB}/cachetools/ttl.py
-${PYSITELIB}/cachetools/ttl.pyc
-${PYSITELIB}/cachetools/ttl.pyo
Index: pkgsrc/devel/py-cachetools/distinfo
diff -u pkgsrc/devel/py-cachetools/distinfo:1.14 pkgsrc/devel/py-cachetools/distinfo:1.15
--- pkgsrc/devel/py-cachetools/distinfo:1.14 Tue Oct 26 10:18:16 2021
+++ pkgsrc/devel/py-cachetools/distinfo Sun Apr 30 15:15:20 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2021/10/26 10:18:16 nia Exp $
+$NetBSD: distinfo,v 1.15 2023/04/30 15:15:20 wiz Exp $
-BLAKE2s (cachetools-4.2.4.tar.gz) = fb8c61c2c6450211f2afa2f8044207de3b54503e483f18b899e75ab4ac2dfaf1
-SHA512 (cachetools-4.2.4.tar.gz) = 29a6bb3a064e5603cd3e3882d8e5a6a6ef95ba3029716692c9a82d7186a0befcfb8ed4a0ee3ecb591fdff93a46836d5b25acca7ba5eab1ba837e86404aea8fcf
-Size (cachetools-4.2.4.tar.gz) = 25487 bytes
+BLAKE2s (cachetools-5.3.0.tar.gz) = 9f267ce2a76555e5e4b4c97c2cbac224bcbc570f35eafb745efa90638f05e1ea
+SHA512 (cachetools-5.3.0.tar.gz) = 5f0be2e95b82de4866718744ba1712354b413441eb8978f0bcb3e32306b6671b8ed7fa238aa31bef4c3b97764347d12a375b058f5df51dc80b277bf2cef23e61
+Size (cachetools-5.3.0.tar.gz) = 27935 bytes
Home |
Main Index |
Thread Index |
Old Index