Re: problem uploading ZIP file tp PyPI
On Mon, 23 May 2005 15:04:27 +1000, richard [EMAIL PROTECTED] wrote: John Machin wrote: FYI, there are a few unreconstructed diehards out here who neither run on a *x platform nor run bleeding-edge Python straight out of last night's CVS. I think you need to pull your head in, mate. The bug you discovered in PyPI is plain and simple a bug in its attempts to discover whether an uploaded ZIP file was generated by distutils. It's a bug. It will get fixed. Get over your damn platform paranoia. That remark was in response to Tony's seemingly *x-centric suggestion to use setup.py --format=gztar which would have presented some difficulties to a Windows-only person. Perhaps I should have festooned it with smileys. In any case it was nothing to do with the bug and nothing to do with you. I think you need to suck *your* scone in, cobber :-) Cheers, John -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
John Machin wrote: I presume you mean a bug report. Done. Thankyou. I wrote: He wrote: I wrote: The code is being too paranoid Which code (distutils or PyPI server) is being paranoid about what??? The PyPI server code, which attempts to make sure people aren't uploading pr0n. So zip implies pr0n but exe doesn't ??? Not sure what your point is here. Are you implying that PyPI is doing something wrong W.R.T. exe files? If you are, what are you basing that statement on? And what would you do differently? Richard -- http://mail.python.org/mailman/listinfo/python-list
RE: problem uploading ZIP file tp PyPI
Tony Meyer wrote: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Result: (A) produces a zip file with only minor differences (presumably a timestamp): Oh, so even without --format, a ZIP source dist file is produced anyway? If this is the case, please file a bug against PyPI. How is this a bug? sdist is meant to produce a zip file on Windows if --format isn't used. If upload overrides this for some reason, then the documentation should say so (and, IMO, it would be a mistake for that to be the case). bug against PyPI. Where did I say bug against distutils? Richard -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
John Machin wrote: FYI, there are a few unreconstructed diehards out here who neither run on a *x platform nor run bleeding-edge Python straight out of last night's CVS. I think you need to pull your head in, mate. The bug you discovered in PyPI is plain and simple a bug in its attempts to discover whether an uploaded ZIP file was generated by distutils. It's a bug. It will get fixed. Get over your damn platform paranoia. Richard -- http://mail.python.org/mailman/listinfo/python-list
RE: problem uploading ZIP file tp PyPI
richard wrote: bug against PyPI. Where did I say bug against distutils? Apologies for the dupe response. The bug has now been fixed. Richard -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
John Machin wrote: On Mon, 16 May 2005 22:11:49 +1000, richard John Machin wrote: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Result: (A) produces a zip file with only minor differences (presumably a timestamp): Oh, so even without --format, a ZIP source dist file is produced anyway? If this is the case, please file a bug against PyPI. The code is being too paranoid Which code (distutils or PyPI server) is being paranoid about what??? The PyPI server code, which attempts to make sure people aren't uploading pr0n. Richard -- http://mail.python.org/mailman/listinfo/python-list
RE: problem uploading ZIP file tp PyPI
setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Result: (A) produces a zip file with only minor differences (presumably a timestamp): Oh, so even without --format, a ZIP source dist file is produced anyway? If this is the case, please file a bug against PyPI. How is this a bug? sdist is meant to produce a zip file on Windows if --format isn't used. If upload overrides this for some reason, then the documentation should say so (and, IMO, it would be a mistake for that to be the case). =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list
RE: problem uploading ZIP file tp PyPI
setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Oh, so even without --format, a ZIP source dist file is produced anyway? If this is the case, please file a bug against PyPI. How is this a bug? sdist is meant to produce a zip file on Windows if --format isn't used. If upload overrides this for some reason, then the documentation should say so (and, IMO, it would be a mistake for that to be the case). It's a bug against PyPI, not distutils. Did you mean that the bug is that PyPI won't accept a zipped source distribution? To me, your message read like it was saying that (distutils) producing a zip source distribution file without --format was a bug. So (if the former is what you meant) would a workaround for now be to do something like: setup.py sdist --format=gztar upload ? =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
On Fri, 20 May 2005 08:27:28 +1000, richard [EMAIL PROTECTED] wrote: John Machin wrote: On Mon, 16 May 2005 22:11:49 +1000, richard John Machin wrote: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Result: (A) produces a zip file with only minor differences (presumably a timestamp): Oh, so even without --format, a ZIP source dist file is produced anyway? On a win32 platform, yes, as documented. If this is the case, please file a bug against PyPI. I presume you mean a bug *report*. Done. The code is being too paranoid Which code (distutils or PyPI server) is being paranoid about what??? The PyPI server code, which attempts to make sure people aren't uploading pr0n. So zip implies pr0n but exe doesn't ??? -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
On Fri, 20 May 2005 11:28:14 +1200, Tony Meyer [EMAIL PROTECTED] wrote: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Oh, so even without --format, a ZIP source dist file is produced anyway? If this is the case, please file a bug against PyPI. How is this a bug? sdist is meant to produce a zip file on Windows if --format isn't used. If upload overrides this for some reason, then the documentation should say so (and, IMO, it would be a mistake for that to be the case). It's a bug against PyPI, not distutils. Did you mean that the bug is that PyPI won't accept a zipped source distribution? To me, your message read like it was saying that (distutils) producing a zip source distribution file without --format was a bug. So (if the former is what you meant) would a workaround for now be to do something like: setup.py sdist --format=gztar upload (1) error: command 'tar' failed: No such file or directory (2) error: invalid command 'upload' FYI, there are a few unreconstructed diehards out here who neither run on a *x platform nor run bleeding-edge Python straight out of last night's CVS. Viz: Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 -- http://mail.python.org/mailman/listinfo/python-list
RE: problem uploading ZIP file tp PyPI
So (if the former is what you meant) would a workaround for now be to do something like: setup.py sdist --format=gztar upload (1) error: command 'tar' failed: No such file or directory I was assuming that tar and gzip were available. There are various tar/gzip applications available for Windows, e.g. Cygwin, gnuwin32. http://cygwin.com http://gnuwin32.sourceforge.net http://www.gzip.org (2) error: invalid command 'upload' Using the files link alternative to 'upload', then (I thought that specifying 'upload' in my example would make the question clearer, since it spells out that I want to upload the dist, without saying that I will use the files link). =Tony.Meyer -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
On Fri, 20 May 2005 13:04:21 +1200, Tony Meyer [EMAIL PROTECTED] wrote: So (if the former is what you meant) would a workaround for now be to do something like: setup.py sdist --format=gztar upload (1) error: command 'tar' failed: No such file or directory I was assuming that tar and gzip were available. There are various tar/gzip applications available for Windows, e.g. Cygwin, gnuwin32. http://cygwin.com ugh ... http://gnuwin32.sourceforge.net now yer talkin' Yes, a workaround in extremis for someone who's been there and done that ... like being able to detect that the tar pkg is unlikely to hack it, better get bsdtar, better put a copy renamed tar.exe PLUS the 3 DLLs in the path somewhere. Anyway, to cut a long story short, setup.py sdist --format=gztar did what it ought to, PyPI doesn't regard *.tar.gz as implying pr0n, and I was able to download it again and open it in WinZip (the normal Windows archive program). Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
John Machin wrote: richard wrote: John Machin wrote: Sorry in advance if this is not the correct forum ... Quite. The support link for PyPI is in the sidebar of the site. Tried that, when I was trying to register and getting strange error messages about the user name, like John Machin and John_Machin were not ascii [it finally permitted sjmachin]. The response volume could not be likened to that of a fire-hose. You mean the request you put in two days ago? Sorry I've not got around to responding yet. It was admittedly low on my priority list because you were the only person reporting the issue (out of hundreds of successful registrations). I will now fill in the details you've just provided (ie the input you used which broke the interface) so that when I get around to fixing it I'll know what I'm looking for. Which is precisely how the file in question was generated: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Richard -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
On Mon, 16 May 2005 22:11:49 +1000, richard [EMAIL PROTECTED] wrote: John Machin wrote: richard wrote: John Machin wrote: Sorry in advance if this is not the correct forum ... Quite. The support link for PyPI is in the sidebar of the site. Tried that, when I was trying to register and getting strange error messages about the user name, like John Machin and John_Machin were not ascii [it finally permitted sjmachin]. The response volume could not be likened to that of a fire-hose. You mean the request you put in two days ago? Yes, that one. Sorry I've not got around to responding yet. It was admittedly low on my priority list because you were the only person reporting the issue (out of hundreds of successful registrations). I will now fill in the details you've just provided (ie the input you used which broke the interface) Not me, yer 'onour; it wuz broken already. so that when I get around to fixing it I'll know what I'm looking for. Which is precisely how the file in question was generated: setup.py sdist --format=zip Try without the --format arg. The code is being too paranoid. Result: (A) produces a zip file with only minor differences (presumably a timestamp): C:\devel\xlrd\build\distfc /b xlrd-0.3a1.zip f:\xlrd_dist\xlrd-0.3a1.zip Comparing files xlrd-0.3a1.zip and F:\XLRD_DIST\XLRD-0.3A1.ZIP 000A: 59 B8 000B: B9 9E 000C: B0 AF 9660: 59 B8 9661: B9 9E 9662: B0 AF C:\devel\xlrd\build\distdir *3a1*.zip 16/05/2005 11:10p 39,436 xlrd-0.3a1.zip C:\devel\xlrd\build\distdir f:\xlrd_dist\xlrd-0.3a1.zip 15/05/2005 07:53p 39,436 xlrd-0.3a1.zip (B) Exactly the same result from the PyPI upload attempt. The code is being too paranoid Which code (distutils or PyPI server) is being paranoid about what??? -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
John Machin wrote: Sorry in advance if this is not the correct forum ... Quite. The support link for PyPI is in the sidebar of the site. I'm trying to upload what appears to be a perfectly OK zip file as a source file type to PyPI, and am getting this response: Error... There's been a problem with your request exceptions.ValueError: invalid distribution file The *only* valid (perfectly OK) source file to upload is a Source Distribution as generated by the sdist setup.py command. I have managed to upload a Windows installer, and downloaded it again [but the download count is still stuck on zero]. The download counts are updated daily (IIRC). Richard -- http://mail.python.org/mailman/listinfo/python-list
Re: problem uploading ZIP file tp PyPI
richard wrote: John Machin wrote: Sorry in advance if this is not the correct forum ... Quite. The support link for PyPI is in the sidebar of the site. Tried that, when I was trying to register and getting strange error messages about the user name, like John Machin and John_Machin were not ascii [it finally permitted sjmachin]. The response volume could not be likened to that of a fire-hose. I'm trying to upload what appears to be a perfectly OK zip file as a source file type to PyPI, and am getting this response: Error... There's been a problem with your request exceptions.ValueError: invalid distribution file The *only* valid (perfectly OK) source file to upload is a Source Distribution as generated by the sdist setup.py command. Which is precisely how the file in question was generated: setup.py sdist --format=zip -- http://mail.python.org/mailman/listinfo/python-list