1
0

21 Commits

Author SHA256 Message Date
f667390054 - 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
693c64c6b5 - 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
45b7662f47 - 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
37de317107 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
5ecf1b3759 - 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
d8958c3fe4 - 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
074b62c2e1 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
9681da1e12 - 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
a067fddafc 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
9d994e9224 - 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
aa1d0f3d46 - 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
a135b8b15b - 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
0ea8128860 - 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
5af7e76f60 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
13f667fb1c - 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
a5cb3c231f - 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
833868fdad 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
5f37acdf8c 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
39c805c6d8 - 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
957f27432e 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
88693e0471 - 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