-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[sonic-utilities] Update submodule; Build and install as a Python 3 wheel #5926
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
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9d74e67
[sonic-utilities] Install Python 3 package
64ad57b
[sonic-utilities] Update submodule
302255d
Update submodule further
baf95b8
Add 'pyang' to install dependencies of sonic-yang-mgmt package
170f683
Install pyang in Buster slave container
37028c3
Install Python 3 libyang package in VS container
40a115b
Install Python 3 sonic-config-engine package in host OS
093e1b9
Revert "Add 'pyang' to install dependencies of sonic-yang-mgmt package"
8f9ab66
[sonic-confic-engine] Use integer division in config_samples.py
25e5e55
[x86_64-kvm_x86_64-r0] Use Python 3-compliant print function in eepro…
53877c1
Update utilities further
b757b0c
Update swsssdk submodule
e70daa2
Explicitly install Python 3 pyangbind and uninstall enum 34 in host a…
3c47a6a
Update utils further
576d9b8
Update utils further
c95f65d
Make all eeprom plugins Python 3-compliant to work with Python 3 deco…
11887ec
Update utils further
59ffeda
Make all other platform plugins compliant with both Python 2 and 3
695a509
Update shebangs to Python 3, remove unnecessary ones
2e4475e
Replace tabs with spaces in Python plugins; fix alignment using autopep8
981c5af
Format remaining Python files wil autopep8 for consistency
9529029
Fix comment placement
c313fa6
Fix alignment
3fab9f4
Pass 'universal_newlines=True' arg to all relevant subprocess functions
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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
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
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
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
Oops, something went wrong.
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.
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.
is this a must? I am wondering if the vendor's plugin will have other python3 incompatible issues, it seems you only find one of it.
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 a must to make decode-syseeprom work, now that it is Python 3. Technically, with the addition of syseepromd, we should be able to replace decode-syseeprom with simple reads from the DB. But until then, we should maintain backward compatibility with the existing CLI utility while it is still being used.
I found and fixed a few common Python 3 issues with the eeprom.py plugin. It's possible there are Python 3 compatibility issues with other plugins, but these plugins are deprecated in favor of the new platform API. I do not intend to maintain support for the old platform plugins.
Rather than changing these plugins, we could remove decode-syseeprom altogether, but I felt that was a more disruptive change which is best suited for a separate PR.