-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{Service Connector} Fix #24213: az spring connection create mysql-flexible
: Resolve dependency conflict with interactive
extension
#24268
Conversation
Fix dependency conflict issue |
az spring connection create mysql-flexible
: Fix dependency conflict issueaz spring connection create mysql-flexible
: Resolve dependency conflict with interactive
extension
src/azure-cli/azure/cli/command_modules/serviceconnector/_credential_free.py
Outdated
Show resolved
Hide resolved
@@ -215,7 +215,7 @@ def create_aad_user_in_mysql(self, connection_kwargs, query_list): | |||
for d in installed_packages) | |||
if not pym_installed: | |||
import pip | |||
pip.main(['install', 'mycli']) | |||
pip.main(['install', 'pymysql']) |
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.
mycli
internally depends on PyMySQL
:
https://github.com/dbcli/mycli/blob/bc9492a2d425c4d4908c1bfc97c316739a284b9f/setup.py#L27
install_requirements = [
'click >= 7.0',
# Temporary to suppress paramiko Blowfish warning which breaks CI.
# Pinning cryptography should not be needed after paramiko 2.11.0.
'cryptography == 36.0.2',
# 'Pygments>=1.6,<=2.11.1',
'Pygments>=1.6',
'prompt_toolkit>=3.0.6,<4.0.0',
'PyMySQL >= 0.9.2',
I guess that's why mycli
can be replaced by PyMySQL
here.
I am still wondering why mycli
was chosen in lieu of PyMySQL
initially. Any functionality from mycli
is used?
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.
Mysql team use mycli in their extension, we just align with them but currently Service Connector commands don't need other function from mycli.
…ql-flexible`: Resolve dependency conflict with `interactive` extension (Azure#24268) * fix dependency issue * fix setup dependency * revert other changes
Related command
Description
Fix #24213 by replacing
mycli
withPyMySQL
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a
: Make some customer-facing breaking change[Component Name 2]
az command b
: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.