Skip to content

tarfile filter='data' requires Python >= 3.10.12 #4

Description

@lcarva

Description

In verify.py:48, extract_sdist uses tar.extractall(dest, filter="data"). The filter parameter for tarfile.extractall was backported to Python 3.10.12+ and 3.11.4+ (originally added in 3.12 via PEP 706).

The project declares requires-python = ">=3.10" in pyproject.toml, but extract_sdist will crash with TypeError on Python 3.10.0 through 3.10.11.

Impact

Most users on 3.10 will have a recent patch version, but the stated compatibility is not fully accurate.

Suggested fix

Either:

  • Bump the minimum to >=3.10.12 in pyproject.toml
  • Add a runtime check / fallback for older patch versions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions