Skip to content

Commit

Permalink
Remove support for .tar.bz2 sdists
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dnicolodi committed Dec 12, 2024
1 parent 28e60bb commit 75be078
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion twine/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

DIST_EXTENSIONS = {
".whl": "bdist_wheel",
".tar.bz2": "sdist",
".tar.gz": "sdist",
".zip": "sdist",
}
Expand Down

0 comments on commit 75be078

Please sign in to comment.