py-jaraco.context: add missing dependency to py-backports.tarfile for python < 3.12 #28542
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.
Description
py-jaraco.context
needspy-backports.tarfile
for Python < 3.12 (see https://github.com/jaraco/jaraco.context/blob/main/pyproject.toml), otherwise it fails with a message like:File /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jaraco/context/__init__.py, line 19, in <module>
from backports import tarfile
ModuleNotFoundError: No module named 'backports'
This PR adds a port for
py-backports.tarfile
and explicits the dependency ofpy-jaraco.context
to it.Type(s)
Tested on
macOS 11.7.10 20G1427 x86_64
Xcode 12.4 12D4e
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?