-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Monitor} Move antlr4-python3-runtime to src/azure-cli/setup.py #12917
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
Conversation
src/azure-cli/setup.py
Outdated
| packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), | ||
| install_requires=DEPENDENCIES, | ||
| extras_require={ | ||
| ":python_version<'3.0'": ['antlr4-python2-runtime'] |
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.
We have dropped Python 2. We can safely remove this dependency. #11363
| ] | ||
|
|
||
| DEPENDENCIES = [ | ||
| 'antlr4-python3-runtime~=4.7.2', |
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'm not sure. Is it the correct way to fix this issue? @fengzhou-msft Since python2 and python3 share the same namespace.
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.
We do not support python 2 now, this is fine.
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.
Do you have any code that may have different handlings for py2 and py3 with this antlr4 dependency? You may also clean that code if yes.
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.
no. They share same signature to us.
src/azure-cli/setup.py
Outdated
| packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), | ||
| install_requires=DEPENDENCIES, | ||
| extras_require={ | ||
| ":python_version<'3.0'": ['antlr4-python2-runtime'] |
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.
maybe something like ":python_version<'3.0'": ['antlr4-python2-runtime'==4.7.2]?
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.
Just delete this line.
|
add to S168 |
antlr4 is used in monitor. We use 4.7.2 antlr4 tool to generate some codes in monitor. We still need a antlr4 runtime. But we didn't define it as a requirement in azure-cli before. In azure-cli-core, the version is not locked and the new version is 4.8.0. It would cause warning if two versions are not same.
Fix #12892
Description of PR (Mandatory)
(Why this PR? What is changed? What is the effect? etc. A high-quality description can accelerate the review process)
Testing Guide
(Example commands with explanations)
History Notes:
(Fill in the following template if multiple notes are needed, otherwise PR title will be used for history note.)
[Component Name 1] (BREAKING CHANGE:) (az command:) make some customer-facing change.
[Component Name 2] (BREAKING CHANGE:) (az command:) make some customer-facing change.
This 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.