Skip to content

Dependency was renamed, how should I allow both names #5381

Answered by abn
Neyri asked this question in Q&A
Discussion options

You must be logged in to vote

I do not think python packaging metadata today allows for this behavior, ie. "install one of". You can potentially achieve this behaviour by adding both fuzzywuzzy and thfuzz as optional dependencies associated with separate extras. However, this is only really useful if both packages are going to be maintained going forward and your users get to decide what package they want to use.

However, the better approach might be update your project's dependency to the new package. So any existing installations will use the old package, but will not upgrade the dependency beyond 0.18. And any consumers of your package's new version will simply use the package.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Neyri
Comment options

Answer selected by Neyri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5380 on March 29, 2022 16:55.