-
Notifications
You must be signed in to change notification settings - Fork 650
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
Support building sonic-utilities as a Python wheel package instead of a Debian package #1122
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1f4ff4e
Update dependencies in setup.py
jleveque b100317
Create sonic-utilities-data Debian package
jleveque d5a4a79
Reorganize
jleveque ee373bf
Update .gitignore
jleveque 152d5c6
Update paths to reflect new utilities install location, /usr/local/bin/
jleveque 4565663
Add build and clean instructions to README.md
jleveque 2799097
Update documentation
jleveque b4a7449
Add dist/ to .gitignore
jleveque 5a4d91e
More specific ignore patterns
jleveque 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 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 |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# Compiled Python files | ||
*.pyc | ||
scripts/aclshowc | ||
scripts/neighbor_advertiserc | ||
scripts/port2aliasc | ||
|
||
# Generated by packaging | ||
*.egg-info/ | ||
.eggs/ | ||
build/ | ||
deb_dist/ | ||
dist/ | ||
*.egg-info/ | ||
*.pyc | ||
.cache | ||
*.tar.gz | ||
|
||
# Unit test coverage | ||
.coverage | ||
coverage.xml | ||
htmlcov/ | ||
|
||
# Ignores for sonic-utilities-data | ||
sonic-utilities-data/debian/* | ||
!sonic-utilities-data/debian/changelog | ||
!sonic-utilities-data/debian/compat | ||
!sonic-utilities-data/debian/control | ||
!sonic-utilities-data/debian/copyright | ||
!sonic-utilities-data/debian/install | ||
!sonic-utilities-data/debian/rules | ||
sonic-utilities-data_*.deb | ||
sonic-utilities-data_*.buildinfo | ||
sonic-utilities-data_*.changes |
This file contains 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Copyright (C) 2020 Microsoft | ||
|
||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file describes the maintainers for sonic-device-data | ||
# See the SONiC project governance document for more information | ||
|
||
Name = "Joe LeVeque" | ||
Email = "jolevequ@microsoft.com" | ||
Github = jleveque | ||
Mailinglist = sonicproject@googlegroups.com |
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# sonic-utilities-data | ||
Data files required for SONiC command line utilities | ||
|
||
|
||
## To build | ||
|
||
``` | ||
dpkg-buildpackage -rfakeroot -b -us -uc | ||
``` | ||
|
||
## To clean | ||
|
||
``` | ||
dpkg-buildpackage -rfakeroot -Tclean | ||
``` | ||
|
||
--- | ||
|
||
See the [SONiC Website](http://azure.github.io/SONiC/) for more information about the SONiC project. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sonic-utilities-data (1.0-1) UNRELEASED; urgency=low | ||
|
||
* Initial release | ||
|
||
-- Joe LeVeque <jolevequ@microsoft.com> Thu, 17 Sep 2020 01:48:49 +0000 |
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Source: sonic-utilities-data | ||
Maintainer: Joe LeVeque <jolevequ@microsoft.com> | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 0.1 | ||
Build-Depends: debhelper (>=9) | ||
|
||
Package: sonic-utilities-data | ||
Architecture: all | ||
Depends: ${misc:Depends} bash-completion | ||
Description: Data files required for SONiC command line utilities |
Empty file.
This file contains 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bash_completion.d/ /etc/ | ||
templates/*.j2 /usr/share/sonic/templates/ |
This file contains 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/make -f | ||
|
||
build: | ||
|
||
%: | ||
dh $@ |
File renamed without changes.
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 it doable not to change the path?
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.
Unfortunately, no. Wheels install to
/usr/local/bin
, whereas .debs install to/usr/bin
. There's no way to change this behavior.