-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Distribution lookup is case-sensitive #20
Comments
In GitLab by @warsaw on Nov 2, 2018, 24:32 Do you know if it's possible to upload different packages to PyPI which differ only in their case? I sure hope the answer is "no". |
In GitLab by @jaraco on Nov 2, 2018, 24:51 Definitely no. The names are normalized by the packaging tools. |
In GitLab by @jaraco on Nov 2, 2018, 01:00 I was about to write a test to capture this issue when I realized the tests aren't running with pytest, so I don't get fixtures... so creating a test against which to validate is not fun when the tools I would use to do that are not present. As time permits, I'll learn what facilities unittest provides. I also wonder - should importlib_resources support all package name normalization (e.g. |
In GitLab by @jaraco on Nov 2, 2018, 01:02
On further consideration, probably not... because the names being used are not normalized at all... so the user can be expected to provide the canonical name, and we'll add case insensitivity for convenience. |
In GitLab by @warsaw on Nov 2, 2018, 01:10 I concur that we should keep package name normalization to a minimum. IME, it can cause many problems, especially when competing systems are normalizing or not with subtly different rules. I think case insensitivity makes sense, but I'd like to see the implementation. Given that the name on the file system could differ by case, you'll have to be somewhat careful in how you match the file system names. Maybe it won't be too difficult though. We'll need a really good set of tests to cover the conditions. As for |
In GitLab by @jaraco on Nov 10, 2018, 16:22 mentioned in commit a017b2d8d2f8f8499cbe5b78847767fb12039a26 |
In GitLab by @jaraco on Nov 10, 2018, 16:26 mentioned in merge request !27 |
In GitLab by @jaraco on Nov 10, 2018, 16:28 mentioned in commit cf550b3cd6f4c79854d2ff7e5a0329e896d4cccf |
In GitLab by @jaraco on Nov 10, 2018, 19:33 mentioned in commit 4f67ef8c7c6a7e768df4c95f142e0972721f405d |
In GitLab by @jaraco on Nov 10, 2018, 19:33 mentioned in commit ef0dc89d00d0be4e598a8d9dad6b6c7f459a7d2d |
In GitLab by @jaraco on Nov 10, 2018, 23:52 mentioned in commit e2f057605be3b45cfc150e55da660bc25d478b07 |
In GitLab by @jaraco on Nov 10, 2018, 23:52 mentioned in commit 0470c56033e51d59397dc27e123c70f55a5bfcdc |
In GitLab by @jaraco on Nov 1, 2018, 20:12
Probably the search should be case-insensitive.
The text was updated successfully, but these errors were encountered: