Skip to content

[feature request] use compression.zstd for zstd-compressed packages #331

@jameslamb

Description

@jameslamb

What change would you like to see?

Where it's available, compression.zstd from the Python standard library should be used.

Installations of pydistcheck in environments with Python 3.14 and later should not require the zstandard library.

How would implementing this improve pydistcheck?

Would allow users from Python 3.14 onwards to avoid a runtime dependency on the third-party zstandard library (https://pypi.org/project/zstandard/), possibly improving installation time and reducing environment size.

Notes

compression.zstd is available starting in Python 3.14: https://docs.python.org/3/library/compression.zstd.html

As a result of PEP 784:

It could be made conditional in the packaging metadata with a specifier similar to this:

"tomli>=1.1.0 ; python_version < '3.11'"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions