[Distutils] PyPI upload: zip okay, tar fails with "invalid distribution file"
Ethan Furman
ethan at stoneleaf.us
Mon Jul 1 21:12:51 CEST 2013
On 07/01/2013 12:11 PM, Paul Moore wrote:
> On 1 July 2013 19:19, Ethan Furman <ethan at stoneleaf.us <mailto:ethan at stoneleaf.us>> wrote:
>
> ethan at media:~/source/enum$ python setup.py sdist --formats tar upload
> running sdist
> running check
> reading manifest template 'MANIFEST.in'
> writing manifest file 'MANIFEST'
> creating enum34-0.9.1
> creating enum34-0.9.1/enum
> creating enum34-0.9.1/enum/doc
> creating enum34-0.9.1/enum/test
> making hard links in enum34-0.9.1...
> hard linking LICENSE -> enum34-0.9.1
> hard linking README -> enum34-0.9.1
> hard linking setup.py -> enum34-0.9.1
> hard linking enum/__init__.py -> enum34-0.9.1/enum
> hard linking enum/doc/enum.pdf -> enum34-0.9.1/enum/doc
> hard linking enum/doc/enum.rst -> enum34-0.9.1/enum/doc
> hard linking enum/test/test_enum.py -> enum34-0.9.1/enum/test
> Creating tar archive
> removing 'enum34-0.9.1' (and everything under it)
> running upload
> Submitting dist/enum34-0.9.1.tar to http://pypi.python.org/pypi
> Upload failed (400): invalid distribution file
> ==============================__==============================__============
>
> Any ideas?
>
>
> You probably want format gztar rather than tar. I don't think I've ever seen an uncompressed tar on PyPI - they probably
> aren't allowed...
I could've sworn I've used tar before, but at any rate going with gztar did the trick.
Thanks!
--
~Ethan~
More information about the Distutils-SIG
mailing list