Uh oh!
There was an error while loading. Please reload this page.
Mock the actual setup provider defined in setup.py - #120
Conversation
2139cd6 to
b3b27e5CompareTG1999
commented
Jan 23, 2023
@bennati thanks! please provide a few tests with the files you faced this issue. |
TG1999
commented
Jan 24, 2023
@bennati you need to regenerate the test outputs, the dependencies have been updated for the tests so for fixing tests in test_cli use this command:
for fixing tests in test_resolution, please compare the changes from the expected output. |
bennati
commented
Jan 30, 2023
Is there anything left to do before we can merge this? |
pombredanne
commented
Jan 30, 2023
Thanks. Let me check! there seems to be something weird with your latest commit as make valid should not have changed |
bennati
commented
Feb 1, 2023
@pombredanne should I just refactor the last commit and remove the changes to the unrelated files? |
npatel2509
commented
Feb 6, 2023
@pombredanne Please suggest if there is anything left or a blocker to merge this MR? |
TG1999
commented
Feb 6, 2023
@bennati please remove the changes to unrelated files. |
fa3a091 to
3447f9eComparebennati
commented
Feb 7, 2023
Removed the unrelated changes |
npatel2509
commented
Feb 9, 2023
@pombredanne please suggest if any further modifications is require or if we can proceed to merge the changes? |
pombredanne
left a comment
There was a problem hiding this comment.
Thanks, LGTM overall! but I have a few nitpickings for your consideration.
Uh oh!
There was an error while loading. Please reload this page.
| "defaulting to 'distutils.core'." | ||
| ) | ||
| setup_provider = "distutils.core" | ||
| exec(f"import {setup_provider}") |
There was a problem hiding this comment.
I am not sure that we can get something that's safe to work here. In particular importing setuptools since version 66 has several possible problems... Could we do better and not need to import this? If we really need to import it, we should IMHO vendor a version of setuptools that before version 66?
There was a problem hiding this comment.
removed it and imported both libraries
a40a70a to
a4e60d9Comparebennati
commented
Feb 15, 2023
The tests keep failing despite all my attempts, help is appreciated! |
b82cdb1 to
a57af53Comparebennati
commented
Feb 22, 2023
Tests are now successful, can we merge this? |
pombredanne
commented
Feb 22, 2023
@bennati Would you mind to:
And may review your commit streams for good message and a possible squash? |
Currently `setup` is always mocked using `distutils.core` but this might cause issues with certain packages. Fix this behavior by parsing the `setup.py` file for the correct module to import. Closes: aboutcode-org#116 Signed-off-by: Bennati, Stefano <stefano.bennati@here.com>
Signed-off-by: Bennati, Stefano <stefano.bennati@here.com>
d049c1b to
cfdcedfCompareSigned-off-by: Bennati, Stefano <stefano.bennati@here.com>
Signed-off-by: Bennati, Stefano <stefano.bennati@here.com>
bennati
commented
Feb 23, 2023
Done, we can squash all commits |
bennati
commented
Mar 1, 2023
Another week has passed |
Currently.
setupis always mocked usingdistutils.corebut this might cause issues with certain packages. Fix this behavior by parsing thesetup.pyfile for the correct module to import.Closes: #116
Signed-off-by: Bennati, Stefano stefano.bennati@here.com