-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[App Config] Fix dependencies for multiple installations of jsondiff and javaproperties
#19792
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,3 +138,5 @@ wcwidth==0.1.7 | |
| websocket-client==0.56.0 | ||
| wrapt==1.11.2 | ||
| xmltodict==0.12.0 | ||
| jsondiff==1.2.0 | ||
| javaproperties==0.5.1 | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,3 +139,5 @@ wcwidth==0.1.7 | |
| websocket-client==0.56.0 | ||
| wrapt==1.11.2 | ||
| xmltodict==0.12.0 | ||
| jsondiff==1.2.0 | ||
| javaproperties==0.5.1 | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,3 +138,5 @@ vsts==0.1.25 | |
| wcwidth==0.1.7 | ||
| websocket-client==0.56.0 | ||
| xmltodict==0.12.0 | ||
| jsondiff==1.2.0 | ||
| javaproperties==0.5.1 | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
chardetis a requirement ofrequests2.25.1 and should be installed automatically:https://github.com/psf/requests/blob/v2.25.1/setup.py
In
requests2.26.0,chardetis not installed anymore:https://github.com/psf/requests/blob/v2.26.0/setup.py#L45
CLI does use
azure-cli/src/azure-cli-core/setup.py
Line 59 in b84170e
I tried to
pip install azure-clibut couldn't repro. It's unclear to me whychardetis not installed.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.
Also, dependencies should be added in alphabetic order.
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.
It is not a good idea to make the dependency too strict, as it may cause problem in some old Linux distributions for community packagers (#19639).
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.
chardetis a requirement ofrequestsfor python2. For python3, chardet doesn't seem to be a dependency. Is it a good practice to loose version in setup.py but keep it in requirements.py3.xxx.txt?I will send a separate pr to fix the order.
Uh oh!
There was an error while loading. Please reload this page.
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.
The link (https://github.com/psf/requests/blob/main/setup.py#L47) you provided is the latest
requestsmain branch.For
requests2.25.1,chardetis installed even on Python 3. It is fromrequests2.26.0 thatchardetis no longer installed on Python 3 (#19792 (comment)).Yes, as
setup.pyis only used bypipwhilerequirements.py3.xxx.txtis used by our packaging pipeline.requirements.py3.xxx.txtfollows the same==pattern aspip freeze.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.
Then how about we explicitly add
chardetin setup.py. Otherwise, it will be accidentally dropped if we upgraderequeststo 2.26.0.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.
Agreed. This is already merged in this PR, right? 😉
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.
Right, I mean we keep it in setup.py. BTW, here is the pull request to fix dependency order in requriements.py3.xxx.txt.