[REM] pylint_odoo: Remove requirements/requirements.txt from build #499
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.
When installing a wheel the file
<installroot>/requirements/requirements.txt
is created. This appears to have been intentionally introduced to fix #440 by introducing the following lines tosetup.cfg
:pylint-odoo/setup.cfg
Lines 38 to 40 in 6e857c5
However, this is not the correct format for adding files (they should be an array of
(path, file)
tuples), resulting in a directory called "/requirements" that will contain the file, likely not what we want.It is unclear to me how source tarballs were being generated before, because requirements.txt should always be included when building with setuptools.
To Reproduce
Steps to reproduce the behavior:
This is especially a problem for downstream OS packagers who will be installing the package to the (virtual) root directory as you won't want your final OS package creating
/requirements
.Expected behavior
No files are installed outside of the normal filesystem.
As far as I can tell this configuration can be removed from setup.cfg entirely. Alternatively, using package data is likely what was actually desired here (though, again, I don't see how it would be necessary in this case, building without this config results in requirements.txt being included for me):
Fix #498
Credits to @SamWhited