Skip to content

Add support for cachetools 7.x#13839

Merged
lukasmasuch merged 1 commit intodevelopfrom
lukasmasuch/cachetools-7-support
Feb 5, 2026
Merged

Add support for cachetools 7.x#13839
lukasmasuch merged 1 commit intodevelopfrom
lukasmasuch/cachetools-7-support

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

Describe your changes

Update the cachetools dependency upper bound from <7 to <8 to support cachetools 7.x. Streamlit only uses TTLCache directly from cachetools, which is not affected by the breaking changes to @cached and @cachedmethod decorators introduced in cachetools 7.0.0.

GitHub Issue Link

Closes #13801

Testing Plan

All existing caching-related tests (378 tests) passed, validating that the TTLCache usage is compatible with the new version constraint. No additional tests are needed.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Update the cachetools dependency upper bound from <7 to <8 to support
cachetools 7.0.0. Streamlit only uses TTLCache directly, which is not
affected by breaking changes to @cached and @cachedmethod decorators
in cachetools 7.
@lukasmasuch lukasmasuch requested a review from a team as a code owner February 5, 2026 14:04
Copilot AI review requested due to automatic review settings February 5, 2026 14:04
@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Feb 5, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-13839/streamlit-1.53.1-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-13839.streamlit.app (☁️ Deploy here if not accessible)

@lukasmasuch lukasmasuch changed the title Support cachetools 7.x (#13801) Add support for cachetools 7.x Feb 5, 2026
@lukasmasuch lukasmasuch added change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users security-assessment-completed labels Feb 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the cachetools dependency constraint from <7 to <8 to support cachetools 7.x versions. The breaking changes in cachetools 7.0.0 only affected the @cached and @cachedmethod decorators, which Streamlit does not use. Streamlit exclusively uses the TTLCache class, which remains backward compatible.

Changes:

  • Updated cachetools upper bound from <7 to <8 in lib/pyproject.toml

@lukasmasuch lukasmasuch merged commit 6f0053d into develop Feb 5, 2026
79 of 82 checks passed
@lukasmasuch lukasmasuch deleted the lukasmasuch/cachetools-7-support branch February 5, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support cachetools 7.x

3 participants