Sun Nov 14 15:16:19 2021 UTC ()
py-dogpile-cache: updated to 1.1.4

1.1.4
usecase

[usecase] [memcached]
Added support for pymemcache socket keepalive and retrying client.
See also PyMemcacheBackend.socket_keepalive
PyMemcacheBackend.enable_retry_client

bug

[bug] [general]
Fixed Python 3.10 deprecation warning involving threading

1.1.3
bug

[bug] [regression] [tests]
Repaired the test suite to work with the 5.x series of the decorator module, which now appears to make use of the __signature__ attribute.
[bug] [regression]
Fixed regression where ProxyBackend was missing several methods that were added as part of the 1.1 release.

1.1.2
feature

[feature] [region]
Added new region method CacheRegion.key_is_locked(). Returns True if the given key is subject to the dogpile lock, which would indicate that the generator function is running at that time. Pull request courtesy Bastien Gerard.

[feature] [memcached]
Added support for the pymemcache backend, using the "dogpile.cache.pymemcache" backend identifier. Pull request courtesy Moisés Guimarães de Medeiros.
See also PyMemcacheBackend

1.1.1
bug

[bug] [region]
Fixed regression where the serialization and deserialization functions could be inadvertently turned into instance methods with an unexpected argument signature, namely when pickle.dumps and pickle.loads are the pure Python version as is the case in pypy.

1.1.0
feature

[feature] [region]
Reworked the means by which values are serialized and deserialized from backends, and provided for custom serialization of values. Added the CacheRegion.serializer and CacheRegion.deserializer parameters which may be set to any serializer.
Serialization and deserialization now take place within the CacheRegion so that backends may now assume string values in all cases. This simplifies the existing backends and also makes custom backends easier to write and maintain.
Additionally, the serializer is now applied to the user-defined value portion of the CachedValue and not to the metadata or other portions of CachedValue object itself, so the serialized portion is effectively a “payload” within the larger CachedValue structure that is passed as part of the larger string format. The overall format is a separate JSON of the cached value metadata, followed by the serialized form. This allows for end-user serialization schemes that are hardwired to the values themselves without the need to serialize dogpile’s internal structures as well.
Existing custom backends should continue to work without issue; they now have the option to forego any separate serialization steps, and can also subclass a new backend BytesBackend that marks them as a backend that only deals with bytes coming in and out; all internal serialization logic from such a backend can be removed.
Pull request courtesy Alessio Bogon.

misc

[change]
Added pep-484 annotations to most of the dogpile.cache package.

1.0.2
feature

[feature] [memcached]
Added support for TLS connections to the bmemcached backend. Pull request courtesy Moisés Guimarães de Medeiros.
bug

[bug] [installation]
Repaired the setup.cfg file so that the source and wheel distributions will not add the “tests” directory to the Python environment. Pull request courtesy Michał Górny.

1.0.1
bug

[bug] [install]
dogpile.cache 1.0.0 was released with a minimum Python version of 3.5. However, due to a dependency issue, the minimum version is now Python 3.6. The 1.0.0 release will be removed from PyPI so that Python versions prior to 3.6 will continue to make use of the previous dogpile.cache 0.9.2.

[bug] [installation]
Removed the “universal=1” directive from setup.cfg as this would create py2/py3 wheels. dogpile 1.0.x is Python 3 only so a py3-only wheel is now created.

1.0.0
feature

[feature]
Improved plugin scanner performance by switching from pkg_resources to stevedore.
[feature] [redis]
Added support for Redis Sentinel. Pull request courtesy Stéphane Brunner. See RedisSentinelBackend.

misc

[change: py3k]
For version 1.0.0, dogpile.cache now supports Python 3.5 and above only.


(adam)
diff -r1.5 -r1.6 pkgsrc/devel/py-dogpile-cache/Makefile
diff -r1.7 -r1.8 pkgsrc/devel/py-dogpile-cache/distinfo

cvs diff -r1.5 -r1.6 pkgsrc/devel/py-dogpile-cache/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-dogpile-cache/Makefile 2020/05/16 13:56:47 1.5
+++ pkgsrc/devel/py-dogpile-cache/Makefile 2021/11/14 15:16:19 1.6
@@ -1,24 +1,27 @@ @@ -1,24 +1,27 @@
1# $NetBSD: Makefile,v 1.5 2020/05/16 13:56:47 adam Exp $ 1# $NetBSD: Makefile,v 1.6 2021/11/14 15:16:19 adam Exp $
2 2
3DISTNAME= dogpile.cache-0.9.2 3DISTNAME= dogpile.cache-1.1.4
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/./-/} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/./-/}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=d/dogpile.cache/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=d/dogpile.cache/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://bitbucket.org/zzzeek/dogpile.cache 9HOMEPAGE= https://bitbucket.org/zzzeek/dogpile.cache
10COMMENT= Caching front-end based on the Dogpile lock 10COMMENT= Caching front-end based on the Dogpile lock
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13DEPENDS+= ${PYPKGPREFIX}-decorator-[0-9]*:../../devel/py-decorator 13DEPENDS+= ${PYPKGPREFIX}-decorator>=4.0.0:../../devel/py-decorator
 14DEPENDS+= ${PYPKGPREFIX}-stevedore>=3.0.0:../../devel/py-decorator
14TEST_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako 15TEST_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
15TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock 16TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
16TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov 17TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
17TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner 18TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
18 19
19USE_LANGUAGES= # none 20USE_LANGUAGES= # none
20 21
21PYSETUPTESTTARGET= pytest 22PYSETUPTESTTARGET= pytest
22 23
 24PYTHON_VERSIONS_INCOMPATIBLE= 27
 25
23.include "../../lang/python/egg.mk" 26.include "../../lang/python/egg.mk"
24.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-dogpile-cache/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-dogpile-cache/distinfo 2021/10/26 10:18:24 1.7
+++ pkgsrc/devel/py-dogpile-cache/distinfo 2021/11/14 15:16:19 1.8
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.7 2021/10/26 10:18:24 nia Exp $ 1$NetBSD: distinfo,v 1.8 2021/11/14 15:16:19 adam Exp $
2 2
3BLAKE2s (dogpile.cache-0.9.2.tar.gz) = 073a217635f2461c083972fa9d108e0afdd46db03126a793887524cec3e8b9e0 3BLAKE2s (dogpile.cache-1.1.4.tar.gz) = 48f4b631daf1d712a3fbc5716910491a0a6b518592f2bfb63079c0ae72805095
4SHA512 (dogpile.cache-0.9.2.tar.gz) = e54b29b5f868ddb7d2cddae37033fd568e5d5b8305c76837a53a4252a4e45c5179ed9e5e3694f5b826ad57d87cb3b04a20f872952758dbf9139859dc4bde53f4 4SHA512 (dogpile.cache-1.1.4.tar.gz) = d70f0ad1097f7de5bc887cfd0835f02a10bd6096433d39e6fe2fad5ed294f019ee043ced670c08bacb8ad1f6cf32ada36a62149a9b6db6205e72f49fa68bf4c4
5Size (dogpile.cache-0.9.2.tar.gz) = 329503 bytes 5Size (dogpile.cache-1.1.4.tar.gz) = 390117 bytes