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

Normalize PyPI specs #13

Merged
merged 7 commits into from
Apr 9, 2024
Merged

Normalize PyPI specs #13

merged 7 commits into from
Apr 9, 2024

Conversation

jaimergp
Copy link
Member

@jaimergp jaimergp commented Apr 5, 2024

Both conda and PyPI packages are case-insensitive. PyPI packages additionally disregard dashes and underscores: they are considered equivalent. However, conda does distinguish those.

As a result, when a user installs a-package and a_package, pip produces the same result but conda might not. This means that if the PyPI name is not on the mappings, we need to try some variants in addition to the original name (dashes as underscores, underscores as hashes).

For the sake of simplicity, I'll assume there are no mixed dash-underscore packages on conda-forge.

@jaimergp jaimergp merged commit 612814c into main Apr 9, 2024
9 checks passed
@jaimergp jaimergp deleted the spec-normalization branch April 9, 2024 07:39
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.

1 participant