Skip to content

Remove unused dependencies#43904

Merged
Cyrilvallez merged 5 commits intohuggingface:mainfrom
cyyever:unused_deps
Feb 17, 2026
Merged

Remove unused dependencies#43904
Cyrilvallez merged 5 commits intohuggingface:mainfrom
cyyever:unused_deps

Conversation

@cyyever
Copy link
Contributor

@cyyever cyyever commented Feb 11, 2026

What does this PR do?

removes two unused dependencies.

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@Rocketknight1
Copy link
Member

Are you sure about the importlib_metadata dependency? I thought that was still in use - when did we stop?

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@cyyever
Copy link
Contributor Author

cyyever commented Feb 11, 2026

Are you sure about the importlib_metadata dependency? I thought that was still in use - when did we stop?

Sure, not used. At least they are not direct dependencies.

@Rocketknight1
Copy link
Member

Seems okay in that case, cc core maintainers @ArthurZucker @Cyrilvallez @vasqu since we're touching core dependencies!

Copy link
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

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

It's alright for me to remove importlib_metadata as it's indeed superseded by built-in for all Python versions we support, and diffusers should not really be a dep. But why did you change the versions of other packages?

setup.py Outdated
Comment on lines +150 to +151
"tqdm>=4.60",
"typer-slim>=0.9.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why are we changing versions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code base uses features starting from minimum versions of these dependencies.

Copy link
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@Cyrilvallez Cyrilvallez merged commit cfef7f1 into huggingface:main Feb 17, 2026
21 of 23 checks passed
@cyyever cyyever deleted the unused_deps branch February 18, 2026 01:04
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.

3 participants