-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
[6.5.0] Packages needlessly uninstalled during sync due to non-canonicalized names (dots vs dashes) #1570
Comments
This is expected and explained at #1567 (comment) |
Oh to be clear, I'm not referring to the issue as titled, but this part
I may re-title this. |
The fix specifically, in - key = key.replace("_", "-").lower()
- return key
+ return str(canonicalize_name(key)) |
Thank you for the pointer. I hope that having created this issue will point users that are searching for keywords like I'm confirming that #1329 is fixing the The Many thanks! |
I'll take it out and rebase if someone merges the tiny change alone, it should have been part of the recent merge. If no one does by the time I get back to this, I'll submit a small PR myself. |
Fixes jazzband#1570 Remove assert: - assert doesn't belong in non-test code - if key's not a str, canonicalize should fail
Please see the small PR at #1572. |
Released as part of |
Confirmed fixed with v6.5.1, thank you! 🎉 |
@alexlitvinenko this is normal: What was not normal and is now fixed, was that running |
thanks @Rogdham But, I see that Please, consider this as just a warning. |
That would be a bug in Pycharm I think. |
FWIW: the Pycharm bug tracker |
Packages with dots in them are not compiled to the same file in version 6.4.0 and 6.5.0, where dots are replaced with dashes.
E.g.
zope.event
becomeszope-event
Environment Versions
Python 3.10.2
pip 20.3.4 from /usr/lib/python3.10/site-packages/pip (python 3.10)
pip-compile, version 6.5.0
Steps to replicate
On version 6.4.0
requirements.in
requirements.txt
(afterpip-compile
)On version 6.5.0
requirements.in
requirements.txt
(afterpip-compile
)Expected result
zope.event
package being listed aszope.event
in generatedrequirements.txt
pip-sync
twice in a raw will not do anything on second run (except printingEverything up-to-date
Actual result
zope.event
package has been renamed tozope-event
in generatedrequirements.txt
pip-sync
does the following even if nothing has changed (i.e. it does so in two consecutive runs)The text was updated successfully, but these errors were encountered: