| |
comp.lang.python |
> $ setup.py sdist bdist_wininst upload > Anyone know what I'm doing wrong? (I've always been able to upload Error processing form invalid distribution file Looks like this originates from: https://svn.python.org/packages/trunk/pypi/webui.py down near the bottom in the file_upload() method. I can't figure out https://svn.python.org/packages/trunk/pypi/verify_filetype.py says: if filename.endswith('.exe'): try: for zipname in l: That seems a little weird to me. Are the bdist_wininst exe files really STeVe
> I just tried to upload new versions of the argparse module to PyPI, but
> it seems like I can no longer upload Windows installers:
> ...
> running upload
> Submitting dist\argparse-0.8.0.zip to http://www.python.org/pypi
> Server response (200): OK
> Submitting dist\argparse-0.8.0.win32.exe to http://www.python.org/pypi
> Upload failed (400): Bad Request
> bdist_wininst packages to PyPI in the past.)
slightly more informative message if I do the upload manually with the
PyPI form. It then says:
which "invalid distribution file" error is being triggered, but in
looking around, I saw that is_distutils_file() in:
# check for valid exe
if filetype != 'bdist_wininst':
return False
t = StringIO.StringIO(content)
t.filename = filename
z = zipfile.ZipFile(t)
l = z.namelist()
except zipfile.error:
return False
if not safe_zipnames.match(zipname):
return False
zip files? Or did I just misunderstand what "content" is?