Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for .tar.bz2 sdists #1200

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

dnicolodi
Copy link
Contributor

PEP 527 deprecated .tar.bz2 sdists in September 2016 and PyPI removed support in April 2020 pypi/warehouse#7529.

There is little evidence of other package indexes supporting this file format for sdists and there is no known modern Python package build tool that generates source distributions as .tat.bz2 archives.

Moving to 'packaging' for parsing metadata as the code for extracting the metadata from distribution archives will need to be implemented in twine. This change allows to have to implement only one archive format for sdists.

Note that PyPI still supports sdists in .zip format but twine does not.

Fixes #1196.

PEP 527 deprecated .tar.bz2 sdists in September 2016 and PyPI removed
support in April 2020 pypi/warehouse#7529.

There is little evidence of other package indexes supporting this file
format for sdists and there is no known modern Python package build
tool that generates source distributions as .tat.bz2 archives.

Moving to 'packaging' for parsing metadata as the code for extracting
the metadata from distribution archives will need to be implemented in
twine. This change allows to have to implement only one archive format
for sdists.

Note that PyPI still supports sdists in .zip format but twine does not.

Fixes pypa#1196.
@sigmavirus24
Copy link
Member

Note that PyPI still supports sdists in .zip format but twine does not.

Why doesn't twine support them?

@sigmavirus24 sigmavirus24 merged commit 1703ae7 into pypa:main Dec 12, 2024
26 checks passed
@dnicolodi
Copy link
Contributor Author

Note that PyPI still supports sdists in .zip format but twine does not.

Why doesn't twine support them?

Scratch that. I was looking at the wrong branch. They are supported in main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should support for sdists in tar.bz2 format be kept?
2 participants