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 missing optional dependencies in dep_versions() #1193

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

stefanor
Copy link
Contributor

@stefanor stefanor commented Dec 3, 2024

PR #1159 made keyring optional on some (non-Desktop) architectures. However the CLI attempts to determine dependency versions in --version. Rather than blow up entirely, report the dependency as missing.

Part of: #1158

PR pypa#1159 made keyring optional on some (non-Desktop) architectures.
However the CLI attempts to determine dependency versions, in failure
codepaths. Rather than blow up entirely, report the dependency as
missing.

Part of: pypa#1158
@stefanor
Copy link
Contributor Author

stefanor commented Dec 3, 2024

@tiran: FYI

@tiran
Copy link
Contributor

tiran commented Dec 5, 2024

Thx, good catch! It never occurred to me to verify the --version path.

@sigmavirus24 sigmavirus24 merged commit 626423a into pypa:main Dec 6, 2024
26 checks passed
@sigmavirus24
Copy link
Member

Thanks @stefanor !

@stefanor stefanor deleted the keyring-optional-cli branch December 6, 2024 14:14
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.

3 participants