17
0
Commit Graph

28 Commits

Author SHA256 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
a190b813dd Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=9
2018-12-04 13:18:20 +00:00
Todd R
ba9bd0a8e3 Accepting request 517247 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version
- Update to version 2.0.1

OBS-URL: https://build.opensuse.org/request/show/517247
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=7
2017-08-16 16:34:50 +00:00
c7378c7543 - update to 2.0.0:
- Drop Python 3.2 support (breaking change).
  - Drop support for deprecated features (breaking change).
  - Move key functions to separate package (breaking change).
  - Accept non-integer ``maxsize`` in ``Cache.__repr__()``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=5
2017-06-01 21:05:53 +00:00
890a414b65 Accepting request 423883 from home:tbechtold:branches:devel:languages:python
- update to 1.1.6:
  - Reimplement ``LRUCache`` and ``TTLCache`` using
    ``collections.OrderedDict``.  Note that this will break pickle
    compatibility with previous versions.
  - Fix ``TTLCache`` not calling ``__missing__()`` of derived classes.
  - Handle ``ValueError`` in ``Cache.__missing__()`` for consistency
    with caching decorators.
  - Improve how ``TTLCache`` handles expired items.
  - Use ``Counter.most_common()`` for ``LFUCache.popitem()``.
  - Refactor ``Cache`` base class.  Note that this will break pickle
    compatibility with previous versions.
  - Clean up ``LRUCache`` and ``TTLCache`` implementations.
  - Refactor ``LRUCache`` and ``TTLCache`` implementations.  Note that
    this will break pickle compatibility with previous versions.
  - Document pending removal of deprecated features.
  - Minor documentation improvements.
  - Fix pickle tests.
  - Fix pickling of large ``LRUCache`` and ``TTLCache`` instances.
  - Improve key functions.
  - Improve documentation.
  - Improve unit test coverage.
  - Add ``@cached`` function decorator.
  - Add ``hashkey`` and ``typedkey`` fuctions.
  - Add `key` and `lock` arguments to ``@cachedmethod``.
  - Set ``__wrapped__`` attributes for Python versions < 3.2.
  - Move ``functools`` compatible decorators to ``cachetools.func``.
  - Deprecate ``@cachedmethod`` `typed` argument.
  - Deprecate `cache` attribute for ``@cachedmethod`` wrappers.
  - Deprecate `getsizeof` and `lock` arguments for `cachetools.func`
    decorator.

OBS-URL: https://build.opensuse.org/request/show/423883
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=3
2016-08-31 06:46:27 +00:00
9c16fe3662 - Initial package (1.0.3)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=1
2015-07-09 08:06:33 +00:00