[PR #869] [MERGED] Make redis dependency optional #1047

Closed
opened 2026-02-28 00:03:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/869
Author: @ahesford
Created: 10/12/2022
Status: Merged
Merged: 12/26/2022
Merged by: @stephanebruckert

Base: v3Head: redis


📝 Commits (5)

  • 643d5c2 Cherry-pick redis support from master branch
  • b28f3bf Make redis dependency optional
  • 42499e1 Merge branch 'v3' into redis
  • 4637d94 Remove redis import
  • 24d83e9 Ignore imported but unused

📊 Changes

4 files changed (+31 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 README.md (+6 -0)
📝 setup.py (+7 -1)
📝 spotipy/cache_handler.py (+14 -2)

📄 Description

The redis package is only used when somebody uses the redis cache handler, so the imports can be restructured to make redis an optional dependency.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/869 **Author:** [@ahesford](https://github.com/ahesford) **Created:** 10/12/2022 **Status:** ✅ Merged **Merged:** 12/26/2022 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `v3` ← **Head:** `redis` --- ### 📝 Commits (5) - [`643d5c2`](https://github.com/spotipy-dev/spotipy/commit/643d5c2cc092935ee0db8819501079b4909231ab) Cherry-pick redis support from master branch - [`b28f3bf`](https://github.com/spotipy-dev/spotipy/commit/b28f3bf2724d5ac916e44ac2437eb600f1ade698) Make redis dependency optional - [`42499e1`](https://github.com/spotipy-dev/spotipy/commit/42499e13d9e8d22adb2af7eab43e02e1ca0dae68) Merge branch 'v3' into redis - [`4637d94`](https://github.com/spotipy-dev/spotipy/commit/4637d94fcf7c614fa866564de3c83a8949ce5d7d) Remove redis import - [`24d83e9`](https://github.com/spotipy-dev/spotipy/commit/24d83e9c84bc6ee24f8fa162aac5e26b4252ad72) Ignore `imported but unused` ### 📊 Changes **4 files changed** (+31 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `README.md` (+6 -0) 📝 `setup.py` (+7 -1) 📝 `spotipy/cache_handler.py` (+14 -2) </details> ### 📄 Description The redis package is only used when somebody uses the redis cache handler, so the imports can be restructured to make redis an optional dependency. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#1047
No description provided.