diazona/setuptools-pyproject-migration

TypeError: extractall() got an unexpected keyword argument 'filter'

diazona opened this issue · 0 comments

This error showed up in testing for release 0.2 on Python 3.7.

    @cached_property
    def project(self) -> Project:
        sdist: Optional[pathlib.Path] = self._sdist
        if not sdist:
            raise RuntimeError(f"sdist not available for {self._distribution.package_spec}")
        self._project_path.mkdir(exist_ok=True)
        _logger.debug("Extracting to %s", self._project_path)
        with tarfile.open(sdist) as tf:
>           tf.extractall(path=self._project_path, filter="data")
E           TypeError: extractall() got an unexpected keyword argument 'filter'

test_support/test_support/distribution.py:354: TypeError