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

{Packaging} Add missing dependencies for azure-cli-core #20740

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

jiasli
Copy link
Member

@jiasli jiasli commented Dec 15, 2021

Description

Fix #20732

msrestazure

msrestazure is indeed needed by azure-cli-core to authenticate with managed identity:

from msrestazure.azure_active_directory import MSIAuthentication

It works now without declaring msrestazure dependency because msrestazure is installed by Track 1 SDKs.

packaging

packaging is needed by extension operations:

from packaging.version import parse

It works now without declaring packaging dependency because packaging is installed by azure-cli:

'packaging>=20.9,<22.0',

@jiasli jiasli changed the title {Packaging} Add msrestazure dependency {Packaging} Add msrestazure dependency for azure-cli-core Dec 15, 2021
@jiasli jiasli self-assigned this Dec 15, 2021
@jiasli jiasli changed the title {Packaging} Add msrestazure dependency for azure-cli-core {Packaging} Add missing dependency for azure-cli-core Dec 17, 2021
@jiasli jiasli changed the title {Packaging} Add missing dependency for azure-cli-core {Packaging} Add missing dependencies for azure-cli-core Dec 17, 2021
@jiasli jiasli merged commit ce3a1f1 into Azure:dev Dec 17, 2021
@jiasli jiasli deleted the msrestazure branch December 17, 2021 06:23
@@ -53,6 +53,8 @@
'knack~=0.9.0',
'msal-extensions>=0.3.1,<0.4',
'msal>=1.16.0,<2.0.0',
'msrestazure~=0.6.4',
'packaging>=20.9,<22.0',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version bound is copied from #20661. We set the upper bound simply because we don't want unexpected breaking change, which is a value point today.

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.

Missing dependency of msrestazure from azure-cli-core
4 participants