Skip to content

Allow cachetools 8 - #138

Open
itzzdev09 wants to merge 1 commit into
ipinfo:masterfrom
itzzdev09:allow-cachetools-8
Open

itzzdev09 wants to merge 1 commit into
ipinfo:masterfrom
itzzdev09:allow-cachetools-8

Conversation

@itzzdev09

Copy link
Copy Markdown

pyproject.toml caps cachetools at <8. cachetools 8.0.0 came out on 6 Nov, so ipinfo can't be installed next to packages that need it.

The library only uses cachetools.TTLCache (in ipinfo/cache/default.py) through __getitem__ / __setitem__ / __contains__ / __delitem__. None of the 8.0 breaking changes touch that: they're about @cached / @cachedmethod decorators, cache_info, and dropping Python 3.10 (pip keeps 3.10 on 7.x). This raises the cap to <9. uv.lock changes only in the requires-dist specifier (uv lock --check passes).

Tests: pytest tests on Python 3.12, 49 passed / 53 skipped (no token) with both cachetools 7.3.3 and 8.0.2.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant