Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle normalization of pypi names in renaming #134

Open
analog-cbarber opened this issue Feb 9, 2024 · 0 comments
Open

Handle normalization of pypi names in renaming #134

analog-cbarber opened this issue Feb 9, 2024 · 0 comments
Assignees
Labels
component: convert enhancement New feature or request

Comments

@analog-cbarber
Copy link
Collaborator

Pypi package names allow use of the characters ., _, and - but consider them to be equivalent. This is not true in conda (although in practice we don't expect to see package names that differ only in these characters in conda either).

The rename support code currently just considers the exact input name. Instead we should normalize the original
dependency name to canonicalize . and _ as -. This appears to be the standard used by a number of tools
and all of the existing stdrename entries have input names with dash.

We should also make sure to use case-insensitive lookup as well.

@analog-cbarber analog-cbarber self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: convert enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant