-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename macOS backend to reflect the modern name inclusive of macOS 11.
- Loading branch information
Showing
7 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
keyring/backends/OS_X.py → keyring/backends/macOS/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4aed205
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
These changes break backwards compatibility. IMHO, it would be better to keep the older names for a while and raise a DeprecationWarning.
Personally, I am suffering troubles with
pip list -o
command similar to those explained by @gothicVI in #486In any case, thank you for your work. One of my favourite libraries.
4aed205
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this even impact non-Apple installations in the first place?
4aed205
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I supposed because all backends are imported whatever OS is running:
keyring/keyring/core.py
Line 10 in 5ff3661
4aed205
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged. The reported failure was unexpected. The only expected breakage was for macOS users that are explicitly specifying the macOS backend by name (expected to be a negligible if present user base).
Keyring enumerates every backend through the plugin discovery mechanism, which relies on the metadata in each package including the metadata in keyring.
4aed205
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my case, I solved the issue by installing and re-installing keyring (see #486 (comment)). There are several copies of keyring metadata in my system, corresponding to successive version of the library. So I think that the cause is the way I use pip (in combination with macports). No bug in keyring at all.
Thank you for your time and sorry for the inconvenience.