Fix setuptools deprecation warnings #1317
Merged
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.
Fix setuptools deprecation warnings related to importable files considered as data files. Such a warning can be seen at https://github.com/AcademySoftwareFoundation/OpenTimelineIO/runs/6563968215?check_suite_focus=true#step:8:414.
To fix this, I had to unset
include_package_data
which is not necessary to be set in our case.Changes:
opentimelineio_contrib/adapters/tests
andopentimelineio_contrib/application_plugins
are no more included in thw built wheels.How to test:
SOURCE_DATE_EPOCH=315532800 python -m build -w .
and then renamedist/OpenTimelineIO-0.15.0.dev1-cp310-cp310-linux_x86_64.whl
todist/OpenTimelineIO-0.15.0.dev1-cp310-cp310-linux_x86_64.whl_before
.rm -rf build/ OpenTimelineIO.egg-info/
(Important!)SOURCE_DATE_EPOCH=315532800 python -m build -w .
.diff <(unzip -l dist/OpenTimelineIO-0.15.0.dev1-cp310-cp310-linux_x86_64.whl_before) <(unzip -l dist/OpenTimelineIO-0.15.0.dev1-cp310-cp310-linux_x86_64.whl)
The same can be done for the sdist:
SOURCE_DATE_EPOCH=315532800 python -m build -s .
and renamedist/OpenTimelineIO-0.15.0.dev1.tar.gz
todist/OpenTimelineIO-0.15.0.dev1.tar.gz_before
rm -rf build/ OpenTimelineIO.egg-info/
(Important!)SOURCE_DATE_EPOCH=315532800 python -m build -s .
diff <(tar tf dist/OpenTimelineIO-0.15.0.dev1.tar.gz_before) <(tar tf dist/OpenTimelineIO-0.15.0.dev1.tar.gz)
Show sdist diff