Skip to content

Commit 75be078

Browse files
committed
Remove support for .tar.bz2 sdists
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.
1 parent 28e60bb commit 75be078

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

twine/package.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353
DIST_EXTENSIONS = {
5454
".whl": "bdist_wheel",
55-
".tar.bz2": "sdist",
5655
".tar.gz": "sdist",
5756
".zip": "sdist",
5857
}

0 commit comments

Comments
 (0)