[meta-python,2/4] python3-cachetools: upgrade 4.2.4 -> 5.0.0

Message ID 20220324155746.2341330-2-trevor.gamblin@windriver.com
State Superseded
Headers show
Series [meta-python,1/4] python3-protobuf: upgrade 3.19.3 -> 3.19.4 | expand

Commit Message

Trevor Gamblin March 24, 2022, 3:57 p.m. UTC
From the changelog (https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst):

- 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.

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
 ...{python3-cachetools_4.2.4.bb => python3-cachetools_5.0.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-cachetools_4.2.4.bb => python3-cachetools_5.0.0.bb} (89%)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb b/meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb
similarity index 89%
rename from meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb
rename to meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb
index bf225e60e..f2974f7e3 100644
--- a/meta-python/recipes-devtools/python/python3-cachetools_4.2.4.bb
+++ b/meta-python/recipes-devtools/python/python3-cachetools_5.0.0.bb
@@ -27,6 +27,6 @@  do_install_ptest() {
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
 
-SRC_URI[sha256sum] = "89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693"
+SRC_URI[sha256sum] = "486471dfa8799eb7ec503a8059e263db000cdda20075ce5e48903087f79d5fd6"
 
 BBCLASSEXTEND = "native nativesdk"