-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[sonic-yang-mgmt] Build PY3 & PY2 packages #5559
Conversation
0021196
to
1aa11fe
Compare
@praveen-li: There are build failures. Can you check? Also, it appears you are no longer building a Python 2 version of the package. Will the Python 2 version of sonic-utilities continue to work until I finish converting it to Python 3? |
fcfd155
to
6957632
Compare
retest vs please |
6c851b9
to
a1b03dc
Compare
I think, to support test run in sonic-slave docker, we need these PKGs there. Because below errors are seen, even when tests_require is added.
|
From the build output, I don't see any attempt from setuptools to install the package. Also, it shows that zero tests were run. Is this expected? If not, it seems like there may be other issues with your setup.py file. |
[PC]: Zero tests are expected due to import error. But let me check because I noticed an attempt to install PKGs in earlier builds. |
From my build, I see an attempt to install the PKGs, I feel it is done because of install_require part.
|
@praveen-li: Your build output is different from the check build logs here. I'm not sure why. I don't understand what's going on here, but it appears the dependencies aren't getting installed properly. I haven't encountered this issue with other packages. |
Your setup.py file seems to be a bit more complex than others in the SONiC codebase (like sonic-utilities). Maybe the issue has something to do with the additional functions you define, like |
b831ea9
to
46f1e6b
Compare
This pull request introduces 2 alerts and fixes 1 when merging 46f1e6b809ba9a672b805607f3b6b2ee2fa10865 into 67408c8 - view on LGTM.com new alerts:
fixed alerts:
|
46f1e6b
to
a4f359d
Compare
This pull request introduces 2 alerts and fixes 1 when merging a4f359d0aeda52f5a7dc1b01833da2f7695741e4 into 9e34003 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 1 alert when merging f43400274e07b3596fda178c7e073018d2ab3a49 into 9e34003 - view on LGTM.com fixed alerts:
|
779f7ff
to
30d76ec
Compare
This pull request fixes 1 alert when merging 30d76ec1550d8fc5c43abaef1fed1e6bcb6e3f6d into dfe0055 - view on LGTM.com fixed alerts:
|
retest mellanox please |
This pull request fixes 1 alert when merging b54e9dc8a2beccb7b5064dd93dab58b7e64cd716 into 09d5a62 - view on LGTM.com fixed alerts:
|
Retest broadcom please |
Retest mellanox please |
Retest vsimage please |
retest vsimage please |
retest vsimage please |
Signed-off-by: Praveen Chaudhary<[email protected]>
Signed-off-by: Praveen Chaudhary<[email protected]>
…ing. Signed-off-by: Praveen Chaudhary<[email protected]>
Signed-off-by: Praveen Chaudhary<[email protected]>
…-mgmt, and fix VS build. Signed-off-by: Praveen Chaudhary<[email protected]>
…ng on local setup. Signed-off-by: Praveen Chaudhary<[email protected]>
Signed-off-by: Praveen Chaudhary<[email protected]>
…n sonic-slave. Install Pyang 2.1.1 using pip2 in sonic-slave, because we use it as pyang command, and pip2 2.1.1 is stable with sonic yang models Signed-off-by: Praveen Chaudhary<[email protected]>
Signed-off-by: Praveen Chaudhary<[email protected]>
… resolved conflicts. Signed-off-by: Praveen Chaudhary<[email protected]>
9597460
to
9207b2f
Compare
This pull request fixes 1 alert when merging 9207b2f into 13ff7b3 - view on LGTM.com fixed alerts:
|
retest broadcom please |
@jleveque, can you check this pr? everything passed. |
@jleveque let me know if anything pending on me, thanks. |
Moving sonic-yang-mgmt to PY3 to support move of sonic-utilities to PY3. Signed-off-by: Praveen Chaudhary<[email protected]>
Hi Qi, This file is auto-generated by test. We made it part of test, because it also verified that all syntax and hierarchy in yang models are correct. |
Offline discussed. We could ondemand get the content by
It is not a critical content in the package, so we can safely remove it. In reply to: 947591498 Refers to: src/sonic-yang-models/setup.py:57 in 9207b2f. [](commit_id = 9207b2f, deletion_comment = False) |
Changes:
-- change dep and mk files in rules for PY2.
-- add dep and mk files in rules for PY3.
Signed-off-by: Praveen Chaudhary[email protected]
- Why I did it
Moving sonic-yang-mgmt to PY3 to support move of sonic-utilities to PY3.
- How I did it
- How to verify it
Build time Test and VS tests must pass with new PKG.
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)