17
0

61 Commits

Author SHA256 Message Date
4b4eb2b5dd Accepting request 1333393 from devel:languages:python
- update to 7.0.1:
  * Various test improvements.
  * Update Copilot Instructions.
  * Require Python 3.10 or later (breaking change).
  * Drop support for passing info as fourth positional parameter
    to @cached (breaking change).
  * Drop support for cache(self) returning None with
    @cachedmethod (breaking change).
  * Convert the @cachedmethod wrappers to descriptors,
    deprecating its use with class methods and instances that do
    not provide a mutable __dict__ attribute (potentially
    breaking change).
  * Convert the previously undocumented @cachedmethod attributes
    (cache, cache_lock, etc.) to properties for instance methods,
    providing official support and documentation (potentially
    breaking change).
  * Add an optional info parameter to the @cachedmethod decorator
    for reporting per-instance cache statistics.  Note that this
    requires the instance's __dict__ attribute to be a mutable
    mapping.
  * Improve typedkey performance.
  * Minor documentation improvements.
  * Minor testing improvements.
  * Minor code readability improvements.
  * Improve documentation regarding @cachedmethod with lock
    parameter.

OBS-URL: https://build.opensuse.org/request/show/1333393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=30
2026-02-17 15:37:31 +00:00
b063ad2dd9 - update to 7.0.1:
* Various test improvements.
  * Update Copilot Instructions.
  * Require Python 3.10 or later (breaking change).
  * Drop support for passing info as fourth positional parameter
    to @cached (breaking change).
  * Drop support for cache(self) returning None with
    @cachedmethod (breaking change).
  * Convert the @cachedmethod wrappers to descriptors,
    deprecating its use with class methods and instances that do
    not provide a mutable __dict__ attribute (potentially
    breaking change).
  * Convert the previously undocumented @cachedmethod attributes
    (cache, cache_lock, etc.) to properties for instance methods,
    providing official support and documentation (potentially
    breaking change).
  * Add an optional info parameter to the @cachedmethod decorator
    for reporting per-instance cache statistics.  Note that this
    requires the instance's __dict__ attribute to be a mutable
    mapping.
  * Improve typedkey performance.
  * Minor documentation improvements.
  * Minor testing improvements.
  * Minor code readability improvements.
  * Improve documentation regarding @cachedmethod with lock
    parameter.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=59
2026-02-16 16:45:40 +00:00
442e77214f Accepting request 1325975 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1325975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=29
2026-01-09 16:02:54 +00:00
bc979275d7 Accepting request 1325960 from home:glaubitz:branches:devel:languages:python
- Update to 6.2.4
  * Fix license information displayed on PyPI be using an updated
    version of ``twine`` for uploading.
- from version 6.2.3
  * Improve documentation regarding ``@cachedmethod`` with ``condition``
    parameter.
  * Minor style and readability improvements.
  * Modernize build environment.
  * Update CI environment.
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/request/show/1325960
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=57
2026-01-08 14:01:42 +00:00
089d46deae Accepting request 1318836 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1318836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=28
2025-11-21 15:53:33 +00:00
9a54f0ce62 Accepting request 1318800 from home:glaubitz:branches:devel:languages:python
- Update to 6.2.2
  * Minor improvements from GitHub Copilot code review.
  * Improve documentation.
- from version 6.2.1
  * Add support for Python 3.14.
  * Improve documentation.
  * Update CI environment.

OBS-URL: https://build.opensuse.org/request/show/1318800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=55
2025-11-20 10:55:13 +00:00
cc17746bfa Accepting request 1303563 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=27
2025-09-11 12:38:08 +00:00
8716e5b1fb Accepting request 1303544 from home:glaubitz:branches:devel:languages:python
- Update to 6.2.0
  * Improve general ``RRCache`` performance by storing cache keys in an
    additional sequence container.  Note that this will increase memory
    consumption.
  * Add more unit tests.

OBS-URL: https://build.opensuse.org/request/show/1303544
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=53
2025-09-10 09:09:59 +00:00
e8a2890210 Accepting request 1292330 from devel:languages:python
- update to 6.1.0:
  * Improve LFUCache insertion performance by switching to an
    implementation based on the cacheing library.
  * Update CI environment.
  * Require Python 3.9 or later (breaking change).

OBS-URL: https://build.opensuse.org/request/show/1292330
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=26
2025-07-15 14:42:56 +00:00
76f818b509 - update to 6.1.0:
* Improve LFUCache insertion performance by switching to an
    implementation based on the cacheing library.
  * Update CI environment.
  * Require Python 3.9 or later (breaking change).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=51
2025-07-12 11:43:50 +00:00
00b513fc4a Accepting request 1285948 from devel:languages:python
- Switch to pyroject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1285948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=25
2025-06-17 16:20:17 +00:00
f95fc3b159 - Switch to pyroject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=49
2025-06-16 06:18:29 +00:00
f4dddb1be0 Accepting request 1248023 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=24
2025-02-25 15:39:13 +00:00
23560c9b46 Accepting request 1248017 from home:glaubitz:branches:devel:languages:python
- Update to 5.5.2
  * Reduce number of ``@cached`` lock/unlock operations.
  * Improve documentation.
  * Update CI environment.

OBS-URL: https://build.opensuse.org/request/show/1248017
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=47
2025-02-24 08:43:52 +00:00
15afe65926 Accepting request 1240758 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1240758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=23
2025-01-29 15:09:51 +00:00
88dee09150 Accepting request 1240539 from home:glaubitz:branches:devel:languages:python
- Update to 5.5.1
  * Add documentation regarding caching of exceptions.
  * Officially support Python 3.13.
  * Update CI environment.

OBS-URL: https://build.opensuse.org/request/show/1240539
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=45
2025-01-28 10:27:30 +00:00
d0977ee4c8 Accepting request 1206442 from devel:languages:python
- update to 5.5.0:
  * TTLCache.expire() returns iterable of expired (key, value)
    pairs.

OBS-URL: https://build.opensuse.org/request/show/1206442
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=22
2024-10-09 20:03:25 +00:00
8574a51724 - update to 5.5.0:
* TTLCache.expire() returns iterable of expired (key, value)
    pairs.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=43
2024-09-28 19:58:52 +00:00
7dc1f8999e Accepting request 1164117 from devel:languages:python
- update to 5.3.3:
  * Documentation improvements.
  * Update CI environment.

OBS-URL: https://build.opensuse.org/request/show/1164117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=21
2024-04-03 15:18:48 +00:00
3f4c393267 - update to 5.3.3:
* Documentation improvements.
  * Update CI environment.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=41
2024-04-02 13:11:10 +00:00
17e95a5ccc Accepting request 1124987 from devel:languages:python
- update to 5.3.2:
  * Add support for Python 3.12.
  * Various documentation improvements.

OBS-URL: https://build.opensuse.org/request/show/1124987
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=20
2023-11-13 21:16:23 +00:00
1b090cbb46 - update to 5.3.2:
* Add support for Python 3.12.
  * Various documentation improvements.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=39
2023-11-10 13:36:54 +00:00
521ceef250 Accepting request 1089608 from devel:languages:python
- update to 5.3.1:
  * Depend on Python >= 3.7.

OBS-URL: https://build.opensuse.org/request/show/1089608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=19
2023-05-30 20:01:39 +00:00
2fcc971466 - update to 5.3.1:
* Depend on Python >= 3.7.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=37
2023-05-29 16:04:45 +00:00
e9980c70c4 Accepting request 1081971 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=18
2023-04-22 20:01:41 +00:00
0ecfe6d46b Accepting request 1081355 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081355
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=35
2023-04-21 14:50:48 +00:00
befd1dadfd Accepting request 1061731 from devel:languages:python
- update to 5.3.0:
  * Add ``cache_info()`` function to ``@cached`` decorator.

OBS-URL: https://build.opensuse.org/request/show/1061731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=17
2023-01-29 13:10:27 +00:00
d80fc9f017 - update to 5.3.0:
* Add ``cache_info()`` function to ``@cached`` decorator.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=33
2023-01-28 12:29:08 +00:00
98622bb8f6 Accepting request 1058183 from devel:languages:python
- update to 5.2.1:
  * Add support for Python 3.11.
  * Correct version information in RTD documentation.
  * ``badges/shields``: Change to GitHub workflow badge routes.

OBS-URL: https://build.opensuse.org/request/show/1058183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=16
2023-01-14 19:31:23 +00:00
6912c830fe - update to 5.2.1:
* Add support for Python 3.11.
  * Correct version information in RTD documentation.
  * ``badges/shields``: Change to GitHub workflow badge routes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=31
2023-01-13 09:54:58 +00:00
a8ebc2d611 Accepting request 1006298 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1006298
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=15
2022-10-01 15:41:40 +00:00
dda7072cb1 Accepting request 1006202 from home:yarunachalam:branches:devel:languages:python
- update to v5.2.0
  * Add cachetools.keys.methodkey().
  * Add cache_clear() function to decorators.
  * Add src directory to sys.path for Sphinx autodoc.
  * Modernize func wrappers.
- update to v5.1.0
  * Add cache decorator parameters as wrapper function attributes.
- update to v5.0.0
  * 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.

OBS-URL: https://build.opensuse.org/request/show/1006202
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=29
2022-09-27 05:17:26 +00:00
eb2c163260 Accepting request 925753 from devel:languages:python
- update to 4.2.4:
  - Add submodule shims for backward compatibility.
  - Add documentation and tests for using ``TTLCache`` with
    ``datetime``.
  - Link to typeshed typing stubs.
  - Flatten package file hierarchy.

OBS-URL: https://build.opensuse.org/request/show/925753
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=14
2021-10-20 18:23:32 +00:00
8e7603c0dd - update to 4.2.4:
- Add submodule shims for backward compatibility.
  - Add documentation and tests for using ``TTLCache`` with
    ``datetime``.
  - Link to typeshed typing stubs.
  - Flatten package file hierarchy.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=28
2021-10-16 21:02:54 +00:00
9ef47f96f7 Accepting request 895908 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/895908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=13
2021-06-01 08:33:26 +00:00
0612aab716 Accepting request 895889 from home:pgajdos:python
- version update to 4.2.2
  * Update build environment.
  * Remove Python 2 remnants.
  * Format code with Black.
- %check: use %pyunittest macro

OBS-URL: https://build.opensuse.org/request/show/895889
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=26
2021-05-28 07:50:17 +00:00
13288ba0f2 Accepting request 867588 from devel:languages:python
- update to 4.2.1:
  - Handle ``__missing__()`` not storing cache items.
  - Clean up ``__missing__()`` example.

OBS-URL: https://build.opensuse.org/request/show/867588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=12
2021-02-01 12:26:52 +00:00
744407094b - update to 4.2.1:
- Handle ``__missing__()`` not storing cache items.
  - Clean up ``__missing__()`` example.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=24
2021-01-28 22:51:28 +00:00
1536badf1a Accepting request 859231 from devel:languages:python
- update to 4.2.0:
  - Add FIFO cache implementation.
  - Add MRU cache implementation.
  - Improve behavior of decorators in case of race conditions.
  - Improve documentation regarding mutability of caches values and use
    of key functions with decorators.
  - Officially support Python 3.9.

OBS-URL: https://build.opensuse.org/request/show/859231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=11
2020-12-30 16:12:17 +00:00
cdbc933567 - update to 4.2.0:
- Add FIFO cache implementation.
  - Add MRU cache implementation.
  - Improve behavior of decorators in case of race conditions.
  - Improve documentation regarding mutability of caches values and use
    of key functions with decorators.
  - Officially support Python 3.9.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=22
2020-12-29 13:44:32 +00:00
a20741eae1 Accepting request 821426 from devel:languages:python
- update to 4.1.1:
  - Improve ``popitem()`` exception context handling.
  - Replace ``float('inf')`` with ``math.inf``.

OBS-URL: https://build.opensuse.org/request/show/821426
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=10
2020-07-21 13:40:01 +00:00
f67bc04249 - update to 4.1.1:
- Improve ``popitem()`` exception context handling.
  - Replace ``float('inf')`` with ``math.inf``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=20
2020-07-17 07:22:03 +00:00
3d5f13d97a Accepting request 798870 from devel:languages:python
- update to 4.1.0:
  - Support ``user_function`` with ``cachetools.func`` decorators
    (Python 3.8 compatibility).
  
  - Support ``cache_parameters()`` with ``cachetools.func`` decorators
    (Python 3.9 compatibility).

OBS-URL: https://build.opensuse.org/request/show/798870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=9
2020-05-01 09:06:40 +00:00
6d985dbbdc - update to 4.1.0:
- Support ``user_function`` with ``cachetools.func`` decorators
    (Python 3.8 compatibility).
  
  - Support ``cache_parameters()`` with ``cachetools.func`` decorators
    (Python 3.9 compatibility).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=18
2020-04-29 10:48:38 +00:00
832d188019 Accepting request 769015 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/769015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=8
2020-04-19 19:35:56 +00:00
Tomáš Chvátal
e5b68a56fd Accepting request 766776 from home:mcalabkova:branches:devel:languages:python
- update to 4.0.0
  * Require Python 3.5 or later.

OBS-URL: https://build.opensuse.org/request/show/766776
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=16
2020-01-24 09:50:29 +00:00
8485d5d993 Accepting request 730683 from devel:languages:python
- Update to 3.1.1:
  * Document how to use shared caches with @cachedmethod.
  * Fix pickling/unpickling of cache keys

OBS-URL: https://build.opensuse.org/request/show/730683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=7
2019-09-23 10:10:05 +00:00
Tomáš Chvátal
d99a533711 - Update to 3.1.1:
* Document how to use shared caches with @cachedmethod.
  * Fix pickling/unpickling of cache keys

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=14
2019-09-13 11:09:56 +00:00
Stephan Kulow
65b26ec293 Accepting request 679937 from devel:languages:python
- update to 3.1.0:
  - Fix Python 3.8 compatibility issue.
  - Use ``time.monotonic`` as default timer if available.
  - Improve documentation regarding thread safety.
  - Officially support Python 3.7.
  - Drop Python 3.3 support (breaking change).
  - Remove ``missing`` cache constructor parameter (breaking change).
  - Remove ``self`` from ``@cachedmethod`` key arguments (breaking
    change).
  - Add support for ``maxsize=None`` in ``cachetools.func`` decorators.

OBS-URL: https://build.opensuse.org/request/show/679937
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cachetools?expand=0&rev=6
2019-02-28 20:44:24 +00:00
d3923d590c - update to 3.1.0:
- Fix Python 3.8 compatibility issue.
  - Use ``time.monotonic`` as default timer if available.
  - Improve documentation regarding thread safety.
  - Officially support Python 3.7.
  - Drop Python 3.3 support (breaking change).
  - Remove ``missing`` cache constructor parameter (breaking change).
  - Remove ``self`` from ``@cachedmethod`` key arguments (breaking
    change).
  - Add support for ``maxsize=None`` in ``cachetools.func`` decorators.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=12
2019-02-27 18:18:44 +00:00